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.

SET Symbols<br />

Figure 86 (Page 3 of 3). Features of SET Symbols and Other Types of Variable Symbols<br />

Features<br />

Values can be<br />

changed within<br />

scope of symbol<br />

SETA,<br />

SETB,<br />

SETC<br />

symbols<br />

Yes<br />

Symbolic<br />

Parameters<br />

No, read only<br />

value<br />

System Variable<br />

Symbols<br />

No, read only<br />

value<br />

Notes:<br />

1. The value assigned to a SET symbol can be changed by using the SETA, SETAF,<br />

SETB, SETC, or SETCF instruction within the declared or implied scope of the SET<br />

symbol.<br />

2. A symbolic parameter and the system variable symbols (except for &SYSSTMT,<br />

&SYSM_HSEV, and &SYSM_SEV) are assigned values that remain fixed throughout<br />

their scope. Wherever a SET symbol appears in a statement, the assembler replaces<br />

the symbol's current value with the value assigned to it.<br />

SET symbols can be used in the name, operation, and operand fields of macro<br />

instructions. The value thus passed through the name field symbolic parameter<br />

into a macro definition is considered as a character string and is generated as<br />

such. If the COMPAT(SYSLIST) assembler option is specified, the value passed<br />

through an operand field symbolic into a macro definition is also considered a<br />

character string and is generated as such. However, if the COMPAT(SYSLIST)<br />

assembler option is not specified, SET symbols can be used to pass sublists into a<br />

macro definition.<br />

Subscripted SET Symbol Specification<br />

The format of a subscripted SET symbol is shown below.<br />

►►──&symbol(subscript) ─────────────────────────────────────────────►◄<br />

&symbol<br />

is a variable symbol.<br />

subscript<br />

is an arithmetic expression with a value greater than or equal to 1.<br />

Example:<br />

&ARRAY(2)<br />

The subscript can be any arithmetic expression allowed in the operand field of a<br />

SETA instruction (see “Arithmetic (SETA) Expressions” on page 352).<br />

The subscript refers to one of the many positions in an array of values identified by<br />

the SET symbol.<br />

A subscripted SET symbol can be used anywhere an unsubscripted SET symbol is<br />

allowed. However, subscripted SET symbols must be declared as subscripted by a<br />

previous local or global declaration instruction, or implicitly as a local subscripted<br />

SET symbol in a SETx instruction of the desired type.<br />

322 <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!