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 many parameters are there to a DISP statement and what are their uses ?
What is JOBLIB ?
How do you pass parameters to the program as the job is being executed ?
Is condition checking possible in jcl? If yes, how?
what JCL Procedures?
THERE IS ONE STEP AS BELOW: //STEPJS060 EXEC PGM=XYX, COND=((200,EQ,JS010),(0,NE,JS020.C),EVEN) COULD ANY ONE EXPLAIN HOW COND PARAMETER WORKS HERE? I AM CONFUSED BECOZ OF "EVEN".
when does a dataset go uncataloged?
Which statement is used to identify the private libraries in job?
How do you create a temporary dataset? Where will you use them?
In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the last step should then be executed (send a message to an user). Due to we don't like to change all our JOB's (ca. 2000), we are looking for a simply solution.
What does a disposition of (MOD,DELETE,DELETE) mean ?
What do you understand by jcl?