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 “Cond= even” and “Cond=only”?
Describe the various parameters utilized in the creation of a gdg?
Explain how can values be passed from the job stream to an executable program?
What do you know about jcl?
What is the difference between run mode and addressing mode?
What is the difference between the positional and keyword parameters? Give examples.
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
What is condition checking in jcl? Is this possible?
Is it possible to define dd statements as you want?
Why include statement is used in a jcl?
How is a type of file defined in the jcl that executes the cobol program?
Can an individual step be restricted from using all the jobs allowed cpu time?
What statement can be used to send data to another mvs jes3 node?
How do you overcome this limitation ?
What is the significance of addrspc parameter in exec statement?