Running Your Program [ Micro Focus COBOL for UNIX COBOL User Guide ] MPE/iX 5.0 Documentation
Micro Focus COBOL for UNIX COBOL User Guide
Running Your Program
When you have created your executable file, if the current directory is
on your PATH, to run it simply enter its name at the command line:
myprog
If the current directory is not on your PATH, enter:
./myprog
If your program reads the command line using ACCEPT...FROM COMMAND-LINE
then simply enter the required command following the name. For example:
myprog -i:in-file new-file
See the chapter Writing Programs for more details of handling command
lines.
Preparing Your System
This section explains how to prepare your own system for running your
applications.
The COBDIR environment variable must be set to the directory containing
the COBOL system or COBOL run-time environment.
If your application contains dynamically loaded subprograms,
they are searched for in the following order:
1. The directories specified on the environment variable $COBPATH
, if set, or the current directory if $COBPATH is not set.
2. The parent directory containing the calling program.
3. The COBOL system directories as specified on the COBDIR
environment variable.
MPE/iX 5.0 Documentation