i have one rtf file in this location 'D:\newfolder\ex1.rtf' ;
how to delete that rtf file by using sas programing?
data have;
length path $100;
infile datalines;
input path;
datalines;
D:\newfolder\ex1.rtf
;
run;
data _null_;
set have;
fname="temp";
rc=filename(fname,path);
if rc = 0 and fexist(fname) then
rc=fdelete(fname);
rc=filename(fname);
run;
A simple google search for "sas delete file" would give you loads of answers. Please do at least a little work yourself, it won't break your fingers or make your head explode. Promise.
you asked this same question under 2 different subject. Please keep subjects together and mark them as completed when someone answers your question/s.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.