PS TEXT FORMAT Reference Manual

Expressions
5-26 11387 Tandem Computers Incorporated
STRING Function The STRING function returns the value of
exp
in the form of a string; it can
also return a portion of that string, a substring with the beginning and
ending characters specified by the two other arguments.
STRING (
exp
[ ,
n-exp1
[ ,
n-exp2
] ] )
If you enter a starting-character expression that is less than or equal to zero,
or if you omit it, the STRING function extracts a substring beginning with
the first character of the main string. For example:
STRING(58008918)
returns the string “58008918” .
If you enter an ending-character expression that is greater than the number
of characters in the main string, or if you omit it, TFORM assumes you
mean the substring is to end with the last character of the main string. For
example:
STRING("HOUSEWORK",6,40)
returns the string “WORK” .