Hi guys,
I have a zip file with nested folders inside the zip file.
This is what I have managed to get so far. But for every zip file, the folder name highlighted in green is changing (do not have a fixed name).
FILENAME ziplib zip "&path.\&yyyymm.\Download_20210913164726.zip";
FILENAME readfile "%sysfunc(getoption(work))\TEST123.TXT";
data _null_;
infile ziplib("PRDMobius\BPS007R\20210903053521\TEST123.TXT");
file readfile ;
input;
put _infile_;
run;
What I would want is wildcard on the folder name as per below but clearly this isn't working. Anyone can help me with this? I have zero idea....
FILENAME ziplib zip "&path.\&yyyymm.\Download_20210913164726.zip";
FILENAME readfile "%sysfunc(getoption(work))\TEST123.TXT";
data _null_;
infile ziplib("PRDMobius\BPS007R\*\TEST123.TXT");
file readfile ;
input;
put _infile_;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.