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

Are you comfortable in cobol or jcl?

821


Name the sections present in data division.

920


how do you reference the ksds vsam file formats from cobol programs

896


What is the difference between perform … with test after and perform … with test before?

1169


What guidelines should be followed to write a structured cobol prgm?

878


Explain about different table spaces.

875


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

2158


Difference between array and sub-script ?

1392


What is the Purpose of POINTER Phrase in STRING command in COBOL?

981


What is the LINKAGE SECTION used in COBOL?

1229


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1043


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

985


what happens if parmparameter passes zero bytes to the program

1890


What is a scope terminator give example?

846


What are 77 levels used for?

862