In <listserv%[email protected]>, on 06/11/2011
at 09:33 PM, Paul Gilmartin <[email protected]> said:
>Does OPEN generally set RC?
Yes.
>I thought it either succeeds or causes an ABEND
Do an OPEN with an undefined ddname. That the reason for all of those
tests of DCBOFLGS,DCBOFOPN.
>It's a holdover from a batch/production mindset: data sets are to be
>allocated statically, and there's no recovery when one can't be
>accessed.
Lots of batch programs have optional data sets, and the recovery if
they're not there is to not use them.
>But, yes, I agree; OPEN should provide notification, via a mechanism
>that programmers have come over decades to handle, when it does
>something underhanded.
I'd go beyond that and say that OPEN shouldn't do anythiong
underhanded. If the DCBE pointer is invalid then fail the OPEN.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
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