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.



How To get the last record in VSAM file in cluster? and How can u get the ksds file records into u..

Answer / 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

More JCL Interview Questions

what is the alternative to model parameter?

0 Answers  


what is the difference between return code and maxcc?

2 Answers   iGate,


what is the cond=even only

4 Answers   EDS,


What you mean by skeleton JCl?

2 Answers  


In sms datasets, what is the function of the dd mgmtclas keyword?

0 Answers  






i need some shortcuts and tso commands can any on ehelp me in these ?

1 Answers  


What is the error code SOC01 indicate ?

5 Answers   Microsoft,


what is the function of spool command?

4 Answers  


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

0 Answers  


Hi, can any one tell about " How do u eliminate the duplicates "

2 Answers   Cap Gemini,


Explain the purpose of dd dummy statement?

0 Answers  


How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?

2 Answers  


Categories