How to read records in reverse order in flat file?



How to read records in reverse order in flat file?..

Answer / dimpy19

I know we can do it by reading all records into an array....
Then read records in reverse order by using subscript or index
but can any body give me the exact code.

--read the record in index and access it backward using index or subscript

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

How do you restart a step in JCL?

12 Answers   HSBC,


What is notcat 2 - gs?

0 Answers  


While using SORT FILES =NONE,XSUM I am getting error "ICE172A E XSUM IS NOT SUPPORTED - USE ICETOOL SELECT IF APPROPRIATE"..I want to write duplicate records a a serparte file..how i can do tht?

3 Answers   Steria,


What type of versions we r using in mainframe (jcl, cobol, db2, vsam, cics)?

1 Answers   Accenture,


How can you execute a COBOL program via SYSIN in JCL?

1 Answers  






what is the JCL statement consists of?

0 Answers  


Name the system library from which modules are retrieved at execution

2 Answers  


how to set dependancy for jobs?

4 Answers  


What are the causes for S0C1, S0C4, S0C5, S0C7, S0CB abends ?

11 Answers   Tesco,


Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?  

1 Answers   TCS,


What is the format of comment statement?

0 Answers  


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

0 Answers  


Categories