Purpose
Returns the argument with trailing
blank characters removed.
Class
Transformational function
Argument type and attributes
- STRING
- must be of type character and must be a scalar.
Result type and attributes
Character with
the same kind type parameter value as STRING and with a length that
is the length of STRING less the number of trailing blanks in STRING.
Result value
- The value of the result is the same as STRING, except trailing
blanks are removed.
- If STRING contains no nonblank characters, the result has zero
length.
Examples
TRIM ('␢A␢B␢␢')
has the value '␢A␢B'.