I have two questions here.
1. How to read a flat file in reverse order?
2. How to read a VSAM KSDS file in reverse order?
In both the cases we donot know the total number of records.
Answer Posted / kingmanish
For the KSDS file we can set the pointer on the last record.
After that use the command READ Previous to read the
records in the reverse order.
I am not very sure about flat file. May be we can use a
turn around.
Sort the file in descending order first and then start
reading.
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
In which area will you utilize 88 level items in cobol?
What is the Purpose of Pointer in the string?
What guidelines should be followed to write a structured cobol prgm?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is a scope terminator give example?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
what is search and searchall?what is the diffrence between them?give an best example?
How do get the result of your program directly on your pc?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between PIC 9.99 and PIC9v99?
What is the utilization of copybook in cobol?