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 (August 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 28 Aug 2002 19:07:49 +1200
Reply-To:     Robin.Templer@xtra.co.nz
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Robin & Charmaine Templer <Robin.Templer@XTRA.CO.NZ>
Organization: TRAC Consulting Ltd
Subject:      Re: WinAPI module to delete files
Comments: To: krzysoporanku <krzysoporanku@POCZTA.ONET.PL>
Content-Type: text/plain; charset=us-ascii; format=flowed

Thanks for the suggestion - however the scl delete function cannot be used in the datastep, and the FDELETE function cannot be used with wild card filenames. So I am back to the API calls !!

krzysoporanku wrote:

> Robin & Charmaine Templer wrote: > >> I have a need for the modulen call to delete a series of files. >> Operating System: WinNt 4 Sp6 >> SAS version 8.2 >> >> I know I could use the call system('delete *.txt') with the noxwait >> option in effect, but have been asked for a more tidy solution. The >> ultimate objective is to remove directories (for which I have the api >> syntax) but I cannot do that untile the directory is empty. >> >> Any clues much appreciated. >> >> Robin > > > You can also use SCL function f.eg.: > > init: > /* delete a file in a different directory */ > rc=delete('D:\testfile','file'); > return; > > KrzysOPoranku >


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