|
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
Required Arguments
Example
See Also
Syntax
KCOMPRESS(source,<characters-to-remove> )
Required Arguments
source
specifies a characterexpression that contains the characters to be removed. When only source isspecified, KCOMPRESS returns this expression with all of the singleand double-byte blanks removed.
characters-to-remove
specifies the characteror characters that KCOMPRESS removes from the character. If characters-to-removeis omitted, KCOMPRESS removes all blanks.expression.
Tip Enclose a literal string of characters in quotation marks.
Example
The following exampleuses Japanese characters.
Statements
Results
KCOMPRESS example using Japanese characters
KCOMPRESS example using Japanese characters
See Also
Functions:
KLEFT Function
KTRIM Function
Copyright © SAS Institute Inc. All rights reserved.
|
|