SQL/MP Programming Manual for COBOL

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL529758-003
6-39
SQL Program File Format
SQL Program File Format
The input program file to the SQL compiler can be a COBOL object file, a file
generated by the Binder program (TNS programs) or linker (native programs), a file
generated by the Accelerator (TNS programs only), or a file previously compiled by the
SQL compiler. Figure 6-4 shows the format of an SQL program file. For an SQL
program file that has accelerated object code, see Figure 6-3 on page 6-24.
Figure 6-4. SQL Program File Format
COBOL Object Code
SQL Source Statement 1
SQL Source Statement 2
SQL Source Statement n
SQL Program File
SQL VALID Flag
SQL Object Code
Compilation Timestamp
SQL SENSITIVE Flag
VST004.vsd
File Label
Information
Generated by the
SQL Compiler
Object Code
Generated by the
HP COBOL
Compiler
SQL Source
Statements
Stored by the HP
COBOL Compiler
Execution Plans
Generated by the
SQL Compiler
Including Stored
DEFINEs