KCOMPRESS Function
Removes specified characters from a character expression.
Category: |
DBCS |
Tip: |
Non-DBCS equivalent function is COMPARE in SAS Functions and CALL Routines: Reference.
|
Syntax
KCOMPRESS(source,<characters-to-remove> )
Required 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. If characters-to-remove
is omitted, KCOMPRESS removes all blanks.expression.
Tip:Enclose a literal string of characters in quotation marks.