全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2205 0
2007-09-13

我现在在学习base sas中的宏功能,发现其中的一段程序有点问题,希望能够得到解答,谢谢。

P.S:顺便希望能够推荐一些关于sas宏功能的书。

这段程序在sas8.2上运行

option symbolgen;
option mprint;
data new;
input age income;
cards;
10 0
11 100
12 200
13 150
15 288
14 148
18 658
19 894
15 525
;
run;
%macro create;
data new1;
set work.new;
if age<=16;
run;
%mend create;

%macro plot(yvar,xvar);
proc plot data=work.new;
plot &yvar*&xvar;
run;
%mend plot;

%macro analyze(yvar,xvar);
%put do you want to execute the data step?;
%input getdata
;
%if %upcase(&getdata)=YES %then %create;
%plot(&yvar,&xvar)
%mend analyze;
%analyze(income,age)

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群