请教高手SAS中Split string 的疑难问题
1个回答
展开全部
proc import datafile="e:\1.xls" out=a replace;
getnames=no;
run;quit;
data _null_;
set a;
put f1 f2;
x=count(compress(f1),"0A"x);
y=count(compress(f2),"0A"x);
put x y;
do i=1 to
x
/* y*/
;
str1=scan(f1,i,"0A"x);
str2=scan(f2,i,"0A"x);
put str1 str2;
end;
run;
getnames=no;
run;quit;
data _null_;
set a;
put f1 f2;
x=count(compress(f1),"0A"x);
y=count(compress(f2),"0A"x);
put x y;
do i=1 to
x
/* y*/
;
str1=scan(f1,i,"0A"x);
str2=scan(f2,i,"0A"x);
put str1 str2;
end;
run;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询