It comes in handy to generate a proc casutil deletesource command for files in a caslib.
The %sashdat or csv option works as well.
It works fine but I cannot "see" files of type png or html.
How can I achieve this?
proc cas;
table.caslibinfo result=sss/caslib="mkt" ;
table.fileinfo result=sss / path="%.xlsx caslib="mkt";
saveresult sss dataout=work.xdata;
run;
proc sql;
select catX(" ", 'deletesource casdata=', "'"||strip(name)||"'", ' ', "incaslib='mkt'", " quiet;") into :str
from work.xdata
where prxmatch("m/nom|denom|kpi/oi",name) or 1=1 order by name;
quit;
I then copy/paste the reult to a proc casutil step.
proc casutil;
deletesource casdata= 'ALL_DENOMINADOR2.sashdat' incaslib='mkt' quiet;
deletesource casdata= 'CARTERA_2_CHECK_REMAPPED2.sashdat' incaslib='mkt' quiet;
deletesource casdata= 'CRISTAL_BALL.xlsx' incaslib='mkt' quiet;
run;
Hi @acordes you should be able to set the allFiles parameter to TRUE with the tables.fileInfo action
Hi @acordes you should be able to set the allFiles parameter to TRUE with the tables.fileInfo action
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.