ON EXCEPTION (or NOT ON EXCEPTION) not allowed in this format of the DISPLAY statement.
30
Cause . . . . . : Your DISPLAY statement contains an ON EXCEPTION (or NOT ON EXCEPTION) clause, but the statement is not a data area DISPLAY statement.
Recovery . . . : You can use an ON EXCEPTION (or NOT ON EXCEPTION) clause in a data area DISPLAY statement only. Remove this clause or change the format of your DISPLAY statement.