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

if one main program ,n -subprograms are then which call you follow ?why reasonuhg

4 Answers   UHG,


Explain what you understand by passing by value.

0 Answers  


what is the minimum number of lines a Cobol program should have to successfully compile and run

7 Answers  


what is the use of outrecord?

0 Answers  


ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????

6 Answers   TCS,


01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy

13 Answers   HSBC,


Can anybody give me example of subscript and index

5 Answers  


I want ALL jcl ERROR cods

1 Answers  


what is s000 u4087 error? please give the all error codes in cobol,jcl.

0 Answers  


when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,


Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.

1 Answers  


What is the difference between PIC 9.99 and 9v99 in COBOL?

0 Answers   SwanSoft Technologies,


Categories