VSAM

  Home  Mainframes  VSAM


“VSAM Interview Questions and Answers will guide us now that Virtual storage access method (VSAM) is an IBM disk file storage access method, first used in the OS/VS2 operating system, later used throughout the Multiple Virtual Storage (MVS) architecture and now in z/OS. Originally a record-oriented filesystem, VSAM comprises four data set organizations: KSDS, RRDS, ESDS and LDS. So learn Virtual storage access method by this VSAM Interview Questions with Answers guide”



86 VSAM Questions And Answers

21⟩ What is a VSAM split?

If there isn't enough space in the control interval VSAM performs a control interval split by moving some records to the free control intervals. If there isn't a free control interval VSAM performs a control area split by allocating a new control area and moving half of the control intervals to it.

 111 views

22⟩ What is a cluster?

A cluster is the combination of the index, sequence set and data portions of the dataset. The operating system gives program access to the cluster, ie. to all parts of the dataset simultaneously.

 137 views

26⟩ What is free space?

Free space is reserved within the data component of a KSDS to accommodate inserting new records.

 157 views

29⟩ What is a path?

A path is a file that allows you to access a file by alternate index - the path provides an association between the AIX and the base cluster.

 136 views

30⟩ What is the index set?

This is the other part of the index. It has multiple levels with pointers that ultimately reach to the sequence set.

 128 views

32⟩ What is the catalog?

The catalog contains the name of all datasets. VSAM and non-VSAM. It is used to access these datasets.

 140 views

35⟩ What is a VSAM slot?

A relative record dataset (RRDS) consists of a specified number of areas called slots. Each slot is identified by a relative record number (RRN) which indicates its relative position in the file.

 157 views

36⟩ What is File Status in VSAM?

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 accociated 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 key1; the second character is file status key 2.

 123 views

40⟩ How do you define an ALTINDX? How do you use ALTINDXs in batch, CICS programs?

DEFINE ALTERNATEINDEX. Impartant parameters are RELATE where you specify the base cluster name, KEYS, RECORDSIZE, SHAREOPTION, UNIQUEKEY (or NONUNIQUEKEY), DATA (DS NAME for the data component), INDEX(DS name for the index component). Then DEFINE PATH. Important paramters are NAME (DS name for the path). PATHENTRY (DS name of the alternate index name). UPDATE (or NOUPDATE) which specifies whether an ALT index is updated when a update to the vase cluster takes place. Then BLDINDEX. Paramters are INDATASET (DS name of base cluster), OUTDATASET (DS name of AIX).

 150 views