COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-124
SQLMEM
SQLMEM
USER
declares SQL/MP data structures in the Working-Storage Section (user data
segment). This option is not recommended, because SQL/MP data structures can
exhaust the Working-Storage Section.
EXT
declares SQL/MP data structures in the Extended-Storage Section (extended data
segment), which is created for every HP COBOL program at run time whether it
declares one or not. This option is recommended.
Default: None. If the program contains SQL/MP statements, the SQL directive is
required; otherwise, it is unnecessary.
Placement: The COBOL85 compiler accepts SQL and NOSQL in either the source
code (before the first Identification Division in the program) or the
compiler command line; the NMCOBOL compiler accepts them only in
the compiler command line.
Scope: Applies to the compilation unit
Dependencies: SQL works only if LIST is active and SUPPRESS is not.
References:
•
LIST and NOLIST
•
SUPPRESS and NOSUPPRESS
Note. The NMCOBOL compiler ignores this directive and issues a warning. The concept of
extended memory does not exist for TNS/R processes.
Default: SQLMEM EXT
Placement: The first SQLMEM in a program must be preceded by SQL. Subsequent
SQLMEMs can appear anywhere in the program.
Scope: Applies to all SQL/MP statements between it and the next SQLMEM
Dependencies: SQLMEM is allowed only in programs that also contain SQL.
References: SQL and NOSQL
SQLMEM USER
EXT
VST318.vsd