z/OS MVS Programming: Authorized Assembler Services Reference SET-WTO
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


SYNCH and SYNCHX - Execute form

z/OS MVS Programming: Authorized Assembler Services Reference SET-WTO
SA23-1375-00

The execute form of the SYNCH or SYNCHX macro uses a remote program parameter list that can be generated by the list form of SYNCH or SYNCHX.

Syntax

The execute form of the macro is written as follows:

Syntax Description
   
   name name: Symbol. Begin name in column 1.
   
One or more blanks must precede SYNCH or SYNCHX.
   
SYNCH  
   
One or more blanks must follow SYNCH or SYNCHX.
   
entry point addr entry point addr: RX-type address, or register (2) - (12) or (15).
   
   ,RESTORE=NO  
   ,RESTORE=YES  
   
   ,KEYADDR=addr addr: RX-type address, or register (2) - (12).
   ,KEYADDR=NOKEYADDR  
   
   ,STATE=PROB  
   ,STATE=SUPV  
   
   ,KEYMASK=addr addr: RX-type address, or register (0) - (12).
   ,XMENV=addr addr: RX-type address or register (0) - (12).
   
   ,AMODE=24
Note: AMODE=DEFINED can only be specified if the entry point is provided in a register.
   ,AMODE=31  
   ,AMODE=DEFINED  
   ,AMODE=CALLER  
   
,MF=(E,ctrl addr) ctrl addr: RX-type address or register (1), (2) - (12).
   

Parameters

The parameters are explained under the standard form of the SYNCH macro with the following exceptions:

,KEYADDR=NOKEYADDR
Indicates that the default(the key in the TCB) should be used instead of the key in the parameter list defined by a list form of the macro.
,MF=(E,ctrl addr)
Specifies the execute form of the SYNCH macro using a list generated by the list form of SYNCH.

Example

Use the execute form of the SYNCH macro to take a synchronous exit to the program located at the address given in register 8 and restore registers 2-13 when control returns. Indicate that the program is to receive control in the same addressing mode as the caller and that the parameter list is located at SYNCHL2.
SYNCH (8),RESTORE=YES,AMODE=CALLER,MF=(E,SYNCHL2)

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014