How to read records from flat file in reverse order through
COBOL program?

Answer Posted / pa

Being a flat file, we cant be sure that it will have a unique key field. So, External to the cobol program , using SORT utility, we can add a serial no column, and then SORT it in descending order based on that column and read the file sequentially in COBOL program.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1766


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

713


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

1840


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

699


Explain how to differentiate call by context by comparing it to other calls?

683






How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

637


) how do u code after getting data?

1578


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1926


How you can characterize tables in cobol?

710


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

679


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

639


What is a SSRANGE and NOSSRANGE?

818


What kind of error is trapped by on size error option?

738


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

654


What is the difference between PIC 9.99 and PIC9v99?

771