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 / 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 |
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.
Can we have a JOBSTEP without any EXEC ?
What is a Dummy Utility and what it does ?
Why we will create load module in PDS only, Why nt in PS?
What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?
what r the types of job control statements?
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3
what is the function of spool command?
how to increase the space of a dataset in instream procedure.
How to do automated restart when a job abend?
What is 'S0C7' abend?
what is the JCL statement consists of?