LINK and LINKX—List form
Two parameter lists are used in a LINK or LINKX macro: a control program parameter list and problem program parameter list. Only the control program parameter list can be constructed in the list form of LINK or LINKX. Address parameters to be passed in a parameter list to the problem program can be provided using the list form of the CALL macro. These parameter lists can be referred to in the execute form of LINK or LINKX.
Syntax
The list form of the LINK or LINKX macro is written as follows:
| Syntax | Description |
|---|---|
| name | name: Symbol. Begin name in column 1. |
| ␣ | One or more blanks must precede LINK or LINKX. |
LINK
LINKX |
|
| ␣ | One or more blanks must follow LINK or LINKX. |
| EP=entry name | entry name: Symbol. |
| EPLOC=entry name addr | entry name addr: A-type address. |
| DE=list entry addr | list entry addr: A-type address. |
| ,DCB=dcb addr | dcb addr: A-type address. |
| ,PLISTARALETS=SYSTEM | Default: ,PLISTARALETS=SYSTEM |
| ,PLISTARALETS=NO | Note: ,PLISTARALETS is valid only with LINKX. |
| ,PLIST8ARALETS=NO | Default: PLIST8ARALETS=NO |
| ,PLIST8ARALETS=YES | Note: PLIST8ARALETS is valid only with LINKX. |
| ,ERRET=err rtn addr | err rtn addr: A-type address. |
| ,LSEARCH=NO | Default: No |
| ,LSEARCH=YES | |
| ,AMODE64OK=NO | AMODE64OK is valid only with LINKX. |
| ,AMODE64OK=YES | Default: NO |
| ,SF=L | |
Parameters
The parameters are explained under the standard form of the LINK and LINKX macros, with the following exception:
- ,SF=L
- Specifies the list form of the LINK or LINKX macro.
Note:
- Coding the LSEARCH parameter causes a parameter list to be created that is different from the list created when LSEARCH is omitted. If you code LSEARCH=YES in either the list or execute form of the macro, you must code it in both forms.
- If ERRET is coded in the list form and not specified in the execute form, the error routine specified in the list form will be retained and used in the execute form of the macro. If ERRET is specified in both the list and the execute form, the error routine specified in the execute form of the macro will be used.