全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2433 3
2012-12-27
复制代码
此处用到了scan函数的三个modifier
sas help的说明如下:
a or A

adds alphabetic characters to the list of characters.

d or D  adds digits to the list of characters.

k or Kcauses all characters that are not in the list of characters to be treated as delimiters. That is, if K is specified, then characters that are in the list of characters are kept in the returned value rather than being omitted because they are delimiters. If K is not specified, then all characters that are in the list of characters are treated as delimiters.


为什么上面两个程序得出的结果不一样?

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-12-27 16:47:48
ERROR 72-185: SCAN 函数调用参数过多。
确定程序是跑的出来的吗
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-12-27 16:50:08
a6566792 发表于 2012-12-27 16:47
ERROR 72-185: SCAN 函数调用参数过多。
确定程序是跑的出来的吗
你的是什么版本的sas?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-12-27 16:51:56
Imasasor 发表于 2012-12-27 16:50
你的是什么版本的sas?
9.1的,刚试了9.2的,没问题了。。。
我看就是“k”和“kda” 对字符段的区分识别不同,"k"只识别自己定义好的字符,英文符号是分隔符,"kda"将中文也默认为可识别字符了,只有英文符号是它的分隔符,结果别能解释了(你这里的都好是中文字符下的)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群