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 the syntax of ams modal commands?
why ci and ca splits are not possible in esds and rrds?
what are the additional information you should give in the dd statement while defining the next generation of a gdg?
What is the main purpose of having user catalog in vsam?
explain the information contained in ci
what are the codes returned by the ams (access method services) command during the execution in vsam?
what does a file status of 02 on a vsam signifies?
What is the main function of key sequenced data set in vsam?
How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?
What is the purpose of control intervals in vsam?
Explain the index set?
What is recovery parameters in define cluster command?
to use the rewrite command, how should the vsam file be opened?
difference between vsam and database tables
Using alternate indexes in batch program?