What is File Status in VSAM?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of having vsam data space?

526


what is meant by s0c-07 system abend codes?

567


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

654


How does control intervals and control areas related to each other?

551


What does the keyranges parameter in define cluster command do?

522






What are the advantages of vsam over isam?

688


Explain what are the optional parameters to the input dataset while loading the empty cluster with the data records?

608


difference between vsam and database tables

633


what is the syntax of ams modal commands?

770


Explain the catalog?

562


what will happen if there is no secondary allocation made for datasets?

620


What are the information stored in ci?

574


What is a vsam dataset?

620


explain in brief how are different versions of gdg named?

534


What are the different dataset organizations used in vsam?

563