I'm getting down-in-the-weeds on OS SIMULATION on CMS.

I have an older program where it does a FILEDEF for a non-existing
file; then the program does an OPEN (..,INPUT)  for the given DDNAME
from the filedef.

In the older program, the ABEND exit is driven - so we fail the OPEN
gracefully.

But - in a newer program, the ABEND exit is _not_ driven, and it believes
that same file is "there" (although it promptly gets an EOD when trying
to BSAM READ it.)  The DCBOFLGS bit indicates the DCB was "opened".
I've stared at the coding of the EXTLIST, etc... it _looks_ right... but my
ABEND exit is just not happening.

There is some mumbling in the CMS OS SIMULATION doc that says it allows
the opening of non-existing files for INPUT because CMS can't mimic an empty
(but existing) file vs. a non-existing file.

But - this older code clearly is getting the ABEND in this case... while the newer code
doesn't.

Whatever the difference is, it's subtle... so, I'm not sure what it could be.

I'm wondering if this triggers any thoughts for anyone... if anyone has any
thoughts/pointers it would be appreciated.

  - Many thanks! -
  - Dave Rivers -

--
[email protected]                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to