What happens when you open an empty VSAM file in a COBOL
program for input?

Answers were Sorted based on User's Feedback



What happens when you open an empty VSAM file in a COBOL program for input?..

Answer / saravanan k

You will get a file status of 35

Is This Answer Correct ?    15 Yes 1 No

What happens when you open an empty VSAM file in a COBOL program for input?..

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

What happens when you open an empty VSAM file in a COBOL program for input?..

Answer / vinodh

Will result in
IDC3351I ** VSAM OPEN RETURN CODE IS 160

Is This Answer Correct ?    10 Yes 0 No

What happens when you open an empty VSAM file in a COBOL program for input?..

Answer / jitendra kumar r

use OPTION key word after the select in file control.

Is This Answer Correct ?    2 Yes 1 No

What happens when you open an empty VSAM file in a COBOL program for input?..

Answer / sekhar

soc4 earrer will occer

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More VSAM Interview Questions

explain the differences between vsam and non-vsam files

0 Answers   IBM,


there are seven idcams commands in vsam. Can you name and explain each of them?

0 Answers   IBM,


What are all the ways we can create datasets?

7 Answers   IBM,


Define a path?

0 Answers  


What is a lds (linear data set)?

0 Answers  


In the COBOL SELECT statement what is the ORGANIZATION for a KSDS?

4 Answers  


Explain the difference between lds and esds?

0 Answers  


can any one tell "in esds in what structure records will stored?"

1 Answers  


What is IDCAMS? and what is the purpose of it?

4 Answers  


print ids(/)char??what is the full form of ids??

2 Answers   HCL, Hotel Jobs,


Can you delete vsam files with the delete option of the disposition parameter of jcl?

0 Answers   IBM,


By looking into the Jcl can we identify the dataset is VSAM?

5 Answers   Cognizant, Keane India Ltd,


Categories