IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to read a ps file from bottom to top


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
perarasan

New User


Joined: 28 Sep 2006
Posts: 1
Location: chennai

PostPosted: Thu Sep 28, 2006 10:08 pm
Reply with quote

is it possible to read the ps file from bottom to top using the cobolo programming...
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Sep 28, 2006 10:26 pm
Reply with quote

Why would you want to do that?

I would suggest:
If there is no single key in your file which can reverse order of records, use SORT to add Seqnum and sort on seqnum to reverse record order of records.

One other way i can think of which is not efficient way if file is big or volume is high would be read file in a Working Storage table, then process from table way you want.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Sep 28, 2006 10:44 pm
Reply with quote

No, you cannot read a file from the back to the front using native cobol.

See this Previous post

If the file is sorted in a different order then read, the file is still being read from front to back, If its read into a table, still its being read front to back.

Dave
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Fri Sep 29, 2006 9:56 pm
Reply with quote

I wonder why folks continue to find it necessary to post this question at least once a week?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top