SQL/MP Programming Manual for C

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for C429847-008
6-4
Explicit Program Compilation
Figure 6-2. Explicit SQL Compilation of a C Program on TNS/R
VST003R.vsd
Add required DEFINEs.
1
In an OSS environment, Steps 2 through 4 can be invoked with the c89 utility.
nld or ld
Process
SQL Compiler
SQL Program File
NMC Compiler
Run the compiler.
2
Run the SQL compiler.
4
Valid SQL Program File Ready for
Execution on TNS/R Systems Only
Run the linker
(if necessary).
3
C Object File
with SQL
Source Statements
(File Code 700)
C Source File
with Embedded
SQL Statements