os--> linux red hat 8.0
imformix versions--> ids 9
when i try to create it , it return "SYNTAX ERROR"
body:
create
procedure sp_error_GetText(ni_NroError numeric(6))
returning lvarchar(300),
varchar(1),
numeric,
numeric,
lvarchar(300),
varchar(30); <---------------------- HERE APPEARS THE ERROR MESSAGE
--
define vo_Descripcion lvarchar(300);
define vo_Ind_usuario varchar(1);
define no_ret numeric,no_sqlcode;
define vo_sqlerrm lvarchar(300);
define vo_spname varchar(30);
--
begin
on exception set no_sqlcode, vo_sqlerrm
if no_sqlcode = 100 then
let no_ret = 1;
else
let no_ret = -1;
end if
end exception
--
let no_ret = 0;
let vo_spname = 'sp_error_GetText';
--
select des_error,
ind_mens_usuario
into vo_descripcion,
vo_Ind_usuario
from adm_error_dbms
where nro_error = ni_NroError;
--
return vo_Descripcion,
vo_Ind_usuario,
no_ret,
no_sqlcode,
vo_sqlerrm,
vo_spname;
end
end procedure;