GSAM status codes
Your program should test for status codes after each GSAM call, just as it does after each DL/I or system service call.
If, you find that you have an error and terminate your program after checking the status
codes, be sure to note the PCB in error before you terminate. The GSAM PCB address is helpful in
determining problems. When a program that uses GSAM terminates abnormally, GSAM issues
PURGE and CLSE calls internally, which changes the PCB
information.
Status codes that have specific meanings for GSAM are:
- AF
- GSAM detected a BSAM variable-length record with an invalid format. Terminate your program.
- AH
- You have not supplied an RSA for a
GUcall. - 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
ISRTcall after receiving an AI or AO status code. Terminate your program.