Date: Wed, 28 Aug 2002 19:07:49 +1200
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
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 !!
> 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.
> You can also use SCL function f.eg.:
> /* delete a file in a different directory */