PS TEXT FORMAT Reference Manual

Introduction to TFORM
3–54 11387 Tandem Computers Incorporated
You can evaluate the strings of the SYS_CHARS, SYS_SETFLAGS, and
SYS_PRINTFLAGS variables by using the STRING function. For
example
STRING(SYS_SETFLAGS,8,8)
will evaluate whether the option represented by the eighth character of
the SYS_SETFLAGS string—text joining by SET JOIN—is “1” or “0”
(ON or OFF). To evaluate more than one character of the string, you
can specify a range of characters. The following example shows how
the STRING function evaluates the fourth through the twelfth
characters of the SYS_SETFLAGS string.
STRING(SYS_SETFLAGS,4,12)
To evaluate the whole string, simply specify SYS_SETFLAGS within the
parentheses; the STRING function will return all the values of the
SYS_SETFLAGS string.
System variables and functions used to evaluate them are described in
more detail in Section 5.
Users may find that after they have learned TFORM, they can continue
to simply use the HELP facility from their text editor as an aid to
memory.