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 (January 2010, 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 Jan 2010 08:29:03 -0800
Reply-To:   Tom Abernathy <tom.abernathy@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Tom Abernathy <tom.abernathy@GMAIL.COM>
Organization:   http://groups.google.com
Subject:   Re: How to call SH file from SAS
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

Normally each user has a .profile in their home directory. This is the file that I think the CRON jobs do not load automatically. I have in the past created a special version of this for CRON jobs as I do not need any of the settings that are only for interactive terminal environment. So my shell scripts that I schedule look something like:

cd /home/username/cronjobs . cron_profile sas program.sas

On Jan 29, 9:35 am, alex4...@YAHOO.CO.IN (Alex S) wrote: > Hi All, > I am having a problem in scheduling my SAS job through crontab. My database= > is Tereadata in Unix.=A0when i run it=A0manually=A0it works fine. if i sch= > edule my SAS job it is not setting up the environment variables. > for this reason ,my UNIX admin suggested to created SH file,This SH file sh= > ould calls my public profile file and=A0add the crontab command inthe SH fi= > le,the Content of SH file is: > ---------------------------------------------------------------------------­= > ------------------. /etc/profilesas /mydirectory/myjob.sas-----------------= > ---------------------------------------------------------------------------­= > -then i schedule my SH file like below30 10 * * * sh /mydirectory/myjob.sh > The difference is SH files calls the public profile ". /etc/profile".how ca= > n i call this ". /etc/profile" from my SAS code. > Thanking you in advance. > =A0Regards=20 > alex .S.=0A=0A=0A Your Mail works best with the New Yahoo Optimized IE= > 8. Get it NOW!http://downloads.yahoo.com/in/internetexplorer/


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