SQL/MP Programming Manual for C

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for C429847-008
6-5
Developing a C Program in the Guardian
Environment
Figure 6-3. Explicit SQL Compilation of a C Program on TNS/E
For information about executing an SQL program file, see Section 7, Program
Execution. For information about automatic SQL recompilation, see Section 8,
Program Invalidation and Automatic SQL Recompilation.
Developing a C Program in the Guardian
Environment
In the Guardian environment, you can develop a C program to run in either the
Guardian or OSS environment.
VST003E.vsd
Add required DEFINEs.
1
In an OSS environment on a TNS/E system, Steps 2 through 4 can be invoked
with the c89 utility.
SQL Compiler
SQL Program File
CCOMP Compiler
Run the compiler.
2
Run the SQL compiler.
4
Valid SQL Program File Ready for
Execution on TNS/E Systems Only
Run the linker
(if necessary).
3
C Object File
with SQL
Source Statements
(File Code 800)
eld Process
C Source File
with Embedded
SQL Statements