Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

nmcobol(1) OSS Shell and Utilities Reference Manual
A library of object les produced by the nld utility or the ld utility
An executable le produced by the nld utility or the ld utility
When -Wsqlmx is specied, nmcobol uses the source le extension to determine whether a le
requires preprocessing and the names of the source
les created by the NonStop SQL/MX prepro-
cessor. The name of the source le created is the name of the primary source le with the follow-
ing transformation to the le extension:
Each source le with the extension .ecbl, .ECBL, .ECOB,or.ecob is given to the
mxsqlco program for preprocessing. The resulting source les have the extensions .cbl
and .m, where the le named le.cbl contains the COBOL source to be compiled and the
le named le.m contains the corresponding module denition le (MDF).
Source les with the extensions .cbl or .cob are not given to the mxsqlco program; these
les are assumed to contain no embedded SQL statements.
Files created by the NonStop SQL/MX preprocessor overwrite any existing les with the same
name in the current working directory.
Output Files
Output les are object les, executable les, log les, NonStop SQL/MX module denition les
created by the NonStop SQL/MX preprocessor, or all four. Log les have names of the form
le.eL. Module denition les have names of the form le.m.
Standard Output
The standard output le is a text le that contains the compiler listing, if generated.
Standard Error
The standard error le is used for diagnostic and informational messages. If more than one le
operand is specied, then for each such le, "%s: \n",le might be written. These messages
precede the processing of each input le.
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 specied in COMP_ROOT is added to the
beginning of the default pathnames. If a components environment variable is set
explicitly, the COMP_ROOT environment variable does not modify the
components 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.
666 Hewlett-Packard Company 527188-007