Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Pavel Berzin wrote:
>
> Hi, all!
> Please help.
> How to run stored procedure from 4gl code?
>
> I did so:
> 1. stored procedure returns one value
> 2. 4gl code is like this
> DEFINE ii integer
> EXECUTE PROCEDURE aaa() INTO ii>
> Doesn't work.
>
> "You must declare cursor procedure before ... bla-bla-bla"
4GL does not understand the EXECUTE PROCEDURE syntax so you have to
PREPARE a statement with the EXECUTE PROCEDURE statement in a string
variable. Then declare and execute a cursor.
Art S. Kagel
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.