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
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 ?
i want to store 20 digits . how will u do it in cobol ?
What is the function of //cntl statement?
Can I share my data with other jobs? How?
Is it possible to code instream data in a PROC?
what operation is performed by job statement?
What are some jcl statements that are not allowed in procedures?
What does a disposition of (MOD,DELETE,DELETE) mean ?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How does the jcl specify the job to os?
Suppose I have five jobs to do. But I want to hold one?
how you will the direct the data to spool using sysout option?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
What are the parameters that are used in creating a gdg?
Is their any limit for data sets?