Hi,
I am reading a VSAM file and writing all the records into output file.
But my job is running without completion.
I am getting file status 23 but records are present in the input file.
Please find the psedo code below
1000-INITIALIZATION
PERFORM OPEN 1200-VSAM-FILE
THRU 1200-EXIT.
PERFORM 1250-READ-VSAM-FILE
THRU 1250-EXIT.
MOVE SPACES TO WS-AMCK002-FILE-STATUS
1000-EXIT
IF WS-NO-DETAILS-EXIST
PERFORM 2100-PROCESS-ZERO-DTL-RECS
THRU 2100-EXIT
ELSE
PERFORM 2000-PROCESS-SEC-RECORDS
THRU 2000-EXIT
END-IF.
2000-PROCESS-SEC-RECORDS.
PERFORM UNTIL WS-VSAM-END-OF-FILE
PERFORM 2200-SEC-POS-PROCESS
THRU 2200-EXIT
PERFORM 1250-READ-VSAM-FILE
THRU 1250-EXIT
END-PERFORM
.
2000-EXIT.
EXIT.
Any thoughts?????
VSAM File status 23 ,but records are present in the file
Moderator: Moderator Group
-
- Member
- Posts: 22
- Joined: Wed Apr 15, 2009 11:51 pm
- Location: london
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
if you are unable to determine the problem,An attempt was made to randomly access
a record that does not exist in the
file,
or
a START or random READ
statement was attempted on an optional
input file that was not present.
we will need the following info
SELECT
FD
file I/O instructions
after which instruction did you encounter the 23?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 22
- Joined: Wed Apr 15, 2009 11:51 pm
- Location: london
-
- Member
- Posts: 22
- Joined: Wed Apr 15, 2009 11:51 pm
- Location: london
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page