HLASM Language Reference
HLASM Language Reference HLASM Language Reference
SET Symbols SET Symbol Specifications SET symbols can be used in model statements, from which assembler language statements are generated, and in conditional assembly instructions. The three types of SET symbols are: SETA, SETB, and SETC. A SET symbol must be a valid variable symbol. The rules for creating a SET symbol are: The first character must be an ampersand (&) The second character must be an alphabetic character The remaining characters must be 0 to 61 alphanumeric The first four characters should not be &SYS, which are used for system variable symbols Examples: &ARITHMETICVALUE439 &BOOLEAN &C &EASY_TO_READ Local SET symbols need not be declared by explicit declarations. The assembler considers any undeclared variable symbol found in the name field of a SETx instruction as a local SET symbol, and implicitly declares it to have the type specified by the SETx instruction. The instruction that declares a SET symbol determines its scope and type. The features of SET symbols and other types of variable symbols are compared in Figure 86. Figure 86 (Page 1 of 3). Features of SET Symbols and Other Types of Variable Symbols Features Can be used in: Open code SETA, SETB, SETC symbols Yes Symbolic Parameters No System Variable Symbols &SYSASM &SYSDATC &SYSDATE &SYSJOB &SYSM_HSEV &SYSM_SEV &SYSOPT_DBCS &SYSOPT_OPTABLE &SYSOPT_RENT &SYSOPT_XOBJECT &SYSPARM &SYSSTEP &SYSSTMT &SYSTEM_ID &SYSTIME &SYSVER Macro definitions Yes Yes All 320 HLASM V1R5 Language Reference
SET Symbols Figure 86 (Page 2 of 3). Features of SET Symbols and Other Types of Variable Symbols Features Scope: Local SETA, SETB, SETC symbols Yes Symbolic Parameters Yes System Variable Symbols &SYSADATA_DSN &SYSADATA_MEMBER &SYSADATA_VOLUME &SYSCLOCK &SYSECT &SYSIN_DSN &SYSIN_MEMBER &SYSIN_VOLUME &SYSLIB_DSN &SYSLIB_MEMBER &SYSLIB_VOLUME &SYSLIN_DSN &SYSLIN_MEMBER &SYSLIN_VOLUME &SYSLIST &SYSLOC &SYSMAC &SYSNDX &SYSNEST &SYSPRINT_DSN &SYSPRINT_MEMBER &SYSPRINT_VOLUME &SYSPUNCH_DSN &SYSPUNCH_MEMBER &SYSPUNCH_VOLUME &SYSSEQF &SYSTERM_DSN &SYSTERM_MEMBER &SYSTERM_VOLUME Global Yes No &SYSASM &SYSDATC &SYSDATE &SYSJOB &SYSM_HSEV &SYSM_SEV &SYSOPT_DBCS &SYSOPT_OPTABLE &SYSOPT_RENT &SYSOPT_XOBJECT &SYSPARM &SYSSTEP &SYSSTMT &SYSTEM_ID &SYSTIME &SYSVER Chapter 9. How to Write Conditional Assembly Instructions 321
- Page 290 and 291: &SYSIN_MEMBER System Variable Symbo
- Page 292 and 293: &SYSJOB System Variable Symbol &SYS
- Page 294 and 295: &SYSLIN_DSN System Variable Symbol
- Page 296 and 297: &SYSLIST System Variable Symbol The
- Page 298 and 299: &SYSLOC System Variable Symbol To
- Page 300 and 301: &SYSM_SEV System Variable Symbol &S
- Page 302 and 303: &SYSNDX System Variable Symbol The
- Page 304 and 305: &SYSOPT_DBCS System Variable Symbol
- Page 306 and 307: &SYSPARM System Variable Symbol Not
- Page 308 and 309: &SYSPRINT_MEMBER System Variable Sy
- Page 310 and 311: &SYSPUNCH_MEMBER System Variable Sy
- Page 312 and 313: &SYSSTEP System Variable Symbol Not
- Page 314 and 315: &SYSTERM_DSN System Variable Symbol
- Page 316 and 317: &SYSTIME System Variable Symbol Not
- Page 318 and 319: Macro Instruction Format sequence_s
- Page 320 and 321: Macro Instruction Format Operand En
- Page 322 and 323: Macro Instruction Format When you n
- Page 324 and 325: Sublists in Operands the order in w
- Page 326 and 327: Sublists in Operands &SYSLIST( n,m)
- Page 328 and 329: Values in Operands Notes: 1. Spaces
- Page 330 and 331: Values in Operands Parentheses In m
- Page 332 and 333: Inner and Outer Macro Instructions
- Page 334 and 335: Levels of Macro Call Nesting When t
- Page 336 and 337: Levels of Macro Call Nesting System
- Page 338 and 339: How to Write Conditional Assembly I
- Page 342 and 343: SET Symbols Figure 86 (Page 3 of 3)
- Page 344 and 345: Data Attributes this example indica
- Page 346 and 347: Data Attributes variable_symbol is
- Page 348 and 349: Data Attributes The value of an att
- Page 350 and 351: Data Attributes The following attri
- Page 352 and 353: Data Attributes Assembler gives a t
- Page 354 and 355: Data Attributes The scale attribute
- Page 356 and 357: Data Attributes Number Attribute (N
- Page 358 and 359: Data Attributes The operation code
- Page 360 and 361: Lookahead MACRO &NAME MOVE &TO,&FRO
- Page 362 and 363: Open Code Sequence Symbols The cond
- Page 364 and 365: GBLA, GBLB, and GBLC Instructions G
- Page 366 and 367: LCLA, LCLB, and LCLC Instructions s
- Page 368 and 369: SETA Instruction expression is an a
- Page 370 and 371: SETA Instruction | The logical-exp
- Page 372 and 373: SETA Instruction | Figure 99 (Page
- Page 374 and 375: SETA Instruction | The result of C2
- Page 376 and 377: SETA Instruction NOT Format: Logica
- Page 378 and 379: SETA Instruction | X2A Name Operati
- Page 380 and 381: SETA Instruction In evaluating the
- Page 382 and 383: SETB Instruction Any expression tha
- Page 384 and 385: SETB Instruction ┌─────
- Page 386 and 387: SETB Instruction | ISDEC | Format:
- Page 388 and 389: SETB Instruction The two comparands
SET Symbols<br />
Figure 86 (Page 2 of 3). Features of SET Symbols and Other Types of Variable Symbols<br />
Features<br />
Scope:<br />
Local<br />
SETA,<br />
SETB,<br />
SETC<br />
symbols<br />
Yes<br />
Symbolic<br />
Parameters<br />
Yes<br />
System Variable<br />
Symbols<br />
&SYSADATA_DSN<br />
&SYSADATA_MEMBER<br />
&SYSADATA_VOLUME<br />
&SYSCLOCK<br />
&SYSECT<br />
&SYSIN_DSN<br />
&SYSIN_MEMBER<br />
&SYSIN_VOLUME<br />
&SYSLIB_DSN<br />
&SYSLIB_MEMBER<br />
&SYSLIB_VOLUME<br />
&SYSLIN_DSN<br />
&SYSLIN_MEMBER<br />
&SYSLIN_VOLUME<br />
&SYSLIST<br />
&SYSLOC<br />
&SYSMAC<br />
&SYSNDX<br />
&SYSNEST<br />
&SYSPRINT_DSN<br />
&SYSPRINT_MEMBER<br />
&SYSPRINT_VOLUME<br />
&SYSPUNCH_DSN<br />
&SYSPUNCH_MEMBER<br />
&SYSPUNCH_VOLUME<br />
&SYSSEQF<br />
&SYSTERM_DSN<br />
&SYSTERM_MEMBER<br />
&SYSTERM_VOLUME<br />
Global<br />
Yes<br />
No<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 />
Chapter 9. How to Write Conditional Assembly Instructions 321