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

difference between vsam and database tables

633


What is the function of entry sequenced data set?

644


What is speed parameters in define cluster command?

495


What are the different commands used in idcams for vsam?

557


explain in brief why do vsam take more disk space than other utilities?

643






Yes. Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.

1876


What is the main function of linear dataset?

558


Explain the device independent method to indicate where a record is stored?

473


what do you mean by a shareoptions parameter (shr) in define cluster command?

593


Tell about the ams used in vsam?

669


explain in brief how are different versions of gdg named?

533


can you specify some the distinctive features of a ksds, key sequenced dataset?

593


what is the probability of a complete system distortion under high end low performing multiprocessor job?

2022


Explain the catalog?

561


Explain the function of the relative record data set?

541