What happens when you open an empty VSAM file in a COBOL
program for input?
Answer Posted / guest
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.
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
What is recovery parameters in define cluster command?
what do you mean by the repro command?
what are the idcams commands that can be used for vsam and explain each of them.
Explain the function of the relative record data set?
What is control interval?
explain how do you define a gdg in vsam?
what are the codes returned by the ams (access method services) command during the execution in vsam?
What does the keyranges parameter in define cluster command do?
Explain the significance of the shareoptions parameter?
Define a path?
Explain the difference between lds and esds?
to use the rewrite command, how should the vsam file be opened?
explain in brief how you can create a vsam file?
What is the use of lds (linear data set)?
Explain the catalog?