The LINKX macro performs the same function as LINK. It passes control to a specified entry name in another load module. LINKX is intended for use by programs running in access register (AR) mode.
The LINKX macro can be used by callers in AR or primary ASC mode.
If your program is in AR mode, issue the SYSSTATE ASCENV=AR macro before you issue LINKX.
Parameters passed to the called program using the PARAM parameter must reside in your primary address space.
When the caller regains control or the ERRET exit receives control, the access registers (ARs) are unchanged.
The standard form of the LINKX macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede LINKX. |
LINKX | |
␢ | One or more blanks must follow LINKX. |
EP=entry name | entry name: Symbol. |
EPLOC=entry name addr | entry name addr: A-type address, or register (2) - (12). |
DE=list entry addr | list entry addr: A-type address, or register (2) - (12). |
,DCB=dcb addr | dcb addr: A-type address, or register (2) - (12). |
,PARAM=(addr) | addr: A-type address, or register (2) - (12). |
,PARAM=(addr),VL=1 | Note: addr is one or more addresses, separated by commas. For example, (addr,addr,addr) |
,PLIST4=YES | Default: None. |
,PLIST4=NO | |
,PLIST8=YES | Default: None. |
,PLIST8=NO | |
,PLIST8ARALETS=NO | Default: PLIST8ARALETS=NO |
,PLIST8ARALETS=YES | |
,ID=id nmbr | id nmbr: Symbol or decimal digit, with a maximum value of 4095. |
,ERRET=err rtn addr | err rtn addr: A-type address, or register (2) - (12). |
,LSEARCH=NO | Default: NO |
,LSEARCH=YES | |
,AMODE64OK=NO | Default: NO |
,AMODE64OK=YES | |
The parameters are explained under LINK with the following exceptions. The parameter list on the PARAM parameter is different for callers in AR mode. It is described as follows:
If running AMODE 64 and PLIST4=YES is specified, the system builds a 4-bytes-per-entry parameter list just as it would if the program were running AMODE 24 or AMODE 31 and did not specify PLIST4 or PLIST8.
If running AMODE 24 or AMODE 31 and PLIST8 is specified, the system builds an 8-bytes-per-entry parameter list just as it would if the program were running AMODE 64 and did not specify PLIST4 or PLIST8.