【发布时间】:2016-05-03 16:47:18
【问题描述】:
这是我的桌子
data:
ax bx cx dx ex fx
1 2 3 4 5 5
2 3 5 1 0 5
3 7 8 9 1 4
这是我的基本代码
%macro example(c= , b= ,a= );
data temp;
set data;
diff = &c-(&b+&a);
run;
%mend example;
% example(c=cx ,b=bx ,a=ax)
我想通过在 SAS EG 中设置类似提示的功能来自动化 diff = c-(b+a) 但我不知道该怎么做?我的目标是能够在“差异”方程中更改我的特征(例如,代替 cx,我想将 f 或代替 ax,e 等等),因为我的实际数据由数千列组成。 如果您能帮助我,我将不胜感激。
【问题讨论】:
标签: sas prompt sas-macro enterprise-guide