z*******e 发帖数: 32 | 1 第8题
¯o houses(dsn=houses,sub=RANCH);
data &dsn;
set sasuser.houses;
if style = "&sub";
run;
%mend;
%houses(sub=SPLIT);
%houses(dsn=ranch);
%houses(sub=TWOSTORY);
which one of the following is the value of macro variable SYSLAST?
A. work.ranch
B. work.houses
C. WORK.RANCH
D. WORK.HOUSES
我的理解是syslast是系统最后generated一个dataset,所以在最后一次call这个叫
houses的macro的时候,dsn值是缺损的,那么就使用default值就是dsn=houses, 所以
生成的dataset就是houses。这样理解对吗?如果是的话,答案B和D的区别又在哪里呢
?从没觉得大小写有区别啊?
跪谢!! | Z********6 发帖数: 10 | 2 The answer is D. syslast, the name of the most recently created SAS data set
, seems always uppercased.
%macro cars(dsn=cars,sub=Acura);
data &dsn;
set sashelp.cars;
if make = "&sub";
run;
%mend;
%cars(sub=Audi);
%cars(dsn=ACURA);
%cars(sub=BMW);
%put &syslast.;
*WORK.CARS; | z*******e 发帖数: 32 | |
|