LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?
Comments: To: sas-l@uga.edu
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;


Back to: Top of message | Previous page | Main SAS-L page