易创云论坛

 找回密码
 立即注册
查看: 20476|回复: 0

KCOMPRESS Function

[复制链接]

170

主题

178

帖子

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
100700
发表于 2021-1-27 12:35:51 | 显示全部楼层 |阅读模式
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.


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|易创云论坛 ( 吉ICP备17001024号-1 )

GMT+8, 2025-2-1 22:54 , Processed in 0.368804 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表