RTRIM: Removing Trailing Spaces

How to:

The RTRIM function removes trailing spaces from a character string.

Syntax: How to Remove Trailing Spaces

RTRIM(arg)

where:

arg

character string

Is the value to be trimmed.

This function returns a varying character string. The data type of the result has a length equal to that of the input argument (although the value may be shorter).

Example: Removing Trailing Spaces

RTRIM removes trailing spaces. This example,

RTRIM('   ABC   ')

returns '   ABC'.

WebFOCUS

Feedback