Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
ALIAS instruction HLASM Language Reference SC26-4940-06 |
|
The ALIAS instruction specifies alternate names for the external
symbols that identify control sections, entry points, and external
references. The instruction has nothing to do with the link-time aliases
in libraries.
>>-symbol--ALIAS--alias_string---------------------------------><
The ordinary symbol denoted by symbol must
also appear in one of the following in this assembly:
Note: All external symbols identified by EXTRN, WXTRN, ENTRY and V-cons
statements must belong to an owning section definition.
The assembler uses the string denoted by alias_string to replace the external symbol denoted by symbol in the external symbol dictionary records in the object module. Because the change is made only in the external symbol dictionary, references to the ALIASed symbol in the source program must use the original symbol. If the string is shorter than eight characters, or 16 hexadecimal digits, it is padded on the right with EBCDIC spaces (X'40'). If the string is longer than eight characters, it is truncated. Some programs that process object modules do not support external symbols longer than 8 characters.
The following examples are of the ALIAS instruction, and show both
formats of the alternate name denoted by alias_string.
The alias_string must not match any external
symbol, regardless of case. References to an ALIASed symbol must be
made using the original name; the original symbol is changed only
in the external symbol dictionary. For example, you write
to
refer to the external symbol 'lower1'.Aliased names are not checked against ALIASes for possible duplicates or conflicts. |
Copyright IBM Corporation 1990, 2014
|