We've been getting an odd error in a report program...unfortunately, I don't have a current abend to give a better example. We are getting this error.
GZ0035S There was an unsuccessful OPEN or CLOSE of file REPORTC in program DOC0
Neither FILE STATUS nor an ERROR declarative were specified. The status
From compile unit DOC0001P at entry point DOC0001P at compile unit offs
at address 00009C86.
This program has 1 vsam file and 6 reports. The vsam has a file status but depending on the abend, it will show 1-2 of the reports in fault analyzer with the 90 file status (see bottom). I'm guessing its because the program closes all the files at once. I'm the z/os guy and it's been 20 years since I've written any type of code. I believe that at the time of this abend, the vsam file is opened by a cics application which I'm guessing is causing the 90. I just want to ignore the abend.
Before the "STOP RUN", can we do something in cobol to stop the program from abending?
Failing File Name . . . . . : REPORTC
Data Set Name . . . . . . : CHFP.CHFCMAIL
File Attributes . . . . . : ORGANIZATION=SEQUENTIAL, ACCESS MODE=SEQUENTIAL,
RECFM=FIXED BLOCKED ASA
Last I/O Function . . . . : CLOSE
Open Status . . . . . . . : NOT OPEN
File Status Code. . . . . : 90
Implementor-defined condition.
No record buffers available (file not open).
Failing File Name . . . . . : REPORTG
Data Set Name . . . . . . : CHFP.CHFGMAIL
File Attributes . . . . . : ORGANIZATION=SEQUENTIAL, ACCESS MODE=SEQUENTIAL,
RECFM=FIXED BLOCKED ASA
Last I/O Function . . . . : CLOSE
Open Status . . . . . . . : NOT OPEN
File Status Code. . . . . : 90
Implementor-defined condition.