I am trying to rewrite records in a ESDS online VSAM file ..
1) I close the file to run a batch COBOL program
2) If I open it I-O, the read of the ESDS VSAM doesn't appear to be valid .. i.e. The 'display' of the record read is spaces?
3) I am using the following COBOL statements:
SELECT ESDSVSAM ASSIGN TO SEQUENTIAL-AS-FILE1
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS A-FILE-STAT
VSAM-CODE.
PROCEDURE DIVISION.
OPEN I-O ESDSVSAM.
READ ESDSVSAM INTO WS-FILE-LAYOUT
AT END PERFORM CLOSE.
It's reading past the last record -- I have to do a STOP RUN to end the program?
Note: The ESDS VSAM is defined as NONINDEXED
1) I close the file to run a batch COBOL program
2) If I open it I-O, the read of the ESDS VSAM doesn't appear to be valid .. i.e. The 'display' of the record read is spaces?
3) I am using the following COBOL statements:
SELECT ESDSVSAM ASSIGN TO SEQUENTIAL-AS-FILE1
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS A-FILE-STAT
VSAM-CODE.
PROCEDURE DIVISION.
OPEN I-O ESDSVSAM.
READ ESDSVSAM INTO WS-FILE-LAYOUT
AT END PERFORM CLOSE.
It's reading past the last record -- I have to do a STOP RUN to end the program?
Note: The ESDS VSAM is defined as NONINDEXED