TGAL Manual
IN Command
TGAL Commands
060865 Tandem Computers Incorporated 2–29
IN Command Use the IN command to merge files. When TGAL sees an IN command, it processes
the contents of the specified file before continuing with the current EDIT file. The file
specified with an IN command can also contain text or TGAL commands. You can
nest—that is, the file specified by the IN command can also contain an IN command—
eight levels of IN commands.
The syntax of the IN command is:
IN
file name
file name
is the name of the file to be processed before continuing with the current file.
Considerations
TGAL expands partial file names using the default system, volume, and
subvolume.
You must put only one IN command on a line.
Examples
These two examples show nested IN commands and a file that consists of IN
commands.
1. This example shows nested IN commands.
File ONE File TWO File THREE
1 Line 1 from ONE 1 Line 1 from TWO 1 Line 1 from THREE
2 Line 2 from ONE 2 Line 2 from TWO 2 Line 2 from THREE
3 \IN TWO 3 \IN THREE 3 Line 3 from THREE
4 Line 4 from ONE 4 Line 4 from TWO 4 Line 4 from THREE
The formatted copy of file ONE (TGAL/IN one, OUT $1p/) looks like the
following:
Line 1 from ONE
Line 2 from ONE
Line 1 from TWO
Line 2 from TWO
Line 1 from THREE
Line 2 from THREE
Line 3 from THREE
Line 4 from THREE
Line 4 from TWO
Line 4 from ONE