Mainframe Interview Questions




Q:

What are the types of VSAM dataset?

A: . Entry sequenced dataset (ESDS), key sequenced dataset (KSDS) and relative record dataset (RRDS).

Q:

How are records stored in an ESDS, entry sequenced dataset?

A: They are stored without respect to the contents of the records and in the order in which they are included in the file.

Q:

What is a CI, control interval?

A: A control interval is the unit of information that VSAM transfers between virtual and auxiliary storage.

Q:

. What are the distinctive features of a ksds, key sequenced dataset?

A: The index and the distributed free space

Q:

What is a CA, control area?

A: A group of control intervals makes up a control area.

Q:

What is a sequence set?

A: This is the part of the index that points to the CA and CI of the record being accessed.

Q:

What is the index set?

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

Q:

What is a cluster?

A: 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.

Q:

What is the catalog?

A: The catalog contains the names of all dataset, VSAM and non-VSAM. It is used to access these dataset.

Q:

What is an alternate index?

A: An AIX is a file that allows access to a VSAM dataset by a key other than the primary one.

Q:

What is a path?

A: 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.

Q:

What is the upgrade set?

A: The upgrade set is the list of all AIXes that VSAM must maintain for a specific base cluster, so that when data in the base cluster is updated, the AIX files are also updated.

Q:

What is free space?

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

Q:

What is a VSAM split?

A: 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.

Q:

What is the base cluster?

A: The base cluster consists of the data component and the index component for the primary index of a KSDS.

Q:

Do primary key values have to be unique? Do alternate key values have to be unique?

A: Primary key values must be unique; alternate key values need not be.

Q:

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

A: The ORGANIZATION is INDEXED.

Q:

In the COBOL SELECT statement for a KSDS what are the three possibilities for ACCESS?

A: ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC.



Mainframe / DB2 Interview Questions