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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / gurukulu

use COBOL internal sort in ascending or descending key.

Is This Answer Correct ?    0 Yes 11 No

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

Answer / janu

using iebcmpr
we can easily read
sort fields=(pos,length,d,char)

Is This Answer Correct ?    8 Yes 23 No

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

Answer / chp

can we use read prev in cobol programming???

Is This Answer Correct ?    8 Yes 23 No

Post New Answer

More COBOL Interview Questions

I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.

2 Answers   UST,


Explain how you can characterize tables in cobol?

0 Answers  


What is difference between comp & comp-4?

6 Answers  


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  






please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

0 Answers   EDS,


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

0 Answers  


What does the INITIALIZE verb do?

1 Answers  


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

0 Answers  


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

0 Answers  


What is amode(31)

0 Answers  


Whtz the specialty of 77 level number ?

2 Answers   Infosys,


Categories