22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

&SYSMAC System Variable Symbol<br />

Notes:<br />

1. The value of the type attribute of &SYSLOC (T'&SYSLOC) is always U.<br />

2. The value of the count attribute (K'&SYSLOC) is equal to the number of<br />

characters assigned as a value to &SYSLOC.<br />

3. Throughout the use of a macro definition, the value of &SYSLOC is considered<br />

a constant.<br />

&SYSMAC System Variable Symbol<br />

By varying the subscripts attached to the &SYSMAC you can refer to the name of<br />

any of the macros called between open code and the current nesting level, that is,<br />

&SYSMAC(&SYSNEST) returns 'OPEN CODE'. Valid subscripts are 0 to<br />

&SYSNEST. If &SYSMAC is used with a subscript greater than &SYSNEST, a null<br />

character string is returned.<br />

&SYSMAC with no subscript is treated as &SYSMAC(0) and so provides the name<br />

of the macro being expanded. This is not considered to be an error and so no<br />

message is issued.<br />

The local-scope system variable symbol &SYSMAC is assigned a read-only value<br />

each time a macro definition is called.<br />

Notes:<br />

1. The value of the type attribute of &SYSMAC (T'&SYSMAC(n)) is U, unless<br />

&SYSMAC(n) is assigned a null character string, in which case the value of the<br />

type attribute is O.<br />

2. The value of the count attribute (K'&SYSMAC(n)) is equal to the number of<br />

characters assigned as a value to &SYSMAC(n).<br />

&SYSM_HSEV System Variable Symbol<br />

Use &SYSM_HSEV to get the highest MNOTE severity so far for the assembly.<br />

The global-scope system variable symbol &SYSM_HSEV is assigned a read-only<br />

value. The assembler compares this value with the severity of MNOTE assembler<br />

instructions as they are encountered and, if lower, updates it with the higher value.<br />

Notes:<br />

1. The value of the variable symbol is supplied as three numeric characters, not<br />

as an arithmetic (binary) value.<br />

2. The value of the type attribute of &SYSM_SEV (T'&SYSM_SEV) is always N.<br />

3. The value of the count attribute (K'&SYSM_SEV) is always 3.<br />

4. The value of &SYSM_HSEV is unreliable if any MNOTE is incorrectly coded<br />

such that a diagnostic message is generated for the MNOTE statement. The<br />

cause of the diagnostic message must be corrected.<br />

In Figure 71 on page 281 the &SYSM_HSEV variable is updated immediately<br />

when an MNOTE is issued with a higher severity.<br />

Chapter 7. How to Specify Macro Definitions 279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!