Date: Sat, 11 Nov 2006 18:20:54 -0800
Reply-To: "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Subject: Re: batch job submit
Content-Type: text/plain; charset="utf-8"
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> Sent: Saturday, November 11, 2006 9:53 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: batch job submit
> Thank you. Sequentially.
> "Nordlund, Dan DSHS/RDA $B$N%a%C%;!<%8 (B:
> > > -----Original Message-----
> > > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> > > hba2pd
> > > Sent: Friday, November 10, 2006 5:25 PM
> > > To: SAS-L@LISTSERV.UGA.EDU
> > > Subject: batch job submit
> > >
> > > Hello,
> > >
> > > I woud like to submit multiple sas jobs in the batch mode in PC SAS.
> > > For examples, test1.sas, test2.sas. What will be a SAS command?
> > >
> > > Best regards,
> > Do you want the jobs to run sequentially or simultaneously, or does it
> not matter?
> > Dan
I don't have a much in the way of details about your particular setup, but here is at least one option. Since you specified PC SAS, I am assuming you are running under some version of MS Windows. Are these programs (test1.sas, test2.sas, ...) written to run in batch mode? I.e., all the necessary libnames, options, etc., are specified in each program? If so, you could set up a "driver" file that would run your programs sequentially. For example, create a file with the name driver.sas (or name of your choice with .sas extension) and %INCLUDE the various programs in the order that you wish them to run.
Then in most windows installations, you can right-click the driver file in windows explorer and batch submit the file.
Other options include writing a windows command (batch) file to submit the programs. This is a little more complicated, but might allow you to test whether each program executed without error. There are probably other scripting solutions that others will suggest. If this doesn't get you to where you want to go, write back to SAS-L with more details about what you want to do, and what your particular setup is (hardware, OS, etc) and I'm sure someone can provide a solution.
Hope this is helpful,
Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services
Olympia, WA 98504-5204