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 many bytes S(8) comp field occupy and its maximum value?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is redefines clause in COBOL?
how do you reference the fixed unblock file formats from cobol programs
Give some examples of command terminators?
Name some of the examples of COBOl 11?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is the problem of ordered sequential files access?
What is rmode(24)
What kind of error is trapped by on size error option?