TAL Programmer's Guide
16 Running and Debugging
Programs
096254 Tandem Computers Incorporated 16–1
Running Programs After the compiler produces an executable object file for your program, you can run
the program by using the TACL RUN command. This command is summarized here
and described fully in the TACL Reference Manual.
In the RUN command, specify the name of an executable object file and run options if
any. The following example runs an object file named MYPROG with no run options:
RUN myprog
Specifying Run Options When you run a program, you can include any of the TACL RUN command options.
Specify the run options in a comma-separated list, enclosed in slashes (/):
RUN myprog /IN myfile, LIB mylib/
Following are some commonly used options.
IN File Option
The IN file can, for example, be a terminal, a disk file, or a process. Your program is
given the IN file name and can use the file as it wishes. If you omit an IN file, your
program uses the default input file (normally the home terminal). For example, you
can specify MYFILE as the IN file in the RUN command:
RUN myprog /IN myfile/
OUT File Option
The OUT file can, for example, be a terminal, a disk file, a printer, a spooler location, or
a process. Your program is given the OUT file name and can use the file as it wishes.
If you omit an OUT file, the output goes to the default output device (normally the
home terminal). For example, you can specify a spooler location as the OUT file in the
RUN command:
RUN myprog /OUT $s.#host/
LIB File Option
You can specify the name of a user library file to satisfy external references in the
program. A library file is an object file that contains user-written procedures. If you
specify a user library file in the RUN command, the system searches that library file
before searching the system library file. For example, you can specify MYLIB as the
LIB file in the RUN command:
RUN myprog /LIB mylib/
Once you specify a user library file, the program uses it for all subsequent runs of the
program until you specify another library or LIB with no file name. The latter means
that no user library file is used.