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

Explain the significance of the shareoptions parameter?

530


What is a lds (linear data set)?

547


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

760


Explain the difference between lds and esds?

572


What is a vsam dataset?

612






What is the use of KSDS,LDS,ESDS,RRDS??what is VRRDS?? How are all these useful in realtime scenario??Plz helpme out...Its a recent question in IGATE..

8105


what is meant by dirty read in vsam?

834


what do you mean by a vsam slot?

573


Define base cluster?

557


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?

982


Define a path?

593


Using alternate indexes in cics program?

548


how can you load a vsam data set with records ?

647


Why is it required to have a keyed directed retrieval?

549


Explain the biggest disadvantage of using a vsam dataset?

575