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


Macro instructions

HLASM Language Reference
SC26-4940-06

Figure 1. Macro instructions
    Prototype         ┌───────────────┐              ┌───────────────┐              ┌───────────────┐
    Statement         │               │              │               │              │               │
                      │   Symbolic    │              │   Symbolic    │              │ Zero or more  │
                      │   Parameter   │              │   Operation   │              │ Symbolic      │
                      │               │              │   Code        │              │ Parameters    │
                      │               │              │               │              │               │
                      └───────┬───────┘              └───────┬───────┘              └───────┬───────┘
                              │                              │                              │
                              V Which can be                 V Must be the                  V Which can be
                              │                              │ same as                      │
                              │                              │                              │
─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
                              │                              │                              │
    Macro             ┌───────┴───────┐              ┌───────┴───────┐              ┌───────┴───────┐
    Instruction       │               │              │               │              │               │
    Statement         │     NAME      │              │   OPERATION   │              │    OPERAND    │
                      │     Field     │              │   Field       │              │    Field      │
                      │               │              │               │              │               │
                      └───────┬───────┘              └───────────────┘              └───────┬───────┘
                              V                                                             V
                              │                                                     ┌───────┴───────┐
                              │                                                     │               │
                              │                                                     │ Zero or more  │
                              │                                                     │ Operands      │
                              │                                                     │               │
                              │                                                     │               │
                              │                                                     └───────┬───────┘
                              │                                                             │
                              V Which can be                                                V Which can be
        ┌─────────────────────┴─────────────────────┐                            ┌──────────┴──────────┐
        V                                           V                            V                     V
┌───────┴───────┐                           ┌───────┴───────┐            ┌───────┴───────┐     ┌───────┴───────┐
│               │                           │               │            │               │     │               │
│   A Symbol    │                           │   Character   │            │ Operands with │     │ Sublists with │
│               │                           │   String      │            │ one value     │     │ one or more   │
│               │                           │               │            │               │     │ entries       │
│               │                           │               │            │               │     │               │
└───────┬───────┘                           └───────┬───────┘            └───────┬───────┘     └───────┬───────┘
        V                                           V                            V                     V
        │                                           │                            │             ┌───────┴───────┐
        │                                           │                            │             │               │
        │                                           │                            │             │   Each entry  │
        │                                           │                            │             │   can have a  │
        │                                           │                            │             │   value       │
        │                                           │                            │             │               │
        │                                           │                            │             └───────┬───────┘
        │                                           V                            V                     V
        │                                           └────────────────────────────┴──────────┬──────────┘
        │                                                                                   │
        V Which can be                                                                      V Which can be
        ├─────────────────────┬─────────────────────┐                            ┌──────────┴──────────┐
        V                     V                     V                            V                     V
┌───────┴───────┐     ┌───────┴───────┐     ┌───────┴───────┐            ┌───────┴───────┐     ┌───────┴───────┐
│               │     │               │     │               │            │               │     │               │
│   Ordinary    │     │    Sequence   │     │    Variable   │            │   Character   │     │   'Character  │
│   Symbol      │     │    Symbol     │     │    Symbol     │            │   String      │     │   String'     │
│   (or space)  │     │               │     │               │            │   (excluding  │     │   (including  │
│               │     │               │     │               │            │   spaces and  │     │   spaces)     │
│               │     │               │     │               │            │   commas)     │     │               │
│               │     │               │     │               │            │               │     │               │
└───────────────┘     └───────────────┘     └───────────────┘            └───────────────┘     └───────────────┘

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014