What happens when you open an empty VSAM file in a COBOL program for input?
9 August 2009
428 views
No Comment
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
- How do you initialize a VSAM file before any operation? a VSAM with alternate index?
- How do you submit JCL via a Cobol program?
- How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
- What are the optional parameters to the input dataset While loading the empty cluster with the data records?
- If FSPC(100 100) is specified does it mean that both the control interval and control area will be left empty because 100 % of both CI and ca are specified to be empty?











Leave your response!
You must be logged in to post a comment.