We have a DB2-IMS-COBOL program that uses COBOL File Status as shown below -
.
.
SELECT I-CHKPT-FILE ASSIGN TO CHKPTFL
FILE STATUS IS W-CHPKT-FILE-STATUS.
.
.
000000 05 W-CHPKT-FILE-STATUS PIC X(02) VALUE '00'.
.
.
.
SELECT I-CHKPT-FILE ASSIGN TO CHKPTFL
FILE STATUS IS W-CHPKT-FILE-STATUS.
.
.
000000 05 W-CHPKT-FILE-STATUS PIC X(02) VALUE '00'.
.
.
Surprisingly, this varibale is not checked anywhere in program. So, my question is does it always sets the FILE STATUS to 00 irrespective of its origianl status? Let us assume that program opens, reads this file once and closes it. Down below, there is another perform on this file. So, if program abends and upon restarting will this file still have FILE STATUS 00 or what?
Please help.