I would think you might want to post the two DCBs? Charles
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Thomas David Rivers Sent: Thursday, July 18, 2019 1:55 PM To: [email protected] Subject: CMS OS SIMULATION BSAM OPEN and ABEND for non-existing files on INPUT 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 - ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
