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 is the JCL statement consists of?
List in order the hierarchical levels of jcl?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Explain the job statement in jcl?
List the different jcl statements that are not permitted in the procedures?
how can you check if a file is empty using jcl?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Explain the purpose of dd * statement in jcl?
What is catelog procedure and how many catelog procedure to use in one job?
in ways data can be passed to a COBOL program from JCL?
Explain how can values be passed from the job stream to an executable program?
Can an individual step be restricted from using all the jobs allowed cpu time?
which parameter is use to declare the name of dataset in dd statement?
What is timing concept in mainframe?
In job processing, what happens in execution stage?