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 |
What are three major types of JCL statements? What are their functions?
wht r different types of sorts ?
What are the valid DSORG values ?
What is the function of //jcllib statement?
Explain the function of the dd dcb keyword?
What is DATACOM db?
There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.
how to run batch program without jcl?
How can the disposition of sysout datasets be set for an entire jobstream?
What is the improvement to COND= in the latest version of MVS?
i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??
I need to compare two VSAm files. In input VSAM file some fields are updating and the updated feilds are coming into the output file. now i need to compare these two files with respect to a perticular field. Please suggest a suitable JCL code me.