I have two questions here. 1. How to read a flat file in
reverse order? 2. How to read a VSAM KSDS file in reverse
order? In both the cases we donot know the total number of
records.



I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS..

Answer / dsingh29

add a sequence number at end of records and then sort in
descending order.

Is This Answer Correct ?    14 Yes 1 No

Post New Answer

More COBOL Interview Questions

i Want All cobol ERROR codes?

4 Answers   HCL, IBM,


What is the difference between a binary search and a sequential search?

3 Answers  


Why we should use cursor ?

3 Answers  


how many maximum no of variables can be declared in linkage section ?

2 Answers   HCL,


How to print 10 to 1 if the input have only 10 digit number?

0 Answers  






What is the Purpose of Pointer in the string?

0 Answers  


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,


Can we move X(7) to S9(7) COMP?

1 Answers  


What is a scope terminator? Give examples.

2 Answers  


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

0 Answers   HCL,


how to change picture class of copy book variable inside program?

2 Answers  


Categories