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 to resolve sb37,sd37 se37 abends
what are the options in file-aid to edit vsam dataset and to compare data sets.
I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?
Explain COND used in JCL?
What does a disposition of (NEW,CATLG,KEEP) mean?
What is a Dummy Utility and what it does ?
How to fetch even records from one file to another file by using ICETOOL in JCL?
What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?
how to split a file
List the different jcl statements that are not permitted in the procedures?
Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?
Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?