Date: Wed, 2 Nov 2011 10:39:58 -0400
Reply-To: Michael.Davis@alumni.duke.edu
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Michael Davis <michael@BASSETTCONSULTING.COM>
Subject: Re: auto-scheduling a program to run
In-Reply-To: <1320242170.2032.0.camel@m-PORTEGE-R500>
Content-Type: text/plain; charset="iso-8859-1"
Hello Cindy [and other SAS-L Friends],
One other feature to consider is notification of job completion.
Someone [e.g. a departmental service mailbox] ought to get a message that
the the job ran and some indication of whether it ran normally via a
return code or some statistic generated by the job when it runs
successfully.
There are lots of previous posts in the archives about how to get SAS to
send out email messages in unattended modes. You probably want your
job to generate some sort of file and then put another job in your batch
file or script that reads that file and sends the email message.
You should use a second job for notification because if the first job
abends, it probably won't be in very good shape to send the email
either.
Best wishes,
Michael Davis
> Hi Cindy,
>
> You can try to use the Windows Scheduled tasks to run the
program.
>
> Regards,
> Murphy
>
> On Wed, 2011-11-02 at 09:42 -0400, Durrett, Cindy wrote:
>> Hi SAS-L'ers. I'm in the beginning stage of the process
of figuring
>> out what needs to happen to make a program run
"automagically" - it's a
>> program we run twice a month by opening the program and clicking
the
>> "double-running-man" (remote submit). Nothing changes
about the program
>> and it needs no intervention along the way. I don't know
anything about
>> task scheduling, etc., but I did get a paper someone referenced
here on
>> the list that I need to review still - but I was hoping someone
who has
>> done this could give me an overview of what's involved and
what things I
>> need to look for to make it run when scheduled. Mostly I want to
do it
>> because I have something that needs to run on January 1st and
I'll be on
>> vacation and don't want to lug the company laptop with me to
VPN just to
>> press the double-running-man button :)
>>
>> We use SAS 9.2, remote access to a server, Windows-64 on the
server, 32
>> on the PC, Microsoft XP - about to upgrade to Office 2010
products (from
>> 2003). Not sure what else might be of importance to know.
>>
>> Thanks bunches,
>>
>> Cindy D.
>
--
Michael L. Davis
Ambler, PA
email: Michael.Davis@alumni.duke.edu