I can see where this is going

READ rec FROM filevar 
ON ERROR
...
ELSE ON-REALLY-BAD-ERROR
....
ELSE LOCKED-BY-SOMEONE
....
ELSE LOCKED-BY-ROGUE-SYSTEM-PROCESS
....
ELSE NOT-FOUND
....
ELSE -SYSTEM-AFU
....
THEN
.... Do what I programmed
OR-THEN
.... Do what I meant to program
END (mercifully)


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clifton Oliver
Sent: Monday, July 26, 2004 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: [U2] [UV] File corruption error, but ON ERROR branch not taken

How does the application program determine it is in the ELSE clause due 
to an error rather than due to record not found?

-- 

Regards,

Clif


On Jul 25, 2004, at 23:13, Leroy Dreyfuss wrote:

> Since the ELSE clause is taken anyway (whether or not is moot for your
> purposes), you can still do your rollbacks and so forth through your 
> code.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to