Here is a strange case, where we expect the program to abend, but it doesn't. Can anyone explain why?
The program has
SELECT RPTFILE ASSIGN TO RPTFILE.
The JCL, by mistake, had
//prtfile dd dsn=<whatever>.
The program does an OPEN OUTPUT RPTFILE, and even writes records to the file, and ends with condition code 00. Shouldn't it abend upon trying to open the file?
The program has
SELECT RPTFILE ASSIGN TO RPTFILE.
The JCL, by mistake, had
//prtfile dd dsn=<whatever>.
The program does an OPEN OUTPUT RPTFILE, and even writes records to the file, and ends with condition code 00. Shouldn't it abend upon trying to open the file?