Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
SORT-MERGE/XL Programmer's Guide: 900 Series HP 3000 Computer Systems > Chapter 1 Introduction

Error Checking

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Good programming practice specifies that each intrinsic call should be checked to ensure that the call was successful. Each intrinsic contains a status parameter that returns a value indicating the success or failure of the routine.

If no error occurred with the intrinsic call, a value of zero (0) is returned in the status parameter.

If an error did occur with the intrinsic call, the first 16 bits, bits (0:16), of status contain the error condition code. The first 16 bits are always negative; all SORT-MERGE/XL errors are fatal. HPSORT and HPMERGE status returns are in Appendixes A and B.

The last 16 bits, bits (16:16), of status contain the subsystem identification number. The subsystem number for SORT/XL is 195. The subsystem number for MERGE/XL is 196. (Refer to the MPE/iX Intrinsics Reference Manual for information about calculating the error number and subsystem from the status parameter.)

The HPMERGEERRORMESS and HPSORTERRORMESS intrinsics return the appropriate error message for each of these error code values. (For information about the use of the error message intrinsics, refer to Chapter 2.)

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.