SQL/MP Programming Manual for COBOL

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL529758-003
6-11
Using PARAM Commands
Class MAP DEFINEs specified in INVOKE directives
Class MAP or class CATALOG DEFINEs specified in SQL statements
If you specify a class CATALOG DEFINE for the SQLCOMP CATALOG option
when you run the SQL compiler using the cobol or nmcobol utility, add the
DEFINE before you issue the cobol or nmcobol command.
You must precede a backslash (\) in a system name or a dollar sign ($) in a catalog
or subvolume name with the OSS shell escape character (\). For example, these
commands create a class MAP DEFINE and a class CATALOG DEFINE:
add_define =emptab class=map file=\\ny.\$disk2.fy94.empfile
add_define =sqlcat class=catalog subvol=\$sql.sqlcat
Use seven characters or fewer for system names or the names of volumes where
OSS objects reside.
To alter an existing DEFINE, use the add_define utility and specify all DEFINE
attributes and their new values. In this situation, the add_define utility essentially
adds a new DEFINE with the same name in place of the old DEFINE.
Using PARAM Commands
If you choose to use a PARAM command, you must enter it before you enter the
command to run the compiler. The HP COBOL compilers accept these command
interpreter PARAM commands:
A PARAM command does not apply to automatic SQL recompilation or dynamic SQL
compilation. For more information about using PARAM commands during compilation,
see the COBOL85 for NonStop Systems Manual. For the syntax of the PARAM
command, see the TACL Reference Manual.
PARAM Command Accepted by...
PARAM BINSERV COBOL85 compiler
PARAM SAMECPU COBOL85 compiler
PARAM SWAPVOL COBOL85 and NMCOBOL
PARAM SYMBOL-BLOCKS COBOL85 and NMCOBOL compilers
PARAM SYMSERV COBOL85 compiler