Establishing an external symbol alias
You can instruct the assembler to use an alias for an external symbol in place of the external symbol itself, when it generates the object module. To do this you must code an ALIAS instruction which specifies the external symbol and the alias you want the assembler to use. The external symbol must be defined in a START, CSECT, RSECT, ENTRY, COM, DXD, external DSECT, EXTRN, or WXTRN instruction, or in a V-type address constant.
The following example shows how you use the ALIAS instruction to
specify an alias for the external symbol
EXMOD1
.
.
.
L 15,EX_SYM Load address of external symbol
BASR 14,15 Branch to it
.
.
EXMOD1 DS 0H Using EXMOD1 as a name entry
.
.
EX_SYM DC V(EXMOD1) Address of external symbol
EXMOD1 ALIAS C'XMD1PGM' XMD1PGM is the real external name
.
.
See ALIAS instruction for information about the ALIAS instruction.