Date: Wed, 22 Oct 2008 11:23:16 -0700
Reply-To: RolandRB <rolandberry@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RolandRB <rolandberry@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Q: Batch run of many sas programs on Windows
Content-Type: text/plain; charset=ISO-8859-1
On Oct 22, 7:43 pm, Bob Burnham <bob.burn...@gmail.com> wrote:
> > How about my first article being "Welcome to MS-DOS (and gawk)"? Is
> > there a demand for such a thing?
>
> One last thought on this... if you have gawk installed under Cygwin,
> how about using the 'find' command too and skipping the entire batch
> file process? For example:
>
> find . -name '*.sas' -exec sas -nosplash -nologo -icon -sysin {} \;
>
> That command, which I just tested under Cygwin, will invoke SAS on
> each file with a .sas extension as if you had run each one from the
> command line.
>
> Bob
Silly me. Find works on MS-DOS as well. I forgot there was an MS-DOS
find command that does something completely different. But still it
won't do what it is supposed to do. I get a "missing argument to '-
exec' " message. Any idea how to get around it?
C:\cygwin\bin\find.exe . -name '*.sas' -exec sas -nosplash -nologo -
icon -sysin {} \;
|