Date: Wed, 5 Mar 2008 05:27:48 -0800
Reply-To: Lex Jansen <lexjansen@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Lex Jansen <lexjansen@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Shell Script to run multiple SAS codes
Content-Type: text/plain; charset=ISO-8859-1
Take a look at the GNU make utility.
See a paper by David Garbutt on lexjansen.com:
Understanding what 'make' can do for you:
http://www.lexjansen.com/phuse/2005/ps/ps27.pdf
HTH,
Lex Jansen
On Mar 5, 7:34 am, mailtokunalkel...@GMAIL.COM (Kunal Kelkar) wrote:
> Hi All,
>
> Can anyone provide me some examples to run multiple SAS programs using
> script in Unix. My requirement is like
>
> Run code1.sas if output is fine => run code2 if output is fine => run Code3
> and so on.
>
> I tried to search on the SAS site but was not able to find suitable example.
> I have written a small script like below but its not giving me the correct
> results.
>
> #!/bin/sh
> #execute the following codes on e after the other
>
> (sas test.sas && touch test.OK || touch test.FAIL) &
> (sas test1.sas && touch test1.OK || touch test1.FAIL) &
> #WAIT FOR THE DATA
> wait
> #TEST JOB STATUS
> echo "DONE"
>
> Thanks,
> Kunal Kelkar
|