BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

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

1 REPLY 1
Quentin
Super User

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... .

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1056 views
  • 0 likes
  • 2 in conversation