Retrieving return codes
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Retrieving return codes
ABL code running the stored procedure pcust
You can create a stored procedure that provides return code information. For example, it might indicate whether the stored procedure was successful or whether it encountered an error condition.
This example shows how ABL code runs the stored procedure pcust. It uses
the PROC-STATUS function and the
CLOSE STORED-PROC to retrieve the return code and assign
the value to the variable stat.
|
The Oracle return codes have a range of values between -20000 and -20999. These values are
user defined and you can test for them with the PROC-STATUS function.