Post #1
0 votes
Jordan
Reputation
12
Posts: 32
Joined: May 2, 2026, 11:10 AM
Posted: Aug 3, 2026, 1:25 PM
Need to walk a whole VSAM file under CICS. Doing READNEXT in a loop. How do people detect end? Is there an END-OF-FILE flag or do I watch RESP?
Need to walk a whole VSAM file under CICS. Doing READNEXT in a loop. How do people detect end? Is there an END-OF-FILE flag or do I watch RESP?
STARTBR, then READNEXT until RESP = ENDFILE (or DFHRESP(ENDFILE)), then ENDBR.
Do not guess from key values. Check RESP every time.
And put RESP2 on the commands when you get INVREQ. RESP 16 alone is not enough detail.
You must be signed in to reply to this thread