Previous Topic: #GETSTG ParametersNext Topic: #GETSTG Example


#GETSTG Status Codes

By default, the #GETSTG request is unconditional. Error conditions that can occur are:

The issuing program can request return of control with the COND to avoid a delay or an abend.

After completion of the #GETSTG request, the value in register 15 indicates the outcome of the operation:

Register 15 Value

Meaning

X'00'

The request has been serviced successfully.

X'04'

The request has specified a storage ID which did not previously exist; the indicated space has been allocated.

X'08'

The request cannot be serviced due to insufficient storage in the storage pool.

X'0C'

The request cannot be serviced due to an invalid parameter list.

X'10'

The requested storage cannot be allocated immediately (insufficient storage), and to wait would cause a deadlock.

X'18'

Allocated XA storage cannot be accessed by a 24-bit task. This situation occurs if storage is requested by STGID and the storage was initially allocated by an XA task.