DATA Step, Macro, Functions and more

delete file, assigned throug FTP engine

Reply
Contributor
Posts: 48

delete file, assigned throug FTP engine

Hello,

My program use file, which is assigned as FTP (filename fntemp FTP 'test.txt' ... ; ).
After i process this file, I want to delete it.
When i use these statements:
%let rc = %sysfunc(fdelete(fntemp));

I get sysmsg.
%let msg = %sysfunc(sysmsg());
%put &msg;
ERROR: Requested function is not supported.

Is there any other ways supported by SAS, which i can use?

Thank you. Message was edited by: SAS user
Frequent Contributor
Posts: 139

Re: delete file, assigned throug FTP engine

Dear SASUser
more details please

are you using enterprise guide? or plain old SAS?

D
Contributor
Posts: 48

Re: delete file, assigned throug FTP engine

I do not know, how this info will be useful to you.

I think function fdelete works the same way in enterpriceGuide and SAS.
cause datastep functions are treated the same way in these products.

I'm using SAS 9.1.
Super Contributor
Super Contributor
Posts: 3,174

Re: delete file, assigned throug FTP engine

Explore using the FILENAME PIPE access method - details are available in the SAS Companion documentation for the "target system" OS.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search argument, this topic/post (example for unix OS):
filename pipe access method unix companion site:sas.com
Ask a Question
Discussion stats
  • 3 replies
  • 187 views
  • 0 likes
  • 3 in conversation