Date: Thu, 3 Jan 2002 13:34:50 -0500
Reply-To: David Ward <dward@INTERNEXT-INC.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David Ward <dward@INTERNEXT-INC.COM>
Subject: Re: Closing a command widow
Content-Type: text/plain; charset="us-ascii"
In addition to Bob mentioning xwait, there's also xsync. Run
options xsync to make sure that SAS waits for the commands to finish executing if that's important to you.
To run several commands in one x statement you can write a batch file containing as many commands you want and just referenc the batch file in the x statement:
options noxwait xsync;
data _null_;
file 'c:\batch1.bat';
put 'c:\sas\sas.exe -sysin program1.sas';
put 'mkdir whatever';
run;
x 'c:\batch1.bat';
HTH
David Ward
Original Message -----------------------
Hello All -
When I delete a file using an x command (x 'del
"C:\WINDOWS\Desktop\test.txt"';) the DOS window stays open. Two
questions - can I submit subsequent commands to the same window? and
how do I get SAS to close the window when I am through?
tx in advance.
Paul Choate