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
ALLBASE/SQL FORTRAN Application Programming Guide: HP 9000 Computer Systems > Chapter 3 Embedding SQL Commands

Explicit Status Checking

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

In explicit status checking, shown at 9 in Figure 3-1, you explicitly examine an SQLCA field for a particular value, then perform an operation depending on the field's value. In this example the SQLCA field named SQLCode is examined to determine whether it contains a value of:

  • 0, indicating no error occurred.

  • 100, indicating no rows qualified for the SELECT operation.

  • -10002, indicating more than one row qualified for the SELECT operation.

If SQLCode contains any other value, subprogram unit SQLStatusCheck is executed. Values with greater negative values than -14024 indicate errors serious enough to warrant terminating the program.

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