How To get the last record in VSAM file in cluster?
and How can u get the ksds file records into ur cobol
program ? Pls tell me about these two questions.
Answer Posted / shivani
Move highvalues to the key of the VSAM file and the issue Readnext record command. Then give Readprev command. This will read the last record. In VSAM, there is one command HURBA, Using that we can read the last record, If you want to know more about go to IBM RED BOOKS. You will get the solution.
by using the HURBA we can get the max records by using the CKD count key data we will get the last record
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What parameter of the job statement is used to limit the cpu time consumed by the job?
what is use of dcb parameter in dd statement?
What do you know about jcl?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
Name a few IBM utility programs, and explain its function.
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
What is one line to pass PARM from JCL to COBOL?
How is the record format of an output dataset specified?
Explain the purpose of dd * statement in jcl?
How does the jcl specify the job to os?
How dummy is used in jcl?
What is multithreading in jcl?
I need exexution process for JCL programs
when can a job time-out occur? How to overcome that?
What are hierarchy levels in jcl?