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 (February 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 29 Feb 2008 16:43:28 -0500
Reply-To:   "data _null_," <datanull@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "data _null_," <datanull@GMAIL.COM>
Subject:   Re: Send an email to the users
Comments:   To: Steve James <spj1@cdc.gov>
In-Reply-To:   <33ce5cdd-925f-42f7-96cf-ae94d0211f61@h25g2000hsf.googlegroups.com>
Content-Type:   text/plain; charset=ISO-8859-1

An example of letting SYSFUNC(QUOTE double up your double quotes.

1142 %let clientPath=C:\Program Files\SAS; 1143 %let ClientHistoryPath=; 1144 %let SAScfg=&ClientPath.\Client.cfg; 1145 %put NOTE: SYSTASK command %sysfunc(quote("C:\SAS\SAS" -input "&ClientPath.\step1.sas" -log 1145! "&ClientHistoryPath.\log\step1.txt" 1146 -autoexec "&ClientPath.\autoexec.sas" -config "&SAScfg")) mname=Taskname status=Taskrc;

NOTE: SYSTASK command """C:\SAS\SAS"" -input ""C:\Program Files\SAS\step1.sas"" -log ""\log\step1.txt"" -autoexec ""C:\Program Files\SAS\autoexec.sas"" -config ""C:\Program Files\SAS\Client.cfg""" mname=Taskname status=Taskrc

this allows you to get macro variables resolved but you don't have all those double double quotes, the quote function make them for you. Of couse you won't use %PUT but actully execute the systask statement.

On Fri, Feb 29, 2008 at 4:04 PM, Steve James <spj1@cdc.gov> wrote: > Look at http://www2.sas.com/proceedings/sugi30/021-30.pdf and see if > that's helpful. Seems to have a lot of interesting features. I will > say that I can get the example working without problems, but moving it > to a structure where the folder names contains blanks (e.g. "My SAS > Files") has taken a lot of modifications to the code, and I've still > not gotten it down right. > > Steve > > > On Feb 29, 11:34 am, adsing...@GMAIL.COM (DP) wrote: > > Hello! > > > > I have to run 44 different sas programs everyday and check their logs to > > see if the programs have completed the execution or not. This process > > becomes boring & tiring at times. > > > > I am trying to figure out if there can be an automated process in sas to > > run these programs daily, & if the program failed then notification can be > > sent maybe in the form of an email. > > > > Thanks for all you great help! > > > > DP. >


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