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.
>
> Does anyone know if there is a way to return, from a stored procedure which
> inserts a row with a serial column, the VALUE of the serial number, without
> doing a second select? sqlca.sqlerrd[2] should contain the value, but the sqlca
Actually the sqlca structure is not unknown to SP. At least it is not
unknown to my version, Online version 7.1. I get the serial number back
by using this routine.
LET sernum = dbinfo("sqlca.sqlerrd1~);
Admittedly I had to pay good money for the class on Stored procedures to
learn this.
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.