CREATE PROCEDURE EXISTE_NUMERO_DOCUMENTO(NRODOC CHAR(15),RETURNS(RETORNO1 CHAR(1)) AS BEGIN retorno1='F'; if (exists(select firts 1 mvc_nrodoc from movimcab where mvc_nrodoc=:NroDoc)) then retorno1='T'; END^