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

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

623


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


What is the difference between goback, stop run and exit program in cobol?

932


How many sections are there in data division in COBOL?

680


How do define dynamic array in cobol.

673






what is search and searchall?what is the diffrence between them?give an best example?

5563


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

722


What is rmode(any) ?

686


Which mode is used to operate the sequential file?

669


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

984


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

2106


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

744


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

2763


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5695