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

hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?

1 Answers   CGI,


diffrence between z(2) and z9(2)

4 Answers   Cap Gemini,


If we use GO BACK instead of STOP RUN in cobol?

1 Answers   Temenos,


) What is the use of IGNORE?

1 Answers   IBM,


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

10 Answers  






how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


What are various search techniques in cobol? Explain.

0 Answers  


. How do we cast a variable in COBOL

1 Answers   HSBC,


Where the Plan is located in CICS-DB2

2 Answers   IBM,


how do you reference the printer file formats from cobol programs

0 Answers  


I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.

9 Answers  


what is Pic 9v99 Indicates?

2 Answers  


Categories