If an ESL APPC subroutine encounters an error condition, the ESL built-in function errorlevel is set to the number corresponding to the error found. errorlevel contains a value of zero (0) when the subroutine executes without error.
In your ESL program, you should refer to an error by its corresponding integer constant rather than its number. Integer constants representing errors are listed under the Errors section of each subroutine description in Detailed Subroutine Descriptions.
The ESL APPC return code values and integer constants are defined in the ESL APPC include files (ESLAPPC.INC).