Previous Topic: $ERRORTYPE SQL or DB2Next Topic: $ERRORNAME Function


$ERRORTYPE Vxx

For VSAM Dataviews:

This function has the following format:

mm‑nnn
mm

Specifies the two‑character VSAM return code in decimal digits.

nnn

Specifies the three‑character VSAM reason code in decimal digits.

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.