COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Then you use the nmecobol utility to do this:
Compile the HP COBOL modules
Link the ecobol compiler output, the object file cprog.o, and the native HP C library.
Produce the loadfile myprog:
ecobol -o myprog cprog.o cobol1.cbl cobol2.cbl
The ecobol utility automatically links the HP C DLLs to myprog.
Changing Default Pathnames and Disk Volume
The “Default” column of Table 105 shows the default pathnames of the programs that the ecobol
commands call and the default disk volume on which they create temporary files.
To change one or more of these defaults before executing the ecobol command, use the export
command.
To execute an ecobol command with a specified set of environment variables, use the OSS env
function with the environment variables that Table 105 lists and explains. For the syntax of the env
function, see the env(1) command reference page either online or in the Open System Services
System Calls Reference Manual.
The effect of the export command lasts until you explicitly change it. The effect of the env function
applies only to the ecobol command with which you use it.
Table 105 Environment Variables
DefaultEffectVariable
/G/system/system/ecobfeDetermines the pathname of the ECOBOL compiler
that the ecobol utility calls
ECOBOL
/G/system/system/sqlcompDetermines the pathname of the SQL/MP compiler
that the ecobol utility calls
SQLCOMP
/usr/tandem/sqlmx/bin/Determines the pathname of the alternate COBOL
SQL/MX preprocessor that the ecobol utility calls
MXSQLCO
/G/system/system/Determines the pathname of the alternate SQL/MX
compiler that the ecobol utility calls
MXCMP
/usr/tandem/sqlmx/lib/
esqlcli.o
Determines the pathname of the object file that
describes the SQL/MX API to the ecobol utility
SQLCLIO
Files in the OSS Environment
In the OSS environment, you can use both OSS and Guardian files. OSS files are either line
sequential files (see Line Sequential Files) or sequential files with fixed-length records and no
alternate keys. Guardian files are all types of files that HP COBOL programs can access in the
Guardian environment. In the OSS environment, both OSS and Guardian files must have OSS
pathnames.
Topics:
OSS Pathnames
OSS Pathnames in HP COBOL Source Programs
OSS Files in HP COBOL Source Programs
#IN and #OUT
OSS Pathnames
In the OSS environment, both OSS files and Guardian files must have OSS pathnames. These two
topics briefly describe these pathnames. For further information, see the Open System Services
Changing Default Pathnames and Disk Volume 713