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 (January 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: SUBSCRIBE SAS-L Tom Smith <tomquin99@GMAIL.COM>
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.


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