View previous topic :: View next topic
|
Author |
Message |
rambabu Currently Banned New User
Joined: 18 Apr 2005 Posts: 67
|
|
|
|
how can i get the sequential file records in reverse order(i.e) last record to first record? |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Yes, you can do with READ PREV command in CICS.
If you want to do in COBOL, you have to use your programming LOGIC. |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Hi Priya,
I am not very sure of using the READ PREV command with Sequential files
as till date I have used this only for VSAM data sets.
Can you please elaborate more on how to use READ PREV with sequentail
files. I want to know how exactly it functions in case of sequential data sets.
regards,
David. |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
Rambabu
Use SORT. Pad a sequence number to each record and sort these records on the sequence number in descending order.
Regds
-Som |
|
Back to top |
|
|
rambabu Currently Banned New User
Joined: 18 Apr 2005 Posts: 67
|
|
|
|
thnk u.can any body tellme cobol (using reverse order) i want... |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Can't do it. Try Assembler. Or FileAid copyback, then read that in COBOL. |
|
Back to top |
|
|
|