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

Answer Posted / sreejith

i think it is also possible by using access mode dynamic.
first randomly point last record from the file using START
option. after you start read record in reverse order by
using READ PREV option until header of the file reached

Is This Answer Correct ?    18 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

720


For rewrite, why is it mandatory that file needs to be opened?

627


what is the use of outrecord?

1776


What is the utilization of copybook in cobol?

664


Explain the configuration section of a cobol program with examples of syntax.

663






What is Pic 9v99 Indicates in COBOL?

733


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

675


Why occurs cannot be used in 01 level in COBOL?

723


What are declaratives and what are their uses in cobol?

716


What is redefines clause in COBOL?

853


what happens if parmparameter passes zero bytes to the program

1671


What is the difference between structured cobol programming and object alternativelyiented cobol?

763


) How do u handle errors in BMS macro?

1433


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

821


What is amode(24)?

686