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.
MarkDenham@aol.com — — source: Informix-list mailing list archive (1991-1998)
You cannot as such.
Use an exception block around the code that you need to monitor:
DEFINE sqlerr INTEGER;
DEFINE isamerr INTEGER;
ON EXCEPTION SET sqlerr, isamerr
-- your code here
END EXCEPTION;
When you get an error, the 2 variables get set. If you need to pass the error
out of
you program, use the RAISE EXCEPTION statement.
Mark
MarkDenham@aol.com (home)
Denham.M@amstr.com (work)
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.