SQL/MP Programming Manual for COBOL

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL529758-003
6-4
Native Mode Compilation for TNS/R Systems
Native Mode Compilation for TNS/R Systems
A natively compiled program for a TNS/R system uses native TNS/R process and
memory architecture and consists of native object code (RISC instructions). Compiling
an HP COBOL program in native TNS/R mode enables you to execute the program on
a TNS/R system only.
Figure 6-2 shows the steps you follow to explicitly SQL compile a COBOL program in
TNS/R native mode.
Figure 6-2. Compiling a COBOL Program in TNS/R Native Mode
VST003R.vsd
COBOL Source File
With Embedded SQL
Statements
In the OSS environment, Steps 2 through 4 can be invoked with the nmcobol
utility.
COBOL Object File
With SQL Source
Statements
(File code 700)
nld or ld
Process
SQL Compiler
(SQLCOMP)
SQL Program File
NMCOBOL
Compiler
Valid SQL Program File Ready for
Execution on TNS/R Systems Only
Add any required
DEFINEs.
1
Run the compiler.
2
Run the SQL compiler.
4
Run the linker (if
necessary).
3