Try
scratch = "Insert into temp values(?,?,?)"
prepare temp_ from scratch
execute temp_ using a, b, c
nileshs a écrit :
> Hi,
> I am trying to recompile informix 4GL programs on Informix 4GL 7.3.UC1.
> Originally programs are written for 7.2
> Program with PUT (esql/c statement) is giving me error (33051) which is
> syntax error which I don't understand
> Actually the 4GL code is as follows,
> ----------
> scratch = "Insert into temp values(?,?,?)"
> prepare temp_ using scratch
> declare temp_cursor using temp_
> .
> .
> .
> Put temp_cursor from a, b, c
> --------
> where a,b,c are used as program variables.
> The code is interpreted in esql/c as follows
>
> $ put 'cursorname' $a $b $c;>
> And this is tha line is giving me error 33051 - syntax error..unidentifiable
> symbol '$'
>
> Any help is this matter is really appreciated
>
> Thanks
> Nilesh