Error And Status Reporting; Using The Include Structures Directive - HP NonStop SQL/MP Programming Manual

For c
Table of Contents

Advertisement

9

Error and Status Reporting

This section describes error and status reporting after the execution of a NonStop SQL
statement or directive in a C program. For information about the SQL descriptor area
(SQLDA), see
Section 10, Dynamic SQL
Topics include:

Using the INCLUDE STRUCTURES Directive

Returning Error and Warning Information
Returning Performance and Statistics Information
Using the INCLUDE STRUCTURES Directive
The INCLUDE STRUCTURES directive specifies the version of the SQL structures that
the C compiler generates. You must specify the INCLUDE STRUCTURES directive to
generate version 300 or later SQL data structures. If you omit this directive, the
C compiler generates version 2 structures by default and includes this informational
message in the compilation summary:
INCLUDE STRUCTURES directive for SQL is missing.
VERSION 2 is assumed.
results in programs which use features introduced
in SQL versions greater than VERSION 2.
Code the INCLUDE STRUCTURES directive in the declarations area of the procedure
before you code an INCLUDE SQLCA, INCLUDE SQLSA, or INCLUDE SQLDA
directive. If the procedure is part of a compilation unit that consists of more than one
procedure, place the INCLUDE STRUCTURES directive in the global declarations area
or in the declarations area of the first procedure. The directive then applies to all
procedures in the compilation unit.
HP NonStop SQL/MP Programming Manual for C—429847-008
Operations.
on page 9-4
This might produce incorrect SQL
9-1
on page 9-13
SQL

Advertisement

Table of Contents
loading

Table of Contents