PS TEXT FORMAT Reference Manual
Expressions
11387 Tandem Computers Incorporated 5-25
ROMAN Function The ROMAN function returns a lowercase Roman numeral that is the
equivalent of the integer argument.
ROMAN (
i-exp
)
The argument must be greater than zero. (S)
SELECT Function The SELECT function returns one of the listed arguments, numeric or
string, as determined by the value of
i-exp
.
SELECT (
i-exp
,
exp
[ ,
exp
] ... )
If, for example, the value of
i-exp
is 3, SELECT returns the value of the
third argument (starting with the one after
i-exp
). Or, perhaps the value
of
i-exp
is a system variable:
SELECT(sys_dayofweek,"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
Then it returns a string that corresponds to the current day of the week, as
selected by the value of SYS_DAYOFWEEK.
You can mix numeric expressions and string expressions in the argument
list. But the first argument of the SELECT function must be an integer not
less than 1 and not greater than the number of arguments that follow it.
Otherwise, TFORM issues an error message and does not perform the
function. (N,S)