1.

What Will Happen When You Try To Open An Empty Vsam File In A Cobol Program For Input?

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.

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.



Discussion

No Comment Found