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

can i see how many records does a vsam file have without browsing or without using file-aid? and same for ps file?

3 Answers   Tech Mahindra,


What is the use of VSAM files? How to read this ?

3 Answers   CTS,


what do you mean by a vsam slot?

0 Answers   IBM,


What is an alternate index and path ?

2 Answers   Infosys, TCS,


What are the optional parameters to the input dataset While loading the empty cluster with the data records?

1 Answers   IBM,






in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?

0 Answers   IBM,


Would you specify FREESPACE for an ESDS?

1 Answers  


if you wish to use the rewrite command how must the vsam file be opened?

0 Answers   IBM,


What are the information stored in ci?

0 Answers  


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

0 Answers   IBM,


How do you calculate record size of an alternate cluster?

0 Answers  


How do you initialize a VSAM file before any operation? a VSAM with alternate index?

2 Answers   IBM,


Categories