HP NonStop SQL/MP Programming Manual page 149

For c
Table of Contents

Advertisement

Explicit Program Compilation
The input object file also determines the environment where the resulting SQL
program file resides after explicit SQL compilation. If the program file resides in the
Guardian environment, the SQL compiler uses the OSS path name format. The
OSSFILE column in the PROGRAMS table indicates the environment where the
file resides (Y=OSS, N=Guardian).
To specify a program's target execution environment (that is, the environment
where the program runs), set the c89 -Wsystype flag as follows:
oss
guardian
The SQL compiler directs all error information and listings to the c89 process and
does not directly use the home terminal.
To SQL compile a C program using the c89 utility, use SQL compiler version 315
(or later). After SQL compilation, an OSS program file has a PFV and a PCV of
315 (or later).
To use the EXPLAIN utility, you must also specify the -Wverbose flag:
c89 -Wsql -Wverbose -Wsqlcomp="explain plan" -Wnolink
sqlprog.c
To compile embedded SQL/MP for TNS/E, the value specified for sqlhost must
be an H-series TNS/E system.
The c89 utility on UNIX workstations does not support the compilation of programs
that contain embedded SQL statements.
For more information about the c89 utility, see the C/C++ Programmer's Guide for
NonStop Systems.
-Wsqlconnect
This option instructs the compiler about which security mode must be used while
communicating with the NSK host. This option works with compilers supported on
windows operating system. For example: c89, and c99.
The syntax is:
-Wsqlconnect = mode
HP NonStop SQL/MP Programming Manual for C—429847-008
OSS environment (the default)
Guardian environment
6-33
Using the c89 Utility in the OSS Environment

Advertisement

Table of Contents
loading

Table of Contents