| Date: | Fri, 25 Jan 2008 11:32:00 -0800 |
| Reply-To: | "Choate, Paul@DDS" <pchoate@DDS.CA.GOV> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Choate, Paul@DDS" <pchoate@DDS.CA.GOV> |
| Subject: | Re: How to delete a text file in SAS |
|
| In-Reply-To: | A<200801251833.m0PGqb6K003481@mailgw.cc.uga.edu> |
| Content-Type: | text/plain; charset="us-ascii" |
Tom -
Use a system command - on XP it would be a DOS del command through a
pipe, an X command, or %sysexec (not tested but probably pretty close):
filename ERASEIT pipe "del """c:\path\my file.txt""";
data _null_;
infile ERASEIT;
run;
options noxwait;
x 'del "c:\path\my file.txt"';
options noxwait;
%sysexec del "c:\path\my file.txt";
RTM to find out more....
Paul Choate
DDS Data Extraction
(916) 654-2160
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
SUBSCRIBE SAS-L Tom Smith
Sent: Friday, January 25, 2008 10:34 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: How to delete a text file in SAS
I can not use proc datasets and delete statement to delete a text file
in
a SAS library. Then how can I do it? any suggestion ?
Thanks.
|