SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)
COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—523627-004
16-30
nmcobol Utility: Using One Command for All
Compilation Steps
nmcobol is installed in the /usr/bin directory.
nmcobol Utility Options for SQL/MX
-Wsqlmx[={"args" | args}] Invokes the SQL/MX preprocessor prior 
to invoking the COBOL compiler. Cannot 
be specified with -Wsql or -Wsqlcomp. 
You can use one or more of the args 
(ansi_format, double_quotes, 
listing, preprocess_only, 
tandem_format, or refrain_r2), 
separated by commas without space 
between them. 
ansi_format Directs the SQL/MX preprocessor to 
assume ANSI fixed format for the source 
program.
double_quotes Directs the SQL/MX preprocessor to 
accept SQL string literals delimited by 
double quotes, in addition to single 
quotes.
listing Directs the SQL/MX preprocessor to 
write its diagnostic messages to a file 
named file.eL (where file is the 
name of the primary source file).
preprocess_only Runs the SQL/MX preprocessor only.
tandem_format Directs the SQL/MX preprocessor to 
assume TANDEM free format for the 
source program.
refrain_r2 Directs the SQL/MX preprocessor to 
refrain from embedding module 
definitions in the annotated source file 
and to use a module definition file.










