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 (October 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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 {} \;


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