LOADWAIT MF=(L,TEST),
CODE=WAITA29,
WAITTYPE=RESTARTABLE
REASON=SOMERC
WTO 'WMM0001 UNABLE TO COMMUNICATE A REPLY',
LINKAGE=BRANCH,SYNCH=YES,WSPARM=TEST
WAITA29 EQU X'A29'
SOMERC EQU X'3'
This example represents the most common usage of the LOADWAIT macro. The list form of the macro is used because both the wait state and reason code are known at program assembly time. The calling program specifies the LOADWAIT parameter list (TEST) on the WSPARM parameter of the WTO. WTO issues the message "WMM0001 UNABLE TO COMMUNICATE A REPLY" and loads the wait state.