Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Accessing seqfile records in reverse order

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
rambabu
Currently Banned

New User


Joined: 18 Apr 2005
Posts: 67

PostPosted: Mon May 23, 2005 8:10 pm    Post subject: Accessing seqfile records in reverse order
Reply with quote

how can i get the sequential file records in reverse order(i.e) last record to first record?
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Mon May 23, 2005 9:38 pm    Post subject:
Reply with quote

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
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Tue May 24, 2005 1:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Tue May 24, 2005 7:13 pm    Post subject:
Reply with quote

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
View user's profile Send private message
rambabu
Currently Banned

New User


Joined: 18 Apr 2005
Posts: 67

PostPosted: Tue May 24, 2005 8:09 pm    Post subject: Re: Accessing seqfile records in reverse order
Reply with quote

thnk u.can any body tellme cobol (using reverse order) i want...
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed May 25, 2005 6:16 am    Post subject:
Reply with quote

Can't do it. Try Assembler. Or FileAid copyback, then read that in COBOL.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 0 Sat Feb 17, 2018 4:20 pm
No new posts Need all records with high key kalidasvs SYNCSORT 13 Fri Feb 09, 2018 10:38 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us