Subset pointer status codes

If you make an error in an SSA that contains subset pointer command codes, IMS can return either of these status codes to your program.

AJ
The SSA used an R, S, Z, W, or M command code for a segment that does not have subset pointers defined in the DBD.

The subset command codes included in the SSA are in conflict. For example, if one SSA contains an S command code and a Z command code for the same subset pointer, IMS returns an AJ status code. S indicates that you want to set the pointer to current position; Z indicates that you want to set the pointer to 0. You cannot use these command codes in one SSA.

The SSA includes more than one R command code.

The pointer number following a subset pointer command code is invalid. You either did not include a number, or you included an invalid character. The number following the command code must be between 1 and 8.

AM
The subset pointer referenced in the SSA is not specified in the program's PSB. For example, if your program's PSB specifies that your program can use subset pointers 1 and 4, and your SSA references subset pointer 5, IMS returns an AM status code.

Your program tried to use a command code that updates the pointer (S, W, or M), but the program's PSB did not specify pointer-update sensitivity.

Your program attempted to open a GSAM database without specifying an IOAREA.