To resume or purge a suspended supervisor request block (SRB), use this variation of the RESUME macro. Optionally, the RESUME macro enables the caller to provide a fullword of data (the resume code) to the suspended SRB routine.
Requirements for the calling program are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Supervisor state or PSW key 0 - 7 |
Dispatchable unit mode: | SRB or task |
Cross memory mode: | Any |
AMODE: | 31-bit |
ASC mode: | Primary or access register (AR) |
Interrupt status: | Can be enabled or disabled for interrupts |
Locks: | Can hold no locks or can hold the local lock, the CML lock, the CMS lock, or the CPU lock |
Control parameters: | Must be in the caller's primary address space or addressable through the caller's dispatchable unit access list (DU-AL) |
None.
Before issuing the RESUME macro, the caller does not have to place any information into any register unless using it in register notation for a particular parameter, or using it as a base register.
After the caller issues the macro, the macro might use some registers as work registers or might change the contents of some registers. When the macro returns control to the caller, the contents of these registers are not the same as they were before the macro was issued. Therefore, if the caller depends on these registers containing the same value before and after issuing the macro, the caller must save these registers before issuing the macro and restore them after the system returns control.
The standard form of the RESUME macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede RESUME. |
RESUME | |
␢ | One or more blanks must follow RESUME. |
SPTOKEN=sptoken addr | sptoken addr: RX-type address. |
,PURGE=NO | Default: PURGE=NO. |
,PURGE=YES | |
,RSCODE=rscode addr | rscode addr: RX-type address. |
,RELATED=value | value: Any valid macro parameter specification. |
The parameters are explained as follows:
17
See z/OS MVS System Codes for an explanation and programmer responses for this code.
When the RESUME macro returns control to your program, GPR 15 contains a hexadecimal return code.
Return Code | Meaning and Action |
---|---|
00 | Meaning: The system has scheduled the
suspended SRB to be resumed. Action: None. |
04 | Meaning: The address space in which the
suspended SRB would have executed has been scheduled for termination.
The system will purge the suspended SRB. Action: None required. However, you might take some action based upon your application. |
08 | Meaning: The suspend token (SPTOKEN) does
not identify a currently suspended SRB routine. The SRB may have already
been resumed or purged. Action: None required. However, you might take some action based upon your application. |
24 | Meaning: System error. An error occurred
while trying to resume the suspended SRB. The SRB cannot be resumed. Action: Retry the request. |
⋮
RESUME SPTOKEN=TOKEN,PURGE=NO,RSCODE=RCODE
⋮
DS F
RCODE DC X'99999999'
TOKEN DS CL8
⋮