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 are the codes returned by the ams (access method services) command during the execution in vsam?
what is the purpose of the verify function of idcams?
what do you mean by idcams? Explain its purpose?
What is the main purpose of having user catalog in vsam?
is it required that primary key values have to be unique? Do alternate key values have to be unique?
Explain the function of the relative record data set?
What is the purpose of having vsam data space?
In a KSDS file, key is missing for one record. How to insert the key for that particular record from back up file. Is there any sorting needed for the back up file before the key insertion?
explain how can you initialize a vsam file before any operation?
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?
How does control intervals and control areas related to each other?
What are the different dataset organizations used in vsam?
explain how many ways you can load data in a vsam cluster?
explain in brief what are the 3 types of vsam files?
What is control area?