IMS DB-GSAM Tough Questions (1of 1)

Many sets of tough questions I am giving in my posts. I hope those greatly help you pick up knowledge on IMSDB/DC.

[“English Harmony System 2.0”… To learn fluent english interactively sitting at home. Speaking is the only way to learn good english. This system has that facility try it.]

Q1) GSAM is also called generalized sequential access method. GSAM files are sequential files,  symbolic checkpoint and XRST calls can be used.

Q2) We cannot REPLACE and DELETE of the GSAM records.

Q3) Life cycle of GSAM file is OPEN the file and CLOSE the file. Records can be added at the end of the file.

Q4) The explicitOPENorCLSEcall need not include an I/O area parameter. Depending on the processing option of the PCB, the data set is opened for input or output.

Q5)  GSAM error codes

AF

GSAM detected a BSAM variable-length record with an invalid format. Terminate your program.

AH

You have not supplied an RSA for a GU call.

AI

There has been a data management OPEN error.

AJ

One of the parameters on the RSA that you supplied is invalid.

AM

You have issued an invalid request against a GSAM database.

AO

An I/O error occurred when the data set was accessed or closed.

GB

You reached the end of the database, and GSAM has closed the database. The next position is the beginning of the database.

IX

You issued an ISRT call after receiving an AI or AO status code. Terminate your program.

In my next posts I will give DLI calls in GSAM-cobol programs.

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.

Comments are closed.