PS TEXT FORMAT Reference Manual
Expressions
5-22 11387 Tandem Computers Incorporated
When using proportional spacing, you may need to use a “fudge factor” to
get a string to justify properly. The equation
js_fixed = WIDTH(jstring) / WIDTH(" ")
(where JSTRING is the string expression to be justified) gives the number
of character positions the string would occupy if all characters were the
same width as the average-sized space character. Then if you add
(LENGTH(jstring) - js_fixed)
to the length of the field where the string is to be justified, you should get a
better justification. (S)
LENGTH Function The LENGTH function returns a value equal to the number of characters in
the value represented by the argument expression (the number of
characters in a string or the number of digits in a numeric value).
LENGTH (
exp
)
(N)
LOWER Function The LOWER function returns the specified string with all of its letters in
lowercase.
LOWER (
s-exp
)
(S)
MAX Function The MAX function returns the value of whichever argument is the greater
of the two.
MAX (
n-exp
,
n-exp
)
(N)