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


Please Help Members By Posting Answers For Below Questions

What are the various section in data division and briefly explain them.

698


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

771


what is the difference between COBOL2 AND COBOL390?

2453


How to remove 2 duplicate records and copy only one using job control language?

748


What is report-item in COBOL?

708






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

706


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

644


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

2108


How do you reference the fixed block file formats from cobol programs

703


What is the LINKAGE SECTION used in COBOL?

887


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.

2054


What is rmode(24)

676


how do you reference the variable unblock file formats from cobol programs

748


Can a Search can be done on a table with or without Index?

802


What are 77 levels used for?

659