Hi,
How do we read vsam file in reverse order? Is this possible, if yes please help.
Read vsam file in reverse order?
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Read vsam file in reverse order?
Generally, VSAM data sets (like sequential data sets) will be read sequentially from the first record to the last. You can use direct reads instead of sequential reads to skip around in the data set.
CICS does allow you to read in a reverse fashion by allowing EXEC CICS READPREV but this only applies to CICS.
CICS does allow you to read in a reverse fashion by allowing EXEC CICS READPREV but this only applies to CICS.
Re: Read vsam file in reverse order?
Robert Sample" wrote: ↑Thu Feb 15, 2024 1:55 am Generally, VSAM data sets (like sequential data sets) will be read sequentially from the first record to the last. You can use direct reads instead of sequential reads to skip around in the data set.
CICS does allow you to read in a reverse fashion by allowing EXEC CICS READPREV but this only applies to CICS.
This does not apply to normal COBOL Batch program, then how can we do this for batch? please guide.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute