ONLOC returns a character string whose value is the name of the entry-point used for the current invocation of the procedure in which a condition was raised.
ONLOC always returns the leftmost name of a multiple label specification, regardless of which name appears in the CALL or GOTO statement.
If the name is a DBCS name, it is returned as a mixed-character string. It is in context in any ON-unit, or in any of its dynamic descendants.
|
If ONLOC is used out of context, a null string is returned.