SQL/MP Reference Manual
HP NonStop SQL/MP Reference Manual—523352-013
I-7
INCLUDE STRUCTURES Directive
INCLUDE STRUCTURES Directive
INCLUDE STRUCTURES is a host program or dynamic SQL directive that specifies
the version of the structures generated by the INCLUDE SQLCA, INCLUDE SQLDA,
and INCLUDE SQLSA directives.
version
is an integer that identifies a version of SQL/MP (1, 2, 300, 310, 315, 320, 325, or
330).
[ ALL ] VERSION version
specifies that any subsequently generated SQLCA, SQLDA, and SQLSA
structures are to have the format for the SQL/MP version identified by version.
{| SQLCA VERSION version |}
{| SQLDA VERSION version |}
{| SQLSA VERSION version | VERSION CURRENT |}
specifies that any subsequently generated SQLCA, SQLDA, or SQLSA structures
are to have the format for the NonStop SQL/MP version identified by version. For
SQLSA, you can specify either a particular version (by #) or VERSION CURRENT.
VERSION CURRENT allows C programs to use the most current SQLSA structure
that the current system supports.
When you specify the VERSION CURRENT option, you must also include this line
at the beginning of the C program source module:
#include <cextdecs (SQLGETSYSTEMVERSION)>
This line includes the prototype of the SQLGETSYSTEMVERSION procedure in
your C program. For information and examples of programs that use this option,
see the C/C++ Programmer's Guide.
If you specify version 330 of SQLSA in INCLUDE STRUCTURES, your pointers
are automatically expanded to accommodate the larger structure described under
Considerations—INCLUDE STRUCTURES on page I-8.
{ [ ALL ] VERSION version }
INCLUDE STRUCTURES { }
{ {| SQLCA VERSION version |} }
{ {| SQLDA VERSION version |} }
{ {| SQLSA VERSION
{version | VERSION CURRENT} }