"ben" wrote > is other way to do it?
%macro m; %if %sysfunc( fileexist ("c:\temp\freespace.log") ) %then %do;
Data _null_;do x=1 to 10;output;end;run; *data and proc steps...;
%end;
%mend;
%m;