HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Conditional assembly instructions

HLASM Language Reference
SC26-4940-06

Figure 1. Conditional assembly instructions
             ┌───────────────┐                      ┌───────────────┐         ┌───────────────┐
             │               │                      │               │         │               │
             │     NAME      │                      │   OPERATION   │         │    OPERAND    │
             │     Field     │                      │   Field       │         │    Field      │
             │               │                      │               │         │               │
             │               │                      │               │         │               │
             └───────┬───────┘                      └───────┬───────┘         └───────┬───────┘
                     │                                      │                         │
                     V Which                                │                         │
                     │ can be                               │                         │
        ┌────────────┴────────────┐                         V Which                   V Which
        V                         V                         │ must be                 │ can be
┌───────┴───────┐         ┌───────┴───────┐         ┌───────┴───────┐         ┌───────┴───────┐
│               │         │               │         │               │         │               │
│  Sequence     │         │  Variable     │         │   A symbolic  │         │ Zero or more  │
│  Symbol       │         │  Symbol       │         │   Operation   │         │ operands      │
│  or space     │         │               │         │   Code        │         │               │
│  (e.g. .SEQ)  │         │  (e.g. &VAR)  │         │               │         │               │
└───────────────┘         └───────────────┘         └───────────────┘         └───────┬───────┘
                                                                                      │
                                                                                      V Composed of
        ┌─────────────────────────┬─────────────────────────┬─────────────────────────┤
        V                         V                         V                         V
┌───────┴───────┐         ┌───────┴───────┐         ┌───────┴───────┐         ┌───────┴───────┐
│               │         │               │         │               │         │               │
│   Sequence    │         │   Variable    │         │ Expression    │         │ (Exp)seq─sym  │
│   Symbol      │         │   Symbol      │         │ or            │         │ (e.g.         │
│               │         │               │         │ (Expression)  │         │ (&A EQ 1).SEQ)│
│               │         │               │         │               │         │               │
└───────────────┘         └───────────────┘         └───────┬───────┘         └───────────────┘
                                                            │
                                                            V Which can be any
                                                            │ combination of
                                                            │ variable symbols
                                                            │ and other characters
                                                            │ that constitute an
                                  ┌─────────────────────────┼─────────────────────────┐
                                  V                         V                         V
                          ┌───────┴───────┐         ┌───────┴───────┐         ┌───────┴───────┐
                          │               │         │               │         │               │
                          │ Arithmetic    │         │ Logical       │         │ Character     │
                          │ Expression    │         │ Expression    │         │ Expression    │
                          │               │         │ (e.g.         │         │               │
                          │ (e.g. &A+1)   │         │ (&B1 OR &B2)) │         │ (e.g. 'JAN&C')│
                          └───────────────┘         └───────────────┘         └───────────────┘

Macro instruction statements are described in Figure 1.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014