Running SAS programs from within a SAS program

Running SAS programs from within a SAS program

Post by keith_w_la » Sun, 20 Nov 2005 12:31:40


Dear All,

I have several small(ish) SAS programs that convert
and format DBF files. Thanks to all who helped solve
formatting problems. I would like to create a master
SAS program that calls each one in sequence. Any
ideas?

Cheers,
Keith



__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://www.yqcomputer.com/
 
 
 

Running SAS programs from within a SAS program

Post by msoobade » Sun, 20 Nov 2005 12:54:54

Keith,

You can use a series of %include statements naming the programs in the order
you want to call them in.

%include "drive:\your_folder\program name.txt" ;

Mah-J


M. Soobader, PhD
Principal consultant
STATWORKS
www.statworks.com


-----Original Message-----
From: SAS(r) Discussion [mailto: XXXX@XXXXX.COM ]On Behalf Of
Keith W. Larson
Sent: Friday, November 18, 2005 10:32 PM
To: XXXX@XXXXX.COM
Subject: Running SAS programs from within a SAS program


Dear All,

I have several small(ish) SAS programs that convert
and format DBF files. Thanks to all who helped solve
formatting problems. I would like to create a master
SAS program that calls each one in sequence. Any
ideas?

Cheers,
Keith



__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://www.yqcomputer.com/

 
 
 

Running SAS programs from within a SAS program

Post by iw1jun » Mon, 21 Nov 2005 12:01:30

Or better when programs are in one directory

file code "drive:\your_folder\" ;
%inc code
( prog1
prog2
prog3
...
) ;

Then the next step is parameter driven macros in an autocall library.

%prog1(parm1=...)
%prog2(alpha=...)
.....

Ian Whitlock
=================
Date: Fri, 18 Nov 2005 22:54:54 -0500
Reply-To: XXXX@XXXXX.COM
Sender: "SAS(r) Discussion"
From: " XXXX@XXXXX.COM " < XXXX@XXXXX.COM >
Subject: Re: Running SAS programs from within a SAS program
Comments: To: "Keith W. Larson" < XXXX@XXXXX.COM >
In-Reply-To: < XXXX@XXXXX.COM >
Content-type: text/plain; charset=iso-8859-1
Keith,
You can use a series of %include statements naming the programs in the
order
you want to call them in.
%include "drive:\your_folder\program name.txt" ;
Mah-J

M. Soobader, PhD
Principal consultant
STATWORKS
www.statworks.com

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L]On Behalf Of
Keith W. Larson
Sent: Friday, November 18, 2005 10:32 PM
To: SAS-L
Subject: Running SAS programs from within a SAS program

Dear All,
I have several small(ish) SAS programs that convert
and format DBF files. Thanks to all who helped solve
formatting problems. I would like to create a master
SAS program that calls each one in sequence. Any
ideas?
Cheers,
Keith

__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://www.yqcomputer.com/