What is File Status in VSAM?



What is File Status in VSAM?..

Answer / guest

The FILE STATUS clause of the FILE-CONTROL paragraph allows
for each file to be associated with a file status key (i.e.,
the 2-character data item specified in the FILE STATUS
clause). If the FILE STATUS clause is specified for a given
file, a value indicating the status of each I/O operation
against that file is placed in the associated file status
key. This value is stored in the file status key as soon as
the I/O operation is completed (and before execution of any
EXCEPTION/ERROR declarative or INVALIDKEY/AT END phrase
associated with the I/O request).

Note: This element may behave differently when the CMPR2
compiler option is used. The file status key is divided

into two status keys: the first character is known as file
status key 1; the second character is file status key 2.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More VSAM Interview Questions

what is control interval(CI) and control Area(CA)

4 Answers   EDS,


While designing vsam files,what is the best way to choose control interval size for the data and the index?

1 Answers  


I have three fields in a Variable VSAM file X(2) Y(10) occurs X times Z(02) Say for the first record X=2 then the length of the file is 2+(10*3)+2=34 second record, x=4 then 4+(10*4)+2=46 If any time if the field x is updated then the total length changes. Is it feasible? Is it

2 Answers  


How do you calculate record size of an alternate cluster? Give your values for both unique and nonunique.

1 Answers   IBM,


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

4 Answers  


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

1 Answers  


we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.

0 Answers   IBM,


Using Alternate Indexes in Batch pgms: ?

2 Answers   IBM,


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

0 Answers  


What is a ca split?

0 Answers  


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

4 Answers  


By looking into JCL can we identify the dataset is VSAM (VSAM dataset supposed to be a input dataset).In this scenerio how will we identify the dataset is VSAM ?

5 Answers   Cognizant, EDS, Shridhar,


Categories