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

What are INPUT PROCEDURE and OUTPUT PROCEDURE?

689


) what is the difference between AID and HANDLE AID?

1635


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

2105


What are the different rules for performing sort operation?

761


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

709






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.

2058


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


What is redefines clause in COBOL?

851


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1931


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

1846


what is the use of outrecord?

1771


How do you differentiate between cobol and cobol-ii?

656


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1651


How to print 10 to 1 if the input have only 10 digit number?

811