can we read records in a file from botom to top. if
possible how can we read
Answer Posted / raj
yes,it is possible through JCL.
1. QSAM (sequential) file. You can run it thru SORT utility
adding SEQNUM and then sort then sort by SEQNUM in DESC
order
2. VSAM: In CICS you can read backward using READREV;
3. VSAM: I Batch unload the VSAM file using SORT in DESC
order by key value.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between external and global variables in COBOL?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
In COBOL, what is the different between index and subscript?
What are various search techniques in cobol? Explain.
What are declaratives and what are their uses in cobol?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
What is the utilization of copybook in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What type of SDLC u followed? Why?
What are literals?
how to refer the data field?
Write some characteristics of cobol as means of business language.
what are decleratives in cobol?
How do you get the data to code the BMS macro?