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

How to delete generations of gdg without deleting gdg base?

3 Answers  


how to split a file

4 Answers   IBM,


In job processing, what happens in execution stage?

0 Answers  


What is Uncatalog dataset? How can we access/use them?

1 Answers  


If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?

3 Answers  






Explain how can a stopped job be started again?

0 Answers  


What are three parameters you can specify on Job statement as well as on exec stmt ?

1 Answers  


I need exexution process for JCL programs

0 Answers  


how you will the direct the data to spool using sysout option?

0 Answers   IBM,


What it does If we specify TYPRUN=P & it is not substituted by SCAN 0r HOLD in VALUE SET.

0 Answers  


Which storage devices are grouped under DASD and SYSDA ?

1 Answers   IBM,


How to release the Output HELD by using HOLD = YES on DD statement ?

2 Answers   IBM,


Categories