How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?



How to get the last record in vsam file in cluster? And how can you get the kids file records into y..

Answer / Manish Jaiswal

To get the last record from a VSAM file in cluster, you can read sequentially from the end and break when reaching the start of the file. To read records from a Kids file (index file) into your COBOL program, you can use a FETCH or RETURN statement with appropriate key specifications.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

Explain how you can characterize tables in cobol?

1 Answers  


How can you display the SPOOL information ?

2 Answers  


Whats the use of Examine command? can someone help me?

1 Answers   IBM,


What is the problem of ordered sequential files access?

1 Answers  


Can anybody give me example of subscript and index

5 Answers  


which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  


I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?

3 Answers  


What are the pertinent COBOL

1 Answers   IBM,


How can you declare the file ?

1 Answers   Wipro,


01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?

6 Answers   Patni,


what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?

2 Answers   IBM, Wipro,


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1 Answers  


Categories