Date: Wed, 7 Dec 2005 12:42:58 -0800
Reply-To: shiling99@YAHOO.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: shiling99@YAHOO.COM
Organization: http://groups.google.com
Subject: Re: Possible to run a SAS program within another SAS program?
In-Reply-To: <1133983723.040049.182910@g47g2000cwa.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
It can be as simple as the following, it will execute either of the sas
program depending upon the value of runit.
HTH
%let runit=1;
data _null_;
*put your derive logic here;
if "&runit"=1 then call execute ('%include "c:\temp\test1.sas";' );
else if "&runit"=2 then call execute ('%include "c:\temp\test2.sas";'
);
run;
|