COBOL Manual for TNS and TNS/R Programs

Native COBOL Cross Compiler on PC
HP COBOL Manual for TNS and TNS/R Programs522555-006
34-7
Linking
You can embed SQL/MP or SQL/MX statements in NonStop COBOL source code.
Valid NonStop COBOL source files have these extensions:
To complete SQL/MP or SQL/MX compilation, you must specify the host and the user
logon. Specifying the NonStop server location (Guardian subvolume or OSS directory)
is optional. For more information, see Using the Command-Line Cross Compilers on
Windows.
The command-line interface allows you to create batch scripts for use on multiple
platforms.
Linking
Native COBOL cross compiler linking is performed using either Windows nld (on the
ETK and the TDS) or Windows ld (on ETK). The ETK and the TDS provide a GUI-
based interface for you to select linking options. When you invoke nld or ld through
the command line, you must specify the run-time libraries to nld or ld. For information
about Windows nld and nld options, see the nld Manual. For information about
Windows ld and ld options, see the ld Manual.
Debugging
ETK and TDS Platforms
Command-Line Platform
RUNV
ETK and TDS Platforms
On the ETK and TDS platform, debug native COBOL source code using Visual
Inspect. After it is installed on your workstation, you can either configure Visual Inspect
as an external tool (in the ETK) or configure the TDS so that you can invoke Visual
Inspect from the Tools menu.
Extension Meaning
.cob or .cbl COBOL source code with or without embedded SQL/MP statements
.ecob or .ecbl COBOL source code with embedded SQL/MX statements
Note. You cannot link PIC and non-PIC object files into a single object file.