SQL/MP Programming Manual for C
SQL/MP Statements and Directives
HP NonStop SQL/MP Programming Manual for C—429847-008
3-7
Finding Information
Table 3-2 summarizes the C compiler pragmas that apply to a C program containing 
embedded SQL statements and directives. For a description of all C compiler pragmas, 
see the C/C++ Programmer’s Guide. 
Table 3-2. C Compiler Pragmas for SQL/MP
Pragma Manual* Description
SQL
SQLPM/C
CPG 
Indicates to the C compiler that a program contains 
embedded SQL statements and directives. 
Also specifies options for processing the SQL statements 
or directives: 
SQLMAP generates an SQL map in the listing.
WHENEVERLIST writes active WHENEVER options to 
the listing file after each SQL statement is processed.
RELEASE1 or RELEASE2 specifies the version of the 
SQL/MP features in the program (including the SQL 
data structures) and the version of SQL/MP software 
on which the program file can run.
SQLMEM
SQLPM/C
CPG 
Controls the placement of SQL internal structures in either 
the user data segment or extended data segment. 
SQLMEM applies only to the C compiler on TNS systems. 
The native mode C (NMC) compiler on TNS/R systems 
ignores this pragma.
* This statement is documented in one or more of these manuals: 
CPG  C/C++ Programmer’s Guide
SQLPM/C SQL/MP Programming Manual for C 










