> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ted MacNEIL
> Sent: Monday, April 16, 2007 10:33 AM
> To: [email protected]
> Subject: Re: Laugh, laugh. I thought I'd die - application crashes
> 
> 
> >On the z/OS side, consider that OPEN has (yet, after 4 
> decades) no way to report an error to the caller other than 
> "just crashing".
> 
> And, what would an application after a failed open, that didn't abend?
> 

Well, around here it would do one of two things:

1) issue a DISPLAY UPON CONSOLE
2) then abend itself

or

1) Ignore the return code
2) abend on the next I/O statement
or 
2) go into an infinite loops trying to do I/O while getting (and
ignoring) the return code that says that the I/O failed
or
2) get a return code on the next I/O statement and issue a DISPLAY UPON
CONSOLE followed by an abend.

The only real option for batch that I can think of is to ABEND or return
with a bad return code. Well, I guess it could "lie" by just ending with
an RC=0 indicating that "all is well!" until some user noticed that a
report was missing or some such thing.

Also, depending on the nature of the application, an nice ESTAEX type
exit would be appropriate. I.e. something interactive like TSO. Wouldn't
it be nice if your TSO session ended if some program abended that you
were trying to run. Maybe like a S913 abend when somebody tries to edit
a dataset that they cannot READ.



--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to