Hi all,
How to conditionally submit a SAS program (i.e saspgm.sas) with %include in data step without %macro statement and
%if.. %then..?
In below sample, the saspgm.sas will be submitted regardless what the condition is. How to make it only run when &x=1:
%let x=0;
data _null_;
if &x=1 then do;
%inc 'c:\saspgm.sas';
more .....
end;
else do;
put 'saspgm.sas not be submitted.';
end;
run;
Thanks in advance.
Mike
How to conditionally submit a SAS program (i.e saspgm.sas) with %include in data step without %macro statement and
%if.. %then..?
In below sample, the saspgm.sas will be submitted regardless what the condition is. How to make it only run when &x=1:
%let x=0;
data _null_;
if &x=1 then do;
%inc 'c:\saspgm.sas';
more .....
end;
else do;
put 'saspgm.sas not be submitted.';
end;
run;
Thanks in advance.
Mike