SQL/MP Programming Manual for COBOL85
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
6-10
Processes Involved in Compilation
Processes Involved in Compilation
The COBOL85 compiler consists of one process, COBOL85. Two other processes,
Symserv and Binserv, are present throughout the compilation.
Symserv collects symbol table information, puts it into structures in a temporary file,
and gives the temporary file to Binserv. Binserv writes the information from the
temporary file into the object file. Binserv also performs binding.
SQL Compiler Directive
The SQL compiler directive indicates to the COBOL85 compiler that a program
contains embedded SQL statements or directives and specifies various options for
processing the SQL statements or directives. Use this syntax for the SQL directive:
PAGES num-pages
specifies the number of 2048-byte pages the compiler should allocate to the SQL
compiler interface (SCI) to process SQL statements and directives. The default
(and minimum) value for num-pages is 384; the maximum value is 1000.
SQLMAP
directs the compiler to include an SQL map in the listing. An SQL map contains this
information:
•
Each run-time data unit (RTDU). An RTDU is a region of the object file that
contains both SQL source statements and object code.
•
Section location table (SLT) index number.
•
Source file name and number.
•
Source file line number.
The SQL map is sorted first by RTDU name and then by SLT index number. You
can use this map to correlate Measure output with the SQL statements.
The SQLMAP option also directs the compiler to include the HOSV version in the
compiler listing. For example:
Host Object SQL Version = 315
The default is not to include the SQL map in the listing.
SQL [ ( [ , PAGES num-pages ]
[ , SQLMAP ]
[ , WHENEVERLIST ]
[ , RELEASE1 | RELEASE2 } ] ) ]