22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SET Symbols<br />

SET Symbol Specifications<br />

SET symbols can be used in model statements, from which assembler language<br />

statements are generated, and in conditional assembly instructions. The three<br />

types of SET symbols are: SETA, SETB, and SETC. A SET symbol must be a<br />

valid variable symbol.<br />

The rules for creating a SET symbol are:<br />

The first character must be an ampersand (&)<br />

The second character must be an alphabetic character<br />

The remaining characters must be 0 to 61 alphanumeric<br />

The first four characters should not be &SYS, which are used for system<br />

variable symbols<br />

Examples:<br />

&ARITHMETICVALUE439<br />

&BOOLEAN<br />

&C<br />

&EASY_TO_READ<br />

Local SET symbols need not be declared by explicit declarations. The assembler<br />

considers any undeclared variable symbol found in the name field of a SETx<br />

instruction as a local SET symbol, and implicitly declares it to have the type<br />

specified by the SETx instruction. The instruction that declares a SET symbol<br />

determines its scope and type.<br />

The features of SET symbols and other types of variable symbols are compared in<br />

Figure 86.<br />

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

Features<br />

Can be used in:<br />

Open code<br />

SETA,<br />

SETB,<br />

SETC<br />

symbols<br />

Yes<br />

Symbolic<br />

Parameters<br />

No<br />

System Variable<br />

Symbols<br />

&SYSASM<br />

&SYSDATC<br />

&SYSDATE<br />

&SYSJOB<br />

&SYSM_HSEV<br />

&SYSM_SEV<br />

&SYSOPT_DBCS<br />

&SYSOPT_OPTABLE<br />

&SYSOPT_RENT<br />

&SYSOPT_XOBJECT<br />

&SYSPARM<br />

&SYSSTEP<br />

&SYSSTMT<br />

&SYSTEM_ID<br />

&SYSTIME<br />

&SYSVER<br />

Macro definitions<br />

Yes<br />

Yes<br />

All<br />

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