Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Extensions to the DC, DS, and EQU assembler instructions HLASM Programmer's Guide SC26-4941-06 |
|
The symbol table allows each symbol to have a program type and an assembler type assigned. The DC and DS assembler instructions allow you to specify a program type in the fourth subfield, following type_extension. The subfield has the format P(program_type), where program_type is a 32 bit self-defining term. For example:
The assembler assigns a default assembler type to the symbol comprising the type_user subfield and, if specified, the type_extension subfield. The EQU assembler instruction allows you to specify a program type operand and an assembler type operand. You use the fourth operand (program type) to specify a 32-bit self-defining
term. This value is assigned as the symbol's program type. For example:
You use the fifth operand (assembler type) to specify an assembler type keyword, which is restricted to a specific set of keywords. For a list of valid keywords for the EQU instruction, see "EQU instruction" in the HLASM Language Reference. The value (1 to 4 bytes) is assigned as the symbol's assembler type. For example:
The SYSATTRP built-in function allows you to query the program type for a symbol. The SYSATTRA built-in function allows you to query the assembler type for a symbol. For details about the DC, DS, and EQU instructions, or the SYSATTRP and SYSATTRA built-in functions, see the HLASM Language Reference. Figure 1 shows the behavior using T'
and built-in functions to retrieve the original type attribute, the
program type, and the assembler type for a DC symbol. Also shown is
the extended DC instruction allowing the assigning of the program
type to the defined symbol.
Figure 1. Behavior to assign and retrieve a symbol's types
Figure 2 shows the behavior using T'
and built-in functions to retrieve the original type attribute, the
program type, and the assembler type for an EQU symbol. Also shown
is the EQU instruction allowing the assigning of assembler types to
symbols used to represent registers.
Figure 2. Behavior to assign and retrieve
a symbol's register types
|
Copyright IBM Corporation 1990, 2014
|