【发布时间】:2021-03-05 15:59:29
【问题描述】:
扫描功能似乎没有按我的意愿工作。
data test;
do i=1 to 5;
text="ABC¤¤ABC¤ABC¤ABC";
scan = scan(text,i,"¤","m");
output;
end;
run;
结果:
它适用于 i=2 但我不明白为什么 i=3 和 i=4 为空白... 我想要的是 scan=blank for only i=2 where there is a continuous delimiter.
但是,如果我的分隔符是逗号,它可以工作...
data test;
do i=1 to 5;
text="ABC,,ABC,ABC,ABC";
scan = scan(text,i,",","m");
output;
end;
run;
结果:
我做错了什么???
【问题讨论】:
-
那个字符的十六进制代码是什么?
-
不知道。 Unicode 是 U+00A4。在此处查看更多信息compart.com/fr/unicode/U+00A4
-
SCAN() 不理解多字节字符。