How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?



How to get the last record in vsam file in cluster? And how can u get the ksds file records into cob..

Answer / Shailendra Kumar Verma

[{"How to get the last record in VSAM file in a cluster": "To read the last record, you should specify the key sequence as descending and the file status should be set to ASCENDING. When the end of the file is reached, the file status changes to EOF.","How can u get the ksds file records into a COBOL program": "You can use an EXTERNAL FILE SECTION in your COBOL program to read data from a KSDS file. The details depend on the specific IBM mainframe operating system and the exact format of the KSDS file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VSAM Interview Questions

Discuss record management in vsam?

1 Answers  


What is a path?

1 Answers  


what is freespace

2 Answers   EDS,


what do you mean by the cobol record key clause in vsam?

1 Answers   IBM,


Name some common VSAM error conditions and codes. ?

1 Answers   IBM,


Yes. Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.

1 Answers  


what how do you initialize a vsam file before any operation? A vsam with alternate index?

1 Answers   IBM,


what does a file status of 02 on a vsam signifies?

1 Answers   IBM,


Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?

1 Answers   IBM,


Under idcams, multiple functions can be executed, each of which returns a condition code. What will be the condition code returned to the operating system?

1 Answers  


in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?

1 Answers   IBM,


What is the procedure for running the batch job in mainframe?

1 Answers  


Categories