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 Posted / 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 |
Post New Answer View All Answers
write a jcl to execute a job by 7:00 am on jan 20,1986?
Explain about ISPF/TSO Commands
Explain the function of //cntl statement?
What are steplib and joblib?
Why include statement is used in a jcl?
Is their any limit for data sets?
Differentiate between the joblib and the steplib statements?
Explain the purpose of dd dummy statement?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
what operation is performed by job statement?
A dd statement consists of 4 fields. Name them?
how can the same proc be re-used and called by many jobs?
Is there any command to check wether the ps file is in sorted order?
what is use of dcb parameter in dd statement?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?