When PowerBSORT is called from the C language program, the error that the Btrieve file system detected is set to sub_error_code of the BSRTREC structure.
For more information about Btrieve error codes, refer to the Btrieve documentation included with the Btrieve product.