ONTEXT

ONTEXT returns a nonvarying character string containing the value of the TEXT clause of the ASSERT statement that raised the ASSERTION condition. If the ASSERT statement had no TEXT clause, a null string is returned.

Read syntax diagramSkip visual syntax diagramONTEXT()

It is in context in an ON-unit for the ASSERTION condition, or for the ERROR or FINISH condition raised as the implicit action for an ASSERTION condition.

If it is used out of context, a null string is returned.