Hello,
I am using a unix command to unzip a file save on our unix server. Unfortunately, the file contains a folder and a subfolder which does not respect the folder name convention of sas and unix as well.
x %sysfunc(quote(unzip /finsys/...safety_purpose/report.zip -d /finsys/...safety_purpose/report)));
What I would like to do, it's to replace this unix command by something that will give more information into the log file and to have the capability to unzip this file exactly where I want without the imbeded folder structure found into the zip file
I would approach it by working on the unix command (or script) to do what you want. Then you can use X to invoke it.
For SAS approach, see e.g. Chris Hemedinger's blog post: https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in... .
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.