View previous topic :: View next topic
|
Author |
Message |
perarasan
New User
Joined: 28 Sep 2006 Posts: 1 Location: chennai
|
|
|
|
is it possible to read the ps file from bottom to top using the cobolo programming... |
|
Back to top |
|
|
MFRASHEED
Active User
Joined: 14 Jun 2005 Posts: 186 Location: USA
|
|
|
|
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 |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
I wonder why folks continue to find it necessary to post this question at least once a week? |
|
Back to top |
|
|
|