/* macro definition */ %macro cond(makedir); %if &makedir = true %then %do; x 'rm -r /tmp/sasjob'; %let rc = %eval(&SYSRC/256); %if &rc = 0 %then %do; %put rm -r /tmp/sasjob successful; %end; %else %do; %put rm -r /tmp/sasjob failed with rc=&rc; %end; %end; %mend; /* macro invocation */ %cond(true);