Virtual storage access method (VSAM) Question:
Download Job Interview Questions and Answers PDF
What happens when you open an empty VSAM file in a COBOL program for input?
![VSAM Interview Answer VSAM Interview Question](https://globalguideline.com/public/images/interview/5.png)
Answer:
A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file & then delete it out.
Download VSAM Interview Questions And Answers
PDF
Previous Question | Next Question |
How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgms? | How do you initialize a VSAM file before any operation? a VSAM with alternate index? |