PS TEXT FORMAT Reference Manual

Examples of Function and Macro Constructs
11387 Tandem Computers Incorporated G-5
This is what the result of that application looks like:
Dear Diary,
February 1, 1986:
I start my diary. I want to tell you all about
Steve.
February 25:
24 days have gone by, and he still hasn't noticed
me.
April 3:
It has been 37 days since I wrote, but today's the
day he finally said "Hi!" to me.
May 7:
Since he first talked to me, it took 34 days for me
to ask him to go out, but I asked him! Now what?
MACRO Constructs A macro is a group of commands, a block of text, or a combination of both
commands and text, which is defined as a unit. A macro works much like a
subroutine. You can design macros to accomplish almost any task you
want to perform with TFORM, such as printing a standard body of text or
collecting entries for your index. You can call functions and other macros
within a macro. Unlike a function, a macro can return more than one
value. Tandem supplies seven standard macros to perform TFORM
activities:
HELP
LIST
LETTER
TAG
TI
TODAY