SQL/MP Programming Manual for COBOL85
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
6-2
The Compilation Method
Figure 6-1 shows the steps you follow to explicitly SQL compile a COBOL program.
Figure 6-1. Compiling a COBOL Program
COBOL Source File With
Embedded SQL Statements
COBOL Object File With
SQL Source Statements
COBOL Object File With
SQL Source Statements
Valid SQL Program File
Ready for Execution
In an OSS environment, Steps 2 through 5 can be invoked with the cobol utility.
Run the
compiler.
2
Run the Binder program
(if necessary)
For non-native compiled object
files, run the Accelerator
(TNS/R systems only).
Run the SQL Compiler.
5
Add any required DEFINEs.
1
Run the compiler.
2
Run the nld program
(if necessary)
VST003.vsd
Source
FIle
COBOL
Object File
Accelerated
Object File
SQL
program file
nld
Processs
NMCOBOL
Compiler
COBOL85
Compiler
Binder
Process
Accelerator
SQL
Compiler
3
4
3