Use the execute form of the STIMERM macro together with the list form of the macro for applications that require reentrant code. The execute form of the macro stores the parameters into the storage area defined by the list form.
The execute form of the STIMERM macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede STIMERM. |
STIMERM | |
␢ | One or more blanks must follow STIMERM. |
Valid parameters (Required parameters are underlined) | |
SET | For SET: ID, BINTVL or DINTVL or GMT or MICVL or TOD |
TEST | or TUINTVL or LT, ERRET, WAIT, EXIT, PARM, RELATED |
CANCEL | For TEST: ID, TU or MIC, ERRET, RELATED |
For CANCEL: ID, TU or MIC, ERRET, RELATED | |
,ID=stor addr | stor addr: A-type address or register (2) - (12). |
,ID=ALL | Note: ID=ALL is valid only on the CANCEL request. |
,TU=stor addr |
stor addr: A-type address or register (2) - (12). |
,BINTVL=stor addr |
stor addr: A-type address or register (2) - (12). |
,ERRET=err rtn addr | err rtn addr: A-type address or register (2) - (12). |
,WAIT=YES |
Default: WAIT=NO |
,EXIT=exit rtn addr | exit rtn addr: A-type address or register (2) - (12). |
,PARM=stor addr | stor addr: A-type address or register (2) - (12). |
Note: If PARM is specified, EXIT must be specified and WAIT=YES must not be specified. | |
,MF=(E,ctrl addr) | ctrl addr: A-type address or register (0), (2)-(12) for TEST and CANCEL, register (1)-(12) for SET. |
,RELATED=value | |
The parameters are explained in the standard form of the STIMERM macro, with the following exception.
STIMERM SET,ID=(4),MICVL=(INTERVAL),EXIT=ROUTE,PARM=DATA, X
MF=(E,REMOTE),ERRET=(9)
DATA DC CL4'WXYZ' PARAMETER PASSED TO THE EXIT ROUTINE
INTERVAL DC X'000000000000F000' TIME INTERVAL
STIMERM TEST,ID=ADDR,MIC=INTERVAL,MF=(E,(3)),ERRET=ERR
INTERVAL DS XL8 REMAINING TIME
STIMERM CANCEL,ID=ADDRESS,TU=INTERVAL,MF=(E,(0)),ERRET=ERROR
ADDRESS DS F ID TO BE CANCELLED
INTERVAL DS XL4 REMAINING TIME