I'm getting an "invalid operand" as well as a couple of other errors on the following statement:
display ctr in-emp-record upon console
on exception
display "Wow!"
not on exception
add 1 to ctr
end-display.
I thought that adding "upon console" would have satisfied the syntax rule 7 for format 1 on the following documentation page:
Any other suggestions on using the "on exception" clause?