Previous Page | Next Page

Functions for NLS

KCOMPRESS Function



Removes specified characters from a character expression.
Category: DBCS
Restriction: I18N Level 2
Tip: Non-DBCS equivalent function is COMPARE in SAS Language Reference: Dictionary.

Syntax
Arguments
See Also

Syntax

KCOMPRESS(source,<characters-to-remove>)


Arguments

source

specifies a character expression that contains the characters to be removed. When only source is specified, KCOMPRESS returns this expression with all of the single and double-byte blanks removed.

characters-to-remove

specifies the character or characters that KCOMPRESS removes from the character expression.

Note:   If characters-to-remove is omitted, KCOMPRESS removes all blanks.  [cautionend]

Tip: Enclose a literal string of characters in quotation marks.

See Also

Functions:

KLEFT Function

KTRIM Function

Previous Page | Next Page | Top of Page