ONCONDCOND

ONCONDCOND returns a nonvarying character string whose value is the name of the condition for which a CONDITION condition is raised.

If the name is a DBCS name, it will be returned as a mixed character string. It is in context in the following circumstances:
  • In a CONDITION ON-unit, or any of its dynamic descendants
  • In an ANYCONDITION ON-unit that traps a CONDITION condition, or any dynamic descendants of such an ON-unit.

Read syntax diagramSkip visual syntax diagramONCONDCOND()

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