|
I was thinking about this recently, with the difficulty I was having
in making a conditional SET statement. The best thing I could come up
with without a superfluous "macro wrapper" was the following:
/* Conditionally set dataset: */
data second;
var='second';
run;
data _null_;
if %qsysfunc(exist(first)) then call symputx('set','first');
else call symputx('set','second');
run;
%put set=&set;
data output;
set &set;
run;
|