As a debugging aid, the CONDITION condition can be used to establish an ON-unit that prints information about the current status of the program.
The following example shows the use of the CONDITION condition.
dcl Test condition; on condition (Test) begin;
·
·
·
end;
The begin-block is executed whenever the following statement is executed:
signal condition (Test);
|