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.

System Variable Symbols<br />

System Variable Symbols<br />

System variable symbols are a special class of variable symbols, starting with the<br />

characters &SYS. Their values are set by the assembler according to specific rules.<br />

You cannot declare them in local-scope SET symbols or global-scope SET<br />

symbols, nor use them as symbolic parameters in macro prototype statements.<br />

You can use these symbols as points of substitution in model statements and<br />

conditional assembly instructions.<br />

All system variable symbols are subject to the same rules of concatenation and<br />

substitution as other variable symbols.<br />

A description of each system variable symbols begins on page 263.<br />

You should not prefix your SET symbols with the character sequence &SYS.<br />

The assembler uses this sequence as a prefix to all system variable symbol<br />

names, and using them for other SET symbol names might cause future<br />

conflicts.<br />

Scope and Variability of System Variable Symbols<br />

Global Scope: Some system variable symbols have values that are established at<br />

the beginning of an assembly and are available both in open code and from within<br />

macros. These symbols have global scope. Most system variable symbols with<br />

global scope have fixed values, although there are some whose value can change<br />

within a single macro expansion. The global-scope system variables symbols with<br />

variable values are &SYSSTMT, &SYSM_HSEV, and &SYSM_SEV.<br />

Local Scope: Some system variable symbols have values that are available only<br />

from within a macro expansion. These system variables have local scope. Since<br />

the value of system variable symbols with local scope is established at the<br />

beginning of a macro expansion and remains unchanged throughout the expansion,<br />

they are designated as having constant values, even though they might have<br />

different values in a later expansion of the same macro, or within inner macros.<br />

Over half of the system variable symbols have local scope and therefore are not<br />

available in open code.<br />

262 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!