Start of change

ONOPERATOR

ONOPERATOR returns a CHAR(2) string whose value is the operator in an ASSERT COMPARE statement that raised an ASSERTION condition.

Read syntax diagramSkip visual syntax diagram
>>-ONOPERATOR-+----+-------------------------------------------><
              '-()-'   

The ONOPERATOR built-in function is in context in an ON-unit for the ASSERTION condition when raised by an ASSERT COMPARE statement, or for the ERROR or FINISH condition raised as the implicit action for an ASSERTION condition.

If an ASSERT COMPARE statement raises the ASSERTION condition, but does not explicitly specify an operator in its COMPARE clause, then the ONOPERATOR built-in function will return the implicit operator value 'EQ'.

If the ONOPERATOR built-in function is used out of context, a null string is returned.






Published: 23 December 2018
End of change