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 different rules for performing sort operation?
What is the difference between perform … with test after and perform … with test before?
What is the difference between comp and comp-3 usage?
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
example for sub strings ? and refernce modifications whit output pls
What is length is cobol?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
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
what is the use of outrecord?
Have you used comp and comp-3 in your project? And how?
how do you reference the esds vsam file formats from cobol programs
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What is cobol?
What guidelines should be followed to write a structured cobol prgm?