What happens when you open an empty VSAM file in a COBOL
program for input?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vinodh
Will result in
IDC3351I ** VSAM OPEN RETURN CODE IS 160
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / jitendra kumar r
use OPTION key word after the select in file control.
| Is This Answer Correct ? | 2 Yes | 1 No |
What are the access method services used in vsam?
What is Base Cluster ?
Do all versions of the GDG have to be of the same record length ?
What is a VSAM slot?
what is the difference b/w sequential and ESDS
Using alternate indexes in batch program?
What is the index set?
How do you decide on optimum values for CI, FREESPACE etc...?
What is a CA, control area?
FREESPACE can be specified for which type of cluster? a.LDS b.RRDS c.ESDS d.KSDS
how can you load a vsam data set with records ?
How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?