Example 11.2. SIGL
signal on syntax a = a + 1 /* This is to create a syntax error */ say "SYNTAX error not raised" exit /* Standard handler for SIGNAL ON SYNTAX */ syntax: say "Rexx error" rc "in line" sigl":" "ERRORTEXT"(rc) say "SOURCELINE"(sigl) trace ?r; nop