Date: Thu, 1 Jul 2004 05:01:11 -0400
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: Re: problem scheduling SAS programs
I run a scheduled task SAS program in batch mode every day. If batch mode
execution is acceptable for you then it is simple. Go to my computer /
tools / folder options / selection the .sas file ending / click advanced /
select batch mode execution. This will produce two things: one, you need to
remember that whenever you click a .sas icon it will go into batch mode, so
right click to submit to SAS instead if that is what you want; and two,
when you point windows task scheduler to your chosen program icon, it will
execute in batch mode exactly as if you had clicked the icon yourself. Then
set to execute every day, etc.
On Wed, 30 Jun 2004 06:34:13 -0700, Nevin Krishna
>I am tyring to schedule a SAS program to run automatically on a
>periodic basis (daily), and am encountering problems.
>I am using microsoft XP, and SAS verion 8.2. To schedule the sas
>program i have been using the "schedule task" wizard found in system
>tools. If i save my SAS program that i wish to run as "autoexec.sas"
>and place it in the sas startup folder, the scheduler runs fine.
>However, I then have the problem of the program running everytime i
>open sas to write another program or run another program. (The program
>i want to run on the scheduler has a long processing time and
>automatically emails outputs to several recipients, so i wish to avoid
>unnecessarily running the program.)
>Alternatively, if instead of saving the program as autoexec.sas, use
>the existing program name for example "test.sas", the program invokes
>when the scheduled time is encountered but it never executes... Any
>ideas on how i might get this running would be greatly appreciates