Previous Topic: RETURN InstructionNext Topic: TRACE Instruction


SIGNAL Instruction

The SIGNAL statement in OPS/REXX supports the SYNTAX operand to trap certain errors detected during execution. Because OPS/REXX uses a compile and run phase approach, true syntax errors (an invalid DO statement, for example) are detected at compile time and cannot be trapped using the SIGNAL ON SYNTAX statement. However, the SIGNAL ON SYNTAX statement can trap most run-time errors as well as global variable access or update requests that a security rule denied.