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.
Mike Shatila — — source: Informix-list mailing list archive (1991-1998)
On Mon, 14 Jul 1997 15:12:30 -0400, while dropping acid Art Kagel
<kagel@dg1.bloomberg.com> spewed:
:Jayakumar George wrote:
:>
:> Hi ,
:>
:> Is there a way to check whether we are in a transaction in 4gl.
:>
:> (Apart from using a begin work with whenever error statements).
:
:Just set a global variable when you begin work to keep track of your
:current transaction status.
:
:Art S. Kagel
Another way is to:
whenever error continue
begin work
if sqlca.sqlcode = 535
then
...... { we're in transaction }
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.