Previous Topic: $ERRORTYPE VxxNext Topic: $ERRORPGM Function


$ERRORNAME Function

This function returns the name of error field, subscript, dataview, procedure, or program that depends on $ERROR‑TYPE. The $ERROR‑NAME value can be up to 65 characters in length.

Note: $ERROR functions return meaningful data only in the error procedure or in a procedure or subprogram invoked by the error procedure. In the case of a database error, $ERROR functions can also return meaningful data in the scope of a WHEN ERROR clause. You do not have to pass the $ERROR functions as parameters.