Date: Tue, 13 Jan 2004 17:45:27 -0500
Reply-To: "Droogendyk, Harry" <Harry.Droogendyk@CIBC.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Droogendyk, Harry" <Harry.Droogendyk@CIBC.COM>
Subject: Re: System() function and the SAS System X Command Window
Content-Type: text/plain; charset="iso-8859-1"
Batch files are a DOS feature, not SAS. A .bat file can be as simple as
listing the multiple commands, one after another.
More complicated .bat files can include conditional logic. Google for
'batch file syntax' or something similar for more details.
-----Original Message-----
From: Cacialli, Doug [mailto:Doug_Cacialli@URMC.Rochester.edu]
Sent: January 13, 2004 5:40 PM
To: Droogendyk, Harry; 'SAS-L@LISTSERV.UGA.EDU'
Subject: RE: System() function and the SAS System X Command Window
The NOXWAIT option was *exactly* what I was hoping for, and it works
flawlessly.
- HOWEVER -
I very much like the idea of building and executing a .bat file; it'd allow
the user to go back and see what commands were submitted. Is there
something in the docs that would get me started in the right direction, as
I'm completely unfamiliar with building and executing .bat files in SAS?
Thanks,
Doug
BTW, I appreciate the pipe suggestion from Don Stanley and others. I'm
using filename pipe as well, but there are certain instances in which the
system() function seemed easier to implement.
-----Original Message-----
From: Droogendyk, Harry [mailto:Harry.Droogendyk@CIBC.COM]
Sent: Tuesday, January 13, 2004 5:28 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: System() function and the SAS System X Command Window
Sorry, only half an answer.
Consider building a .bat file of the multiple commands and executing the
.bat file.
-----Original Message-----
From: Cacialli, Doug [mailto:Doug_Cacialli@URMC.ROCHESTER.EDU]
Sent: January 13, 2004 5:16 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: System() function and the SAS System X Command Window
Y'all,
I'm running SAS v8.2 on WinXPPro. I have a program that can potentially
submit many, MANY systems commands using the system() function. Every time
a command is submitted, SAS opens a Command Window, which needs to be closed
before the program will continue.
What I'm wondering is if there is some way to keep SAS from opening the
Command Windows? Alternatively, is there a way to submit multiple system
commands concurrently? If there is, I'm assuming I can follow the useful
command (which is almost exclusively a copy command) with the exit command
to close the Command Window.
Any suggestions would be welcome. Thanks!
Doug out.
-------------------------------------------
Doug Cacialli - Data Manager / Data Analyst
Depression Research Laboratory
University of Rochester Medical Center
300 Crittenden Boulevard - Box PSYCH
Rochester, New York 14642
Phone: (585)273-3309 Fax: (585)506-0287
-------------------------------------------