HP Integrity NonStop H-Series User Manual

Page 252

Advertising
background image

Displaying the Date

Adding Headers and Footers

10–12

058060 Tandem Computers Incorporated

Displaying the Date

TFORM automatically keeps track of the current date—called the system
date
—and stores this information in a variable named SYS_DATE. By using
the TODAY command with SYS_DATE, you can print the current date in
headers or footers.

There are several ways to display the date. The most common way is called
the TODAY SHORT USA date format. This format uses numbers to
represent the month, day, and year. The numbers are separated by slashes.
It is printed like this:

4/8/87

12/15/88

You might, however, want to use the TODAY LONG USA format if you
prefer to print out your date using words. When printed, the format looks
like this:

April 24, 1987

December 25, 1987

Note

For a complete listing of the date formats available in TFORM, see the PS TEXT FORMAT
Reference Manual
.

To put a date in your header or footer, first enter the TODAY command.
Then enter SYS_DATE in the location where you want the date to appear.
When using SYS_DATE, begin with a backslash followed by an opening
parentheses, enter SYS_DATE, and end with a backslash followed by the
closing parentheses:

\(SYS_DATE\)

Figure 10-7 shows two edit files. The first file uses the TODAY SHORT
USA format to put the date in a footer. The second file uses the TODAY
LONG USA format and places the date in a header. Figure 10-8 illustrates
the resulting printed header and footer.

Advertising
This manual is related to the following products: