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 is the syntax of ams modal commands?

974


why ci and ca splits are not possible in esds and rrds?

943


what are the additional information you should give in the dd statement while defining the next generation of a gdg?

777


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

791


explain the information contained in ci

786


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

1042


what does a file status of 02 on a vsam signifies?

900


What is the main function of key sequenced data set in vsam?

753


How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?

810


What is the purpose of control intervals in vsam?

736


Explain the index set?

840


What is recovery parameters in define cluster command?

793


to use the rewrite command, how should the vsam file be opened?

934


difference between vsam and database tables

897


Using alternate indexes in batch program?

833