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 / dsingh29

add a sequence number at end of records and then sort in
descending order.

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write down the divisions of cobol program?

665


What do you understand by psb and acb?

661


Write the code implementing the perform … varying.

639


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1900


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

712






Which division and paragraphs are mandatory for a COBOL program?

707


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

853


What are the rules of the move verb?

704


Why would you use find and get rather than to obtain?

679


Are you comfortable in cobol or jcl?

639


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


In which area will you utilize 88 level items in cobol?

716


What is the difference between external and global variables in COBOL?

811


how to convert the recors form vsam file to db2 table tru file aid

2759


how do you reference the rrds file formats from cobol programs

792