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.
|
KCOMPRESS(source,<characters-to-remove>)
|
-
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.
Tip: |
Enclose a literal string
of characters in quotation marks. |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.