| Next Tip?
Home » VSAM

What happens when you open an empty VSAM file in a COBOL program for input?

9 August 2009 428 views No Comment
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

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.

Popularity: unranked [?]

Related interview questions

Leave your response!

You must be logged in to post a comment.