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 different is the JCL executing a COBOL program? 1) if the program is using VB file as input. 2) if the program is using FB file as input.

1 Answers   HSBC,


Can we have a JOBSTEP without any EXEC ?

6 Answers   IBM,


What is a Dummy Utility and what it does ?

3 Answers  


Why we will create load module in PDS only, Why nt in PS?

2 Answers   TCS,


What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?

2 Answers   IBM,






what r the types of job control statements?

2 Answers  


File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3

7 Answers  


what is the function of spool command?

4 Answers  


how to increase the space of a dataset in instream procedure.

1 Answers   HCL,


How to do automated restart when a job abend?

0 Answers  


What is 'S0C7' abend?

9 Answers  


what is the JCL statement consists of?

0 Answers  


Categories