I am getting below mentioned error message in the SYSOUT of the error Step in the JCL
IGZ0035S THERE WAS AN UNSUCCESSFUL OPEN OR CLOSE OF FILE P**R2602 IN PROGRAM PT**2602 AT RELATIVE LOCATION X'FFFFFFFFE415D600'. NEITHER FILE STATUS NOR AN ERROR DECLARATIVE WERE SPECIFIED. THE STATUS CODE WAS 96.
FROM COMPILE UNIT PTKM2602 AT ENTRY POINT PTKM2602 AT COMPILE UNIT OFFSET +00000A06 AT ENTRY OFFSET +00000A06 AT ADDRESS 1BF6FA06.
Below is the JCL Error step where there is issue with the file name :
Joined: 06 Jun 2008 Posts: 8566 Location: Dubuque, Iowa, USA
The issue the file P**R2602 mentioned in the SYSOUT is not defined in the JCL Step. Also there are no such file defined in the Cobol module P**P950D.
Yeah, the file status 96 pretty much means that your program attempted to open a file for which there was no DD statement in the JCL -- so your first statement is true (a tautology but still). As far as your second sentence about no such file defined in the COBOL module P**P950D -- so what? If you read the SYSOUT message again, you will note that the program name is NOT P**P950D but rather PTKM2602. So there is some mechanism by which P**P950D invokes PTKM2602 -- and PTKM2602 is the program with the missing DD statement. If you fix the JCL, you will fix the error.