| United States-English |
|
|
|
![]() |
ALLBASE/SQL FORTRAN Application Programming Guide: HP 9000 Computer SystemsChapter 5 Runtime Status Checking and the SQLCA |
|
Table of Contents When an SQL command is executed, ALLBASE/SQL returns information describing how the command executed. This information signals one or more of the following conditions:
Based on this runtime status information, a program can commit work, rollback work, continue, terminate, display a message, or perform some other appropriate activity. ALLBASE/SQL returns status information into a common data structure block known as the SQLCA, which stands for SQL Communication Area. The SQLCA has four data items which your programs can take advantage of:
These data items can be used in several ways to perform runtime status checking:
In conjunction with status checking of any kind, you can use the SQLEXPLAIN command. This command retrieves a message from the ALLBASE/SQL message catalog that describes an error or warning. When several errors or warnings occur, you can use SQLEXPLAIN to retrieve messages for all of them. Refer to the ALLBASE/SQL Message Manual for an explanation of all error and warning messages. This chapter examines the need for runtime status checking. It describes the SQLCA COMMON block and the conditions under which its data items are set by ALLBASE/SQL. It also gives several examples of implicit and explicit status checking, some of which use SQLEXPLAIN to display a status message. |
||||||||||||||||||||||||||||
|
|||||||||||||||