HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


&SYSSTYP System Variable Symbol

HLASM Language Reference
SC26-4940-06

Use &SYSSTYP in a macro definition to generate the type of the current control section. The current control section is the control section in which the macro instruction that calls the definition appears.

The local-scope system variable symbol &SYSSTYP is assigned a read-only value each time a macro definition is called.

The value assigned is the symbol that represents the type of the current control section in effect when the macro is called. A control section that has been initiated or continued by substitution does not affect the value of &SYSSTYP for the expansion of the current macro. However, it does affect &SYSSTYP for a subsequent macro call. Nested macros cause the assembler to assign a value to &SYSSTYP that depends on the control section in force inside the calling macro when the inner macro is called.

The control section whose type is assigned to &SYSSTYP can be defined by a program sectioning statement. This can be a START, CSECT, RSECT, DSECT, or COM statement, or, for the first control section, any instruction described in First section. Depending upon the instruction used to initiate the current control section, the value assigned to &SYSSTYP is either CSECT, RSECT, DSECT, or COM. If the current control section is unnamed, or is an executable control section initiated by other than a START, CSECT, or RSECT instruction, then the value assigned to &SYSSTYP is CSECT.

If a control section has not been initiated, &SYSSTYP is assigned a null character string.
Notes:
  1. The value of the type attribute of &SYSSTYP (T'&SYSSTYP) is U, unless &SYSSTYP is assigned a null character string, in which case the value of the type attribute is O.
  2. The value of the count attribute of &SYSSTYP (K'&SYSSTYP) is equal to the number of characters assigned as a value to &SYSSTYP. If &SYSSTYP is assigned a null character string, the value of the count attribute is 0.
  3. Throughout the use of a macro definition, the value of &SYSSTYP is considered a constant.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014