|
Log文件里没有问题。可能你的中文系统的问题。
1 data old;
2 input _col0;
3 cards;
NOTE: The data set WORK.OLD has 7 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.56 seconds
cpu time 0.01 seconds
11 ;run;
12 proc print data=old; title 'old'; run;
NOTE: Writing HTML Body file: sashtml.htm
NOTE: There were 7 observations read from the data set WORK.OLD.
NOTE: PROCEDURE PRINT used (Total process time):
real time 1.65 seconds
cpu time 0.39 seconds
13 %macro corrvar(oldvar,newvar,n,note);
14 data old_var&n;
15 set old(keep=&oldvar obs=10);
16 put "¬e";
17 run;
18 %mend;
19 %corrvar(_col0,hello3,1,Nihao)
Nihao
Nihao
Nihao
Nihao
Nihao
Nihao
Nihao
NOTE: There were 7 observations read from the data set WORK.OLD.
NOTE: The data set WORK.OLD_VAR1 has 7 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.00 seconds
20 %macro corrva(oldvar,newvar,n,note);
21 data old_var&n;
22 set old(keep=&oldvar obs=10);
23 put "¬e";
24 run;
25 %mend;
26 %corrva(_col0,hello3,1,Nihao)
Nihao
Nihao
Nihao
Nihao
Nihao
Nihao
Nihao
NOTE: There were 7 observations read from the data set WORK.OLD.
NOTE: The data set WORK.OLD_VAR1 has 7 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
|