Date: Mon, 30 Apr 2001 09:33:23 -0700
Reply-To: "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Subject: Re: Deleting a file in SAS without pop-up window
Content-Type: text/plain; charset=iso-8859-1
Great reminder Rob!
Indeed no DOS pop-up window.
filename mycmd pipe "echo hello > c:\temp\abc.txt";
filename mycmd pipe "erase c:\temp\abc.txt";
Washington State Department of Social and Health Services
Division of Research and Data Analysis (RDA)
From: Rob Rohrbough [mailto:Rob@ROHRBOUGH-SYSTEMS.COM]
Sent: Saturday, April 28, 2001 6:54 AM
Subject: Re: Deleting a file in SAS
It is possible with pipes. Basically you define a pipe fileref for the
console output and read or ignore it as you see fit. You may call
individual commands or call a BAT file without showing the DOS window on the
desktop. See your SAS Companion or online docs for Windows for more
information including examples.
> -----Original Message-----
> From: robert.a.burnham@DARTMOUTH.EDU
> Sent: Friday, April 27, 2001 1:10 PM
> Subject: Re: Deleting a file in SAS
> >>>>> "Stephane" == Stephane Racine
> <firstname.lastname@example.org> writes:
> Stephane> QUESTION : Is there a way to not have any command
> Stephane> window that open to delete a text file?
> I've never seen a way to run a basic system command under NT from SAS
> without a window. It is possible to write these programs under
> Win32 (e.g. think of how you have to specifically make Excel visible
> if you are connecting to it via OLE), but you need more control than
> you can get from a simple X command under SAS.
> Can you consolidate your multiple commands to delete single files
> into a single command to delete multiple files? That would still
> open one window -- but not dozens. Both NT and Unix have 'for'
> commands that can act on groups of file -- or just use a wildcard in
> your delete statment, e.g. del temp?.txt
> Hope this helps,
> Bob Burnham