Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Move High-Values to Ws-Key

ExEC CICS STARTBR
FILE(LOGICAL FILE NAME)
RIDFLD(WS-KEY)
END-EXEC

EXEC CICS READNEXT
FILE(LOGICAL FILE NAME)
INTO(WORKING-STORAGE-AREA)
END-EXEC

EXEC CICS READPREV
FILE(LOGICAL FILE NAME)
INTO(WORKING-STORAGE-AREA)
END-EXEC

EXEC CICS ENDBR
FILE (LOGICAL FLE NAME)
END-EXEC.

I am trying to read the last record in vsam file using above code.But each time while executing it will only read the 1st record so i can't do auto increment on it.What should i do?
Posted
Comments
Sergey Alexandrovich Kryukov 12-Mar-13 2:48am    
The problem is extremely simple, so a normal developer cannot easily imagine where you could fail. There are too many ways to screw up things. Could you produce a code sample?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900