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

45⟩ There are at least seven IDCAMS commands name and explain each of them?

ALTER modifies information for a catalog, alternate index, cluster or path. BLDINDEX builds the alternate index, of course. DEFINE is used for ALTERNATEINDEX, CLUSTER or PATH. DELETE removes the catalog entry for a catalog, cluster, alternate index or path. LISTCAT lists information about the dataset. PRINT prints the dataset contents. REPRO copies records from one file to another.

 124 views

47⟩ What is the VSAM-code field?

It is a COBOL II enchancement to VSAM batch processing expanding the FILE STATUS field. It is defined in WORKING-STORAGE as a six byte group item with three two byte elements, the normal return code, the function code and the feedback code.

 129 views

48⟩ What is the meaning of each of the values in SHAREOPTS (2 3)?

Value of 2 for cross region means that the file can be processed simultaneously by multiple users provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can process the file for input or output (VSAM does nothing to ensure integrity).

 154 views

52⟩ What is a LDS (Linear Data Set) and what is it used for?

LDS is a VSAM dataset in name only. It has unstructured 4k (4096 bytes ) fixed size CT's which do not contain control fields and therefore from VSAM's standpoint they do not contain any logical records. There is no free space, and no access from Cobol. Can be accessed by DB2 and IMS fast path datasets. LDS is essentially a table of data maintained on disk. The 'table entries' must be created via a user program and can only be logically accessed via a user program. When passed, the entire LDS must be mapped into storage, and then data is accessed via base and displacement type processing.

 122 views

53⟩ Using Alternate Indexes in Batch program?

In the JCL, you must have DD statements for the cluster and for the path9s). In the COBOL program, SELECT ... ASSIGN TO ddname for base cluster RECORD KEY IS... ALTERNATE RECORD KEY IS ...

 126 views