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 (March 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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


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