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.
Questions
GSAM stands for
- Generated Sequential Access Method
- Generalized Sequential Access Method
- Generalized Servicing Access Method
- Generalized Sequential Authendication Method
GSAM is a
- unordered and non hierarchical data base
- sequential and hierarchical data base
- sequential and non hierarchical data base
- unordered and hierarchical data base
Data base access in GSAM can be done by
- Queries
- Function calls
- DL/I calls
- DL/1 calls
The format of GSAM call is
- CALL 'CBLTDLI' USING call-func, pcb-name, ioarea
- CALL 'CBLTDLI' USING call-func, Ioarea
- CALL 'CBLTDLI' USING pcb-name, Ioarea
- CALL 'CBLTDLI' USING call-func, pdb-name pcb-name, Ioarea
The call function name used for getting the next record is
- GNXT
- GN
- GETNEXT
- GETN
The call function name used for inserting a new record is
- INSERT
- INSRT
- ISRT
- INST
In GSAM we can insert records
- At the beginning only
- At the specified position
- At random position
- At the end only
We can add records randomly to GSAM data sets
- True
- False
GSAM does not allow us to
- add and edit the record
- Add and delete the record
- Modify and delete the record
- insert and delete the record
GSAM records can be
- Only fixed length record
- only variable length record
- both fixed length and variable length records
- only specified length record
GSAM data bases can be accessed from CICS through DL/I calls
- True
- False
For variable length records the record length must be specified at the
- last 2 bytes of the record
- First 2 bytes of the records
- 3rd and 4th bytes of the record
- The record length will not be specified in the record
The format of an I/O area with control characters for the fixed length record is
- the data begins in byte 1
- the data begins in byte 0
- control character in byte 0 and data begins in byte 1
- control character is specified at the end
When the call is successful the return code is
- 0
- GB
- Blank
- AF
When the GSAM detected a variable length record with an invalid format it returns
- AF
- AH
- AI
- AO
When the RSA(Key feed back area ) for GU call is not specified it returns
- AF
- AH
- AI
- AO
When there is a data management open error it returns
- AJ
- AI
- AH
- AO
The format of an I/O area with control characters for the variable length record is
- the data begins in byte 1
- byte 0 and byte 1 contains 2 byte length field
- byte 0 contains control character and byte 1 and 2 contains the length field
- byte 0 and 1 contains the 2 byte length field and byte 3 contains control character
RSA field holds the
- Actual record
- Address of the next record
- Address of the record retrieved
- Address of the previous record
When an invalid request is issued against GSAM database it returns
- AI
- AJ
- AM
- AH