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
For what purpose steplib and joblib are used ?
what is use of dsn parameter in dd statement?
What is the difference between the positional and keyword parameters? Give examples.
which utility is used to sort a file in jcl?
what are JCLLIB and STEPLIB in JCL?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Can I share my data with other jobs? How?
How to alter the parameters for the existing gdg?
What is the function of a dd statement?
How do you access an uncatalogued dataset in a jcl?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
List the various advantages of using jcl language?
How to pass data to a program that is coded in an exec statement?
what is the use of IEBGENER utility?
What is the purpose of dd?