IBM MainFrame Question:

Download Job Interview Questions and Answers PDF

How To get the last record in VSAM file in cluster? And How can u get the ksds file records into ur COBOL program? Please tell me about these two questions.?

IBM MainFrame Interview Question
IBM MainFrame Interview Question

Answer:

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

Download IBM MainFrame Interview Questions And Answers PDF

Previous QuestionNext Question
How do define Dynamic array in COBOL how do u define single dimensional array and multidimensional array in your COBOL?Tell about How do u eliminate the duplicates?