SIGNAL

 ──SIGNAL───┬─ labelname ──────────────────────────┬─────;─
              ├─┬───────┬─ expression ───────────────┤
              │ └ VALUE ┘                            │

              ├── OFF ────┬─ ERROR ─────┬────────────┤

              │           ├─ FAILURE ───┤            │

              │           ├─ HALT ──────┤            │

              │           ├─ NOVALUE ───┤            │

              │           ├─ SYNTAX ────┤            │

              │           └─ NOTREADY ──┘            │

              │                                      │

              └─ ON ─┬─ ERROR ───┬┬─────────────────┬┘
                     ├─ FAILURE ─┤└ NAME ─ trapname ┘

                     ├─ HALT ────┤

                     ├─ NOVALUE ─┤
                     ├─ SYNTAX ──┤

                     └─ NOTREADY ┘


SIGNAL is used to cause an abnormal change in the flow of control, or, if ON or OFF is specified, controls the trapping of certain conditions.

To control trapping, you specify OFF or ON and the condition you want to trap. OFF turns off the specified condition trap. ON turns on the specified condition trap.

┴╓: For information on condition traps, see the OS/2 Procedures Language 2/REXX Reference.