SQL/MX 3.2.1 Programming Manual for C and COBOL (H06.26+, J06.15+)
COBOL Program Compilation
HP NonStop SQL/MX Release 3.2.1 Programming Manual for C and COBOL—663854-005
16-38
ecobol or nmcobol Utility: Using One Command for
All Compilation Steps
In addition to the options for preprocessing and compiling SQL/MX components,
ecobol and nmcobol supply SQL/MX environment variables that provide the path
names for the SQL/MX preprocessor (MXSQLCO) and the SQL/MX compiler (MXCMP
and MXCMPUM), in addition to the path name for definitions of the SQL call-level
interface (SQLCLIO). These CLI procedure calls, for the translated SQL statements in
the annotated COBOL source file, are required by the COBOL compiler. For more
information on ecobol and nmcobol environment variables, see the Open System
Services Shell and Utilities Reference Manual.
-Wsqlconnect
This option instructs the compiler about which security mode must be used while
communicating with the NSK host. This option works with compilers supported on
windows operating system. For example: c89, c99, and ecobol.
The syntax is:
-Wsqlconnect = mode
Where mode is:
Usage Considerations
The usage considerations for -Wsqlconnect are:
This option requires both the -Wsqlhost and -Wsqluser options to be
specified. If an invalid value is specified, an error is returned.
If the value of -Wtarget is tns/r or mips, a secure connection is not
available.
If the -Wsqlconnect= secure_err is specified, an error is returned.
legacy Directs the compiler to connect using the legacy
(unencrypted) mode.
secure_quiet Directs the compiler to connect using the secure
(encrypted) mode. If a secure connection cannot
be established, the compiler uses the legacy
mode. This option does not generate any
diagnostics.
secure_warn Directs the compiler to connect using the secure
(encrypted) mode. If a secure connection cannot
be established, the compiler uses the legacy
mode. A warning message is generated when this
option is used. This is the default option.
secure_err Directs the compiler to connect using the secure
(encrypted) mode. If a secure connection cannot
be established, an error occurs and the
compilation terminates.










