Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
User Commands (m - o) nmcobol(1)
• A library of object files produced by the nld utility or the ld utility
• An executable file produced by the nld utility or the ld utility
When -Wsqlmx is specified, nmcobol uses the source file extension to determine whether a file
requires preprocessing and the names of the source
files created by the NonStop SQL/MX prepro-
cessor. The name of the source file created is the name of the primary source file with the follow-
ing transformation to the file extension:
• Each source file with the extension .ecbl, .ECBL, .ECOB,or.ecob is given to the
mxsqlco program for preprocessing. The resulting source files have the extensions .cbl
and .m, where the file named file.cbl contains the COBOL source to be compiled and the
file named file.m contains the corresponding module definition file (MDF).
• Source files with the extensions .cbl or .cob are not given to the mxsqlco program; these
files are assumed to contain no embedded SQL statements.
Files created by the NonStop SQL/MX preprocessor overwrite any existing files with the same
name in the current working directory.
Output Files
Output files are object files, executable files, log files, NonStop SQL/MX module definition files
created by the NonStop SQL/MX preprocessor, or all four. Log files have names of the form
file.eL. Module definition files have names of the form file.m.
Standard Output
The standard output file is a text file that contains the compiler listing, if generated.
Standard Error
The standard error file is used for diagnostic and informational messages. If more than one file
operand is specified, then for each such file, "%s: \n",file might be written. These messages
precede the processing of each input file.
Environment Variables
The following environment variables affect the execution of nmcobol. The nmcobol utility and
its program components do not support locale variables.
AS1 Determines the pathname of the as1 assembler component of the NMCOBOL
compiler. /usr/lib/as1 is the default location for the OSS environment.
COMP_ROOT
Changes the default pathnames for the nmcobol compilation system components.
In the OSS environment, the string specified in COMP_ROOT is added to the
beginning of the default pathnames. If a component’s environment variable is set
explicitly, the COMP_ROOT environment variable does not modify the
component’s environment variable.
LD Determines the pathname of the ld utility invoked by nmcobol. /usr/bin/ld is the
default location for the OSS environment.
MXCMP Determines the pathname of the NonStop SQL/MX release 1 compiler.
/G/system/system/mxcmp is the default.
MXCMPUM Determines the pathname of the NonStop SQL/MX release 2 compiler.
/usr/tandem/sqlmx/bin/mxCompileUserModule is the default.
527188-004 Hewlett-Packard Company 6−65