can we read records in a file from botom to top. if
possible how can we read
Answer Posted / raj
yes,it is possible through JCL.
1. QSAM (sequential) file. You can run it thru SORT utility
adding SEQNUM and then sort then sort by SEQNUM in DESC
order
2. VSAM: In CICS you can read backward using READREV;
3. VSAM: I Batch unload the VSAM file using SORT in DESC
order by key value.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the various section in data division and briefly explain them.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is the difference between COBOL2 AND COBOL390?
How to remove 2 duplicate records and copy only one using job control language?
What is report-item in COBOL?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How do you reference the fixed block file formats from cobol programs
What is the LINKAGE SECTION used in COBOL?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is rmode(24)
how do you reference the variable unblock file formats from cobol programs
Can a Search can be done on a table with or without Index?
What are 77 levels used for?