Returns the return status from a stored procedure. The return status is an INTEGER value that indicates whether a stored procedure failed and why.
This procedure runs the ORACLE stored procedure pcust and writes the results of the stored procedure into the ABL-supplied buffer, proc-text-buffer. The CLOSE STORED-PROCEDURE statement then retrieves the output parameters. The return status is written to the variable iStat and is displayed. This same code works for accessing a stored procedure from an Microsoft SQL Server-compliant data source: