This function returns a three‑letter code that identifies the general category of the most recent error.
Note: $ERROR functions only return meaningful data 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.
This function has the following format:
$ERROR‑CLASS
Example
<<ERROR>> PROC
SELECT $ERROR‑CLASS
WHEN 'DVW'
DO DVW‑ERROR
WHEN 'PGM'
DO PGM‑ERROR
WHEN OTHER
DO OTHER‑ERROR
ENDSELECT
PROCESS NEXT DVW
ENDPROC
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|