C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-87
SQL
°
DLL Programmers Guide for TNS/E Systems
°
eld Manual
°
ld Manual
°
rld Manual
The SHARED pragma cannot be used with the CALL_SHARED, SRL or
NON_SHARED pragmas. A warning is issued if these pragmas are combined.
EXTERN_DATA gp_ok is not compatible with generation of shared code. The
compiler issues a warning if this pragma is combined with the SHARED pragma or
CALL_SHARED, and ignores the gp_ok directive.
SQL
The SQL pragma enables the compiler to process subsequent SQL statements.
Embedded SQL/MP statements can be placed in C code but not in C++ code.
[NO]WHENEVERLIST
controls whether the compiler listing includes notification of active SQL WHENEVER
clauses.
WHENEVERLIST directs the compiler to provide a summary list of the WHENEVER
clauses that are active when an SQL statement is processed. NOWHENEVERLIST
directs the compiler to omit this summary list.
If you do not specify either WHENEVERLIST or NOWHENEVERLIST, the C compiler
assumes NOWHENEVERLIST.
[NO]SQLMAP
controls whether the compiler listing includes a map that associates SLT indexes
with embedded SQL statements. This map is useful when you use the Measure
product to measure the execution time of embedded SQL statements. For more
details regarding SLT indexes, see the Measure Reference Manual.
SQLMAP directs the compiler to include the map of SLT indexes, and NOSQLMAP
directs the compiler to omit this map.
SQL [ sql-option | ( sql-option [ , sql-option ]... ) ]
sql-option:
{ [NO]WHENEVERLIST )
{ [NO]SQLMAP }
{ RELEASE1 | RELEASE2 }
{ CHAR_AS_ARRAY | CHAR_AS_STRING }
{ CPPSOURCE "filename" }