What happens when you open an empty VSAM file in a COBOL
program for input?
Answers were Sorted based on User's Feedback
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 |
Answer / vinodh
Will result in
IDC3351I ** VSAM OPEN RETURN CODE IS 160
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / jitendra kumar r
use OPTION key word after the select in file control.
| Is This Answer Correct ? | 2 Yes | 1 No |
OPEN INPUT StudentFile READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ PERFORM UNTIL EndOfStudentFile DISPLAY StudentId SPACE StudentName SPACE CourseCode SPACE YOBirth READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ END-PERFORM CLOSE StudentFile STOP RUN what will be output
What is the significance of the SHAREOPTIONS parameter?
What are the distinctive features of a ksds, key sequenced dataset?
why ci and ca splits are not possible in esds and rrds?
How do you calculate record size of an alternate cluster? Give your values for both unique and nonunique.
how many ways can we open i vsam file ? like print ch ids (/) is thre any other way to open the vsam file please can any one answer ?
what are the different types of vsam files available? Explain them
what is the concept of AIX in vsam ????
what is the use of reuse in vsam?
name the utility program closely associated with vsam?
What is the purpose of control intervals in vsam?
Why is master catalog used in vsam?