The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Problem state and any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN=HASN=SASN |
AMODE: | 64-bit |
ASC mode: | Primary |
Interrupt status: | Enabled for I/O and external interrupts. |
Locks: | No locks held. |
Control parameters: | Must be in the primary address space and addressable by the caller. |
HLL Definition | Description |
---|---|
IEAASM | 390 Assembler declarations |
IEAC | C/390 and C++/390 declarations |
Pause elements that are created with pause_element_auth_level=IEA_UNAUTHORIZED may only be used by callers in task mode and can only be released from a task in their home address space.
Allocate_Pause_Element cannot be used by tasks that are higher in the task tree than the cross memory resource owning task (the top, or first, job step task in the address space).
Some callers depend on register contents remaining the same before and after issuing a service. If the system changes the contents of registers on which the caller depends, the caller must save them before issuing the service, and restore them after the system returns control.
None.
Syntax | Description |
---|---|
SYSSTATE AMODE64=YES | |
CALL IEA4APE2 |
|
The parameters are explained as follows:
Contains the return code from the Allocate_Pause_Element service.
Contains the pause element token that identifies a pause element that you can use to synchronize the processing of a task or SRB.
Allocation Service version: | Deallocation Rules |
---|---|
IEA4APE | The PE will be deallocated by the system when
one of the following events occurs:
|
IEA4APE2 | The PE will be deallocated by the system when
one of the following events occurs:
|
Specifies the release code which will be returned to a paused DU if the system deallocates the pause element while it is being used to pause a task or SRB, due to the CMRO task of its owning address space terminating.
Variable | Value (hexadecimal) | Meaning |
---|---|---|
IEA_LINKAGE_SVC | 0 | The Allocate_Pause_Element service routine will be invoked via an SVC linkage. This option can be used when in non-cross memory task mode, any key, and either problem state or supervisor state. |
IEA_LINKAGE_BRANCH | 1 | The Allocate_Pause_Element service routine will be invoked via a branch instruction. The caller must be in both key 0 and supervisor state. This option must be selected when in SRB mode. |
None.
When the service returns control to the resource manager, GPR 15 and the return_code parameter contain a hexadecimal return code.
Return code in: Decimal (Hex) | Equate Symbol | Meaning and Action |
---|---|---|
00 (0) | IEA_SUCCESS | Meaning: Successful completion. Action: None. |
24 (18) | IEA_LOCK_HELD | Meaning: Program
error. One or more locks other than the local lock are held. The system
rejects the service call. Action: Check the calling program for a probable coding error. Correct the program and rerun it. |
36 (24) | IEA_UNSUPPORTED_MVS_RELEASE | Meaning: Environmental error.
The system release does not support this service. The system rejects
the service call. Action: Run the program on a system that supports the service. |
40 (28) | IEA_INVALID_AUTHCODE | Meaning: Program error. The
pause_element_auth_level value specified in the call is not valid.
The system rejects the service call. Action: Check the calling program for a probable coding error. Correct the program and rerun it. |
44 (2C) | IEA_INVALID_MODE | Meaning: Program error. The
calling program is not in primary ASC mode, which this service requires.
The system rejects the service call. Action: Check the calling program for a probable coding error. Correct the program and rerun it. |
48 (30) | IEA_OUT_OF_STORAGE | Meaning: Environmental error.
The system could not obtain storage for a pause element. The system
rejects the service call. Action: Retry the request later. If the problem persists, consult your system programmer. |
56 (38) | IEA_NO_PETS_AVAILABLE | Meaning: There are no pause
element tokens available. Action: Try the request again later. |
4095 (FFF) | IEA_UNEXPECTED_ERROR | Meaning: This service routine
encountered an unexpected error. The system rejects this service
request. Action: Search problem reporting databases for a fix for the problem. If no fix exists, contact the IBM® Support Center. |