SQL/MP Programming Manual for COBOL

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL529758-003
6-2
TNS Mode Compilation
TNS Mode Compilation
A TNS-compiled program uses TNS process and memory architecture and consists of
TNS object code (TNS instructions). Compiling an HP COBOL program in TNS mode
enables you to execute the program on a TNS system. You can also execute TNS
programs on TNS/R systems and boost the execution speed on those systems by
generating accelerated object code after compilation.
Figure 6-1 shows the steps you follow to explicitly SQL compile a COBOL program in
TNS mode.
Figure 6-1. Compiling a COBOL Program in TNS Mode
VST003.vsd
COBOL Source File
With Embedded SQL
Statements
In the OSS environment on a TNS/R system, Steps 2 through 5 can be invoked
with the cobol utility.
COBOL Object File
With SQL Source
Statements
(File code 100)
Binder Process
SQL Compiler
(SQLCOMP)
Accelerated
Object File
SQL Program File
Accelerator
COBOL85 Compiler
Run the SQL compiler.
5
Valid SQL Program File Ready for Execution
on TNS or TNS/R Systems
Optionally, run the
Accelerator (TNS/R).
4
Add any required
DEFINEs.
1
Run the compiler.
2
Run the Binder
program (if
necessary).
3