HLASM Language Reference
HLASM Language Reference HLASM Language Reference
Macro and Conditional Assembly Language Summary Figure 115. Macro Language Elements (Part 2) Attributes Type Statement Length Scale Integer Count Number Defined Operation Code MACRO Prototype Statement GBLA GBLB GBLC LCLA LCLB LCLC Model Statement SETA Operand Operand Operand Operand Operand Operand SETAF Operand Operand Operand Operand Operand SETB Operand Operand Operand Operand Operand Operand Operand Operand SETC Operand Operand SETCF Operand ACTR Operand Operand Operand Operand Operand AEJECT AGO AIF Operand Operand Operand Operand Operand Operand Operand Operand ANOP AREAD ASPACE Operand Operand Operand Operand Operand MEXIT MNOTE MEND Outer Macro Notes: 1. Variable symbols in macro instructions are replaced by their values before processing. 2. Depending upon their values, system variable symbols with global scope can be used in the same way as global SET symbols, and system variable symbols with local scope can be used in the same way as local SET symbols. 3. Only if value is self-defining term. 4. Converted to arithmetic 0 or 1. 5. Only in character relations. 6. Only in arithmetic relations. 7. Only in arithmetic or character relations. 8. Converted to an unsigned number. 9. Converted to character 0 or 1. 10. Only if one to ten decimal digits, not greater than 2147483647. 11. Only in created SET symbols if value of parenthesized expression is an alphabetic character followed by 0 to 61 alphanumeric characters. 12. Only in created SET symbols (as described above) and in subscripts (see SETA statement). 13. The first operand of a SETAF or SETCF instruction must be a character (SETC) expression containing or evaluating to an eight byte module name. 412 HLASM V1R5 Language Reference
Macro and Conditional Assembly Language Summary Figure 116 (Page 1 of 2). Conditional Assembly Expressions Expression Arithmetic Expressions Character Expressions Logical Expressions Can contain Self-defining terms Absolute, predefined ordinary symbols Length, scale, integer, count, defined, and number attributes Any combination of characters (including double-byte characters, if the DBCS assembler option is specified) enclosed in single quotation marks Any variable symbol enclosed in single quotation marks A 0 or a 1 Absolute, predefined ordinary symbols SETB symbols Arithmetic relations SETA and SETB symbols SETC symbols whose values are a self-defining term A concatenation of variable symbols and other characters enclosed in single quotation marks Built-in Functions Character relations Arithmetic value Symbolic parameters if the corresponding operand is a decimal self-defining term A type or operation code attribute reference Substrings Built-in Functions &SYSDATC &SYSLIST(n) if the corresponding operand is a decimal self-defining term &SYSLIST (n,m) if the corresponding operand is a decimal self-defining term &SYSOPT_DBCS, &SYSOPT_RENT, and &SYSOPT_XOBJECT &SYSM_HSEV and &SYSM_SEV Operations &SYSNDX, &SYSNEST, and &SYSSTMT +, − (unary and binary), *, and /; Concatenation, with a period (.), or by juxtaposition; substrings AND, OR, NOT, XOR Parentheses permitted Parentheses permitted | Range −2 to +2−1 0 through 1024 characters 0 (false) or 1 (true) of values Appendix C. Macro and Conditional Assembly Language Summary 413
- 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
- Page 390 and 391: SETC Instruction Notes: 1. The asse
- Page 392 and 393: Figure 103. Substring Notation in C
- Page 394 and 395: Loc Object Code Addr1 Addr2 Stmt So
- Page 396 and 397: | B2C('111111') has value '3' | B2C
- Page 398 and 399: | Output: D2B('decstring') converts
- Page 400 and 401: SIGNED Format: Logical-expression,
- Page 402 and 403: | X2D('') has value '+' | X2D('91')
- Page 404 and 405: Concatenation of strings containing
- Page 406 and 407: MACRO &NAME MOVE &TO,&FROM LCLC &PR
- Page 408 and 409: SETAF Instruction Alternative State
- Page 410 and 411: Branching Branching You can control
- Page 412 and 413: AGO Instruction The extended AIF in
- Page 414 and 415: ACTR Instruction AGOB—Synonym of
- Page 416 and 417: ANOP Instruction statement processe
- Page 418 and 419: MHELP Instruction MHELP B'10000000'
- Page 420 and 421: 400 HLASM V1R5 Language Reference
- Page 422 and 423: Assembler Instructions and Statemen
- Page 424 and 425: Assembler Instructions and Statemen
- Page 426 and 427: Assembler Instructions and Statemen
- Page 428 and 429: Summary of Constants Figure 113. Su
- Page 430 and 431: Macro and Conditional Assembly Lang
- Page 434 and 435: Macro and Conditional Assembly Lang
- Page 436 and 437: Macro and Conditional Assembly Lang
- Page 438 and 439: Macro and Conditional Assembly Lang
- Page 440 and 441: Macro and Conditional Assembly Lang
- Page 442 and 443: Standard Character Set Code Table H
- Page 444 and 445: Standard Character Set Code Table H
- Page 446 and 447: Trademarks AIX BookMaster CICS DFSM
- Page 448 and 449: Bibliography SMP/E Reference, SC28-
- Page 450 and 451: Index A2C (SETC built-in function)
- Page 452 and 453: Index B B-type binary constant 141
- Page 454 and 455: Index conditional assembly instruct
- Page 456 and 457: Index elements of conditional assem
- Page 458 and 459: Index instructions (continued) asse
- Page 460 and 461: Index machine instruction statement
- Page 462 and 463: Index operands (continued) compatib
- Page 464 and 465: Index relative addressing 67 reloca
- Page 466 and 467: Index sublists compatibility with A
- Page 468: Index variable symbols (continued)
- Page 471 and 472: Readers' Comments High Level Assemb
- Page 474: IBM® Program Number: 5696-234 Prin
Macro and Conditional Assembly <strong>Language</strong> Summary<br />
Figure 115. Macro <strong>Language</strong> Elements (Part 2)<br />
Attributes<br />
Type<br />
Statement<br />
Length<br />
Scale<br />
Integer<br />
Count<br />
Number<br />
Defined<br />
Operation Code<br />
MACRO<br />
Prototype<br />
Statement<br />
GBLA<br />
GBLB<br />
GBLC<br />
LCLA<br />
LCLB<br />
LCLC<br />
Model<br />
Statement<br />
SETA<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
SETAF<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
SETB<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
SETC<br />
Operand<br />
Operand<br />
SETCF<br />
Operand<br />
ACTR<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
AEJECT<br />
AGO<br />
AIF<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
ANOP<br />
AREAD<br />
ASPACE<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
Operand<br />
MEXIT<br />
MNOTE<br />
MEND<br />
Outer<br />
Macro<br />
Notes:<br />
1. Variable symbols in macro instructions are replaced by their values before processing.<br />
2. Depending upon their values, system variable symbols with global scope can be used in the same way as global SET symbols, and system variable symbols with local scope can be used in the same way as local SET symbols.<br />
3. Only if value is self-defining term.<br />
4. Converted to arithmetic 0 or 1.<br />
5. Only in character relations.<br />
6. Only in arithmetic relations.<br />
7. Only in arithmetic or character relations.<br />
8. Converted to an unsigned number.<br />
9. Converted to character 0 or 1.<br />
10. Only if one to ten decimal digits, not greater than 2147483647.<br />
11. Only in created SET symbols if value of parenthesized expression is an alphabetic character followed by 0 to 61 alphanumeric characters.<br />
12. Only in created SET symbols (as described above) and in subscripts (see SETA statement).<br />
13. The first operand of a SETAF or SETCF instruction must be a character (SETC) expression containing or evaluating to an eight byte module name.<br />
412 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>