Skip to main content

PQL47 (PQL Function Library - CPM 4.7)

RTRIM

Applies to: CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6 CELONIS 4.7

Description

RTRIM returns the string with trailing whitespace removed.

Supported input column types: STRING

Output column type: STRING

Whitespace is defined as being the whitespace characters in version 12.1.0 of the Unicode Standard.

Syntax
RTRIM ( table.column )
NULL handling

If the value is NULL, the result is NULL as well.

Example

[1] Remove trailing whitespace from strings.

Query

Column1

RTRIM ( "Table1"."Column1" )

Input

Output

Table1

Column1 : STRING

'Example without trailing whitespace'

'Example with trailing whitespace '

'PQL '

' a'

''

''

null

''

Result

Column1 : STRING

'Example without trailing whitespace'

'Example with trailing whitespace'

'PQL'

' a'

''

''

null

''

See also: