GSAM (Generalized Sequential Access Method)

Test your knowledge of GSAM database operations, including record formats, DL/I calls, error handling, and sequential access methods in mainframe environments.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

GSAM stands for

  1. Generated Sequential Access Method
  2. Generalized Sequential Access Method
  3. Generalized Servicing Access Method
  4. Generalized Sequential Authendication Method
Question 2 Multiple Choice (Single Answer)

GSAM is a

  1. unordered and non hierarchical data base
  2. sequential and hierarchical data base
  3. sequential and non hierarchical data base
  4. unordered and hierarchical data base
Question 3 Multiple Choice (Single Answer)

Data base access in GSAM can be done by

  1. Queries
  2. Function calls
  3. DL/I calls
  4. DL/1 calls
Question 4 Multiple Choice (Single Answer)

The format of GSAM call is

  1. CALL 'CBLTDLI' USING call-func, pcb-name, ioarea
  2. CALL 'CBLTDLI' USING call-func, Ioarea
  3. CALL 'CBLTDLI' USING pcb-name, Ioarea
  4. CALL 'CBLTDLI' USING call-func, pdb-name pcb-name, Ioarea
Question 5 Multiple Choice (Single Answer)

The call function name used for getting the next record is

  1. GNXT
  2. GN
  3. GETNEXT
  4. GETN
Question 6 Multiple Choice (Single Answer)

The call function name used for inserting a new record is

  1. INSERT
  2. INSRT
  3. ISRT
  4. INST
Question 7 Multiple Choice (Single Answer)

In GSAM we can insert records

  1. At the beginning only
  2. At the specified position
  3. At random position
  4. At the end only
Question 8 True/False

We can add records randomly to GSAM data sets

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

GSAM does not allow us to

  1. add and edit the record
  2. Add and delete the record
  3. Modify and delete the record
  4. insert and delete the record
Question 10 Multiple Choice (Single Answer)

GSAM records can be

  1. Only fixed length record
  2. only variable length record
  3. both fixed length and variable length records
  4. only specified length record
Question 11 True/False

GSAM data bases can be accessed from CICS through DL/I calls

  1. True
  2. False
Question 12 Multiple Choice (Single Answer)

For variable length records the record length must be specified at the

  1. last 2 bytes of the record
  2. First 2 bytes of the records
  3. 3rd and 4th bytes of the record
  4. The record length will not be specified in the record
Question 13 Multiple Choice (Single Answer)

The format of an I/O area with control characters for the fixed length record is

  1. the data begins in byte 1
  2. the data begins in byte 0
  3. control character in byte 0 and data begins in byte 1
  4. control character is specified at the end
Question 14 Multiple Choice (Single Answer)

When the call is successful the return code is

  1. 0
  2. GB
  3. Blank
  4. AF
Question 15 Multiple Choice (Single Answer)

When the GSAM detected a variable length record with an invalid format it returns

  1. AF
  2. AH
  3. AI
  4. AO
Question 16 Multiple Choice (Single Answer)

When the RSA(Key feed back area ) for GU call is not specified it returns

  1. AF
  2. AH
  3. AI
  4. AO
Question 17 Multiple Choice (Single Answer)

When there is a data management open error it returns

  1. AJ
  2. AI
  3. AH
  4. AO
Question 18 Multiple Choice (Single Answer)

The format of an I/O area with control characters for the variable length record is

  1. the data begins in byte 1
  2. byte 0 and byte 1 contains 2 byte length field
  3. byte 0 contains control character and byte 1 and 2 contains the length field
  4. byte 0 and 1 contains the 2 byte length field and byte 3 contains control character
Question 19 Multiple Choice (Single Answer)

RSA field holds the

  1. Actual record
  2. Address of the next record
  3. Address of the record retrieved
  4. Address of the previous record
Question 20 Multiple Choice (Single Answer)

When an invalid request is issued against GSAM database it returns

  1. AI
  2. AJ
  3. AM
  4. AH