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
to use the rewrite command, how should the vsam file be opened?
How is the sorting of vsam files carried?
Using alternate indexes in batch program?
On which dataset you can have alt index?
Is it slower if you access a record through alt index as compared to primary index?
What is a ci split?
what do you mean by a vsam slot?
Explain what are the optional parameters to the input dataset while loading the empty cluster with the data records?
What is speed parameters in define cluster command?
What is the main purpose of having user catalog in vsam?
How does control intervals and control areas related to each other?
what do you mean by idcams? Explain its purpose?
what is the probability of a complete system distortion under high end low performing multiprocessor job?
What is the device independent method to indicate where a record is stored?
what are the codes returned by the ams (access method services) command during the execution in vsam?