SQL/MP Programming Manual for COBOL

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL529758-003
6-7
SQL Compiler Directive
SQL Compiler Directive
The SQL compiler directive indicates to the HP COBOL 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 of memory 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 560 (on TNS/R systems). The
maximum value is 1000.
SQLMAP
directs the compiler to include an SQL map in the listing file. An SQL map contains
this information:
Each run-time data unit (RTDU), which is a region of the object file that
contains both SQL source statements and object code
INVOKE and
INCLUDE directives
Replaces INVOKE and INCLUDE directives with COBOL data
declarations that correspond to the SQL structures being invoked
or included.
Inspect debugger You can use the Inspect debugger (for TNS/R) on a COBOL
object file. However, the current source line indicated by the
Inspect debugger depends on how you produced the object file.
When you use the Inspect debugger on an object file that contains
embedded SQL, the current source line indicated by the debugger
is the embedded SQL statement itself. See the Inspect Manual.
CROSSREF program
and
CROSSREF directive
Lists any embedded SQL statements that contain referenced and
changed variables in TNS HP COBOL programs.
The NMCOBOL compiler does not produce a cross-reference
listing. If you need one for a native TNS/R program, use the noft
utility with the XREFPROC flag. See the nld and noft Manual.
SQL [ sql-option-list | ( sql-option-list )]
sql-option-list is:
sql-option[, sql-option]...
sql-option is:
PAGES num-pages
| SQLMAP
| WHENEVERLIST
| { RELEASE1 | RELEASE2 }
Feature or Option COBOL Compiler Requirements