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

Explain the purpose of dd dummy statement?

0 Answers  


How to use COND Parameter in jcl

4 Answers   NIIT, Wipro,


Can we create VSAM file by using IEBGENER?

4 Answers   Principal Finance,


What is 'S0C7' abend?

9 Answers  


1) max no of steps with jcl job can execute 2) how many extentions r possible in sequencial files with job 3) what is set parameter will do 4)how to get syntax errors without sub 5) what is differ between error and abend 6) hw mvs knows who submitted the job and whoom it has to forward 7) what are the positinal parameters of data descripter

1 Answers   L&T,






Suppose your program is reading a Sequential Vsam file. The file contains 10 records. How will you code the JCL to read only 2nd, 5th, 7th,and 10th record?

1 Answers   Thomson,


what is pupose and meaning of the REGION keyword and what jcl statement is it associated with?

1 Answers  


My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP = NEW //STP4 A(+1), DISP = OLD STP3 was abended and I want restart my JCL from STP3 onwards & what are the precaution I want to take & what are the changes I need to make. Pls let me know.

4 Answers   CTS,


How do you access a file that had a disposition of KEEP?

3 Answers  


i have a ps with two columns eno and ename , i need to copy eno column values in one ps and ename column values in one Ps ? is it possible through iebgener . how ? thx in advance

1 Answers   IBM, TCS,


How to send different PARM values based on the any condition to the program in a JCL? For example :- If the time is before 12:00 pm, I want to send "A" to some program and if it past 12:00 pm , I want to send "B" as a PARM value to that program. How to do it thur JCL only?

0 Answers   UHG,


How to fetch even records from one file to another file by using ICETOOL in JCL?

3 Answers  


Categories