TRIM(STRING)

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

Examples

TRIM (' A B  ') has the value ' A B'. IBM Copyright 2003