Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Description z/OS MVS Programming: Authorized Assembler Services Reference SET-WTO SA23-1375-00 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note: To suspend an RB, use the variation of the SUSPEND macro described
under SUSPEND — Suspend execution of an RB.
To request suspension of a supervisor request block (SRB), use this variation of the SUSPEND macro. When a caller issues the SUSPEND macro for an SRB, the system passes control to an exit routine identified on the SUSPEND macro and passes the suspend token to the routine. The exit routine decides whether to suspend the SRB or allow the SRB to continue execution and informs the system of its decision. If the SRB is to be suspended, the exit routine must store the suspend token so that the token can later be used to resume the SRB. The system takes the action requested by the exit routine. If the SRB is suspended, the SRB remains suspended until a subsequent RESUME macro either causes the SRB to resume execution or purges the SRB. If the exit routine allows the SRB to continue execution, control returns to the program that issued the SUSPEND macro. Note: If the suspend completes successfully, the system will release
any local lock that the caller might have held.
EnvironmentThe requirements for the caller are:
Programming requirementsProgramming requirements for the calling program are:
RestrictionsNone. Input register informationBefore issuing the SUSPEND 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. Output register informationAfter the caller issues the macro, the system might use some registers as work registers or might change the contents of some registers. When the system 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. When control returns to the caller, the general purpose registers
contain:
When control returns to the caller, the access registers contain:
Performance implicationsNone. SyntaxThe standard form of the SUSPEND macro is written as follows:
ParametersThe parameters are explained as follows:
ABEND codes017 See z/OS MVS System Codes for an explanation and programmer responses for this code. Return codesWhen the SUSPEND macro returns control to your program, GPR 15 contains a hexadecimal return code.
ExampleSuspend the execution of an SRB.
|
Copyright IBM Corporation 1990, 2014
|