SQL/MP Programming Manual for COBOL85
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
6-17
Running the NMCOBOL Compiler in the OSS
Environment
Changing Default Pathnames and Disk Volume in the OSS
Environment
Table 6-2 shows the default pathnames of the programs that the cobol and nmcobol
commands invoke and the default disk volume on which these programs create
temporary files.
To change one or more of the defaults before executing the cobol or nmcobol
command, use the export command.
To execute a cobol or nmcobol command with a specified set of environment
variables, use the OSS env function with the environment variables listed in Table 6-2.
For the syntax of the env function, see the Open System Services System Calls
Reference Manual.
The effect of the export command lasts until you explicitly change it. The effect of the
env function applies only to the cobol utility command with which you use it.
Running the NMCOBOL Compiler in the OSS Environment
The OSS utility nmcobol generates programs that run in the OSS environment. The
OSS utility nmcobol invokes the native HP COBOL85 compiler (NMCOBOL),
optionally followed by the nld utility and SQL compiler. The flags and the types of files
in the operands determine which processes operate on the files in the operands.
Text file inputs to the compiler can be OSS ASCII text files (code 180) or Guardian
EDIT files (code 101).
Table 6-2. Environment Variables in the OSS Environment
Variable Effect Default
COBOL85 Determines the pathname of the
COBOL85 compiler the cobol utility
invokes
/G/system/system/cobol85
NMCOBOL Determines the pathname of the
NMCOBOL compiler that the
nmcobol utility invokes.
/G/system/system/nmcobol
BIND Determines the pathname of the
Binder the cobol utility invokes
/G/system/system/bind
AXCEL Determines the pathname of the
Accelerator the cobol utility invokes
/G/system/system/axcel
SQLCOMP Determines the pathname of the SQL
compiler the cobol utility invokes
/G/system/system/sqlcomp
SWAPVOL Determines the disk volume on which
the COBOL85 compiler, Binder,
Accelerator, and SQL compiler create
temporary files
Same as in the Guardian
environment—see PARAM
SWAPVOL on page 6-8










