Errors encountered by the API functions are available from the cobfa_errno() and cobfa_stat() functions. In both cases, the value represents the error condition from the most recent API call.
Values returned by cobfa_stat () are comparable to the FILE-STATUS values available at runtime. Cobfa_errno() provides a more comprehensive range of error conditions, including errors caused by passing incorrect parameters to the API functions.