我有2个宏变量&k和&N。
我想创建第三个宏变量&G如果&k为1,我希望&G为&N否则我希望&G为&k
非常感谢
您在这里:
%if &K = 1 %then %do; %let G = &N; %end; %else %do; %let G = &K; %end;