sas中"/"是什么意思?
比如:
strength='1000KG';
strength1=compress(strength,'QWERTYUIOPLKJHGFDSAZXCVBNM');
if index(strength1,"/")=0 then strength1=strength1;
中的index函数中“/"是什么意思呢?
人气:482 ℃ 时间:2020-04-20 01:18:28
解答
index(x,'a')就是从变量x找string'a'在第几位
你上面'/'就是要找的对象
举个例子
data null;
a='abc/cd';
x=index(a,'/');
put x=;
run;
x=4
推荐
猜你喜欢