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


Please Help Members By Posting Answers For Below Questions

what are the codes returned by the ams (access method services) command during the execution in vsam?

1067


what is the purpose of the verify function of idcams?

812


what do you mean by idcams? Explain its purpose?

742


What is the main purpose of having user catalog in vsam?

817


is it required that primary key values have to be unique? Do alternate key values have to be unique?

838


Explain the function of the relative record data set?

747


What is the purpose of having vsam data space?

764


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?

1260


explain how can you initialize a vsam file before any operation?

901


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?

903


How does control intervals and control areas related to each other?

807


What are the different dataset organizations used in vsam?

785


explain how many ways you can load data in a vsam cluster?

823


explain in brief what are the 3 types of vsam files?

883


What is control area?

884