TGAL Manual
Report
TGAL Examples
3–10 060865 Tandem Computers Incorporated
Report This example shows spacing and formatting for an introduction to a formal report.
The following TGAL commands are used:
NEW ODD begins text on a new, odd-numbered page.
TEXT joins and justifies the text.
OUTLEN 65 sets the line length to 65 characters. This command indirectly
controls the right margin.
TOPMARGIN sets the top margin to 10.
BOTTOMMARGIN sets the bottom margin to 10.
SECT controls the page numbering. In this example, the phrase “1-”
prints on every page next to the page number.
POFF sets the left margin to the fifth character position.
ALT ON tells TGAL to print the text on alternating pages.
DBL double spaces text for the entire length of the document.
SPACE adds 10 blank lines before the first text line.
CENTER centers the next two lines of text.
HEAD places a heading on the third line above the first line of text.
SUBHEAD places a subheading on the second line above the first line of
text. In this example, the TODAY option is specified along with
the SUBHEAD command.
BREAK causes a break in the joining of lines and suppresses justification
of the preceding line.
NEED keeps a specified number of text lines on the same page. If there
is not enough space on the page for the lines to be printed
together, then the entire block prints on the following page.
OV overprints text to make it appear as boldface.
IF allows conditional printing of text. With this command, you
define the condition that must be met before TGAL prints the
designated parts of text. The IF command only works when it is
paired with the SET command. Both the IF command and SET
command use a toggle number as an identifier. In this example,
the condition is set by the toggle number 5. Note that the
printed report does not include the last three text lines of the
command file: No SET 5 command met the IF 5 command
condition.
COMMENT lists the condition for the IF command.