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
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What are the different rules for performing sort operation?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the difference between goback, stop run and exit program in cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is static and dynamic call in cobol?
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?
For rewrite, why is it mandatory that file needs to be opened?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What are the various section in data division and briefly explain them.
What are the rules of the move verb?
What is the usage of comp fields in cobol?
What is the compute verb? How is it used?
What is the difference between PIC 9.99 and PIC9v99?
How you can read the file from bottom?