To indicate whether processing succeeded or failed, a user-defined program returns a return code to the CallProg function.
Code user-defined programs to return the following return codes:
0
. Success.
Non-zero return code that is positive or negative
. Error.
If the CallProg function receives a non-zero return code from the user-defined program, it performs the following default error handling:
A map-level response is triggered.
The map-level response either ends the extraction or skips the user-defined program or subroutine.
In the Expression Editor in the PowerExchange Navigator, you can optionally specify a return argument in the call to the CallProg function. If you omit a return argument, the CallProg function detects the return code returned from the user-defined program and performs default error handling.
The Check function enables you to specify which return codes in a user-defined program called from the CallProg function indicate either success or failure.