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 is NOTCAT ?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data from mainprogram but i need it from JCL directly
wht do u mean by notify parameter, how can u give acess to multiple users ?
I have two files each contains 10 records. I would like to copy both files into one output file but in alternate sequence. for e.g. first record from file1 then record 2 from file2.....
How to identify where file is empty or not? How many ways are there to identifying?
write a jcl to execute a job by 7:00 am on jan 20,1986?
How do you handle empty files in a JCL ?
Explain dfsort utility?
Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?
Explain the function of the steplib dd statement?
What is the difference between run mode and addressing mode?