BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bhanuprakash
Obsidian | Level 7

Hi Team,

 

I have different types of files like SAS data set, transpose files, excel and zip files in one zip file(All_types_of_TPV_data.zip).

 

It is located in below path.

Path: C:\Users\BPrakash\Documents\input

libname in "C:\Users\BPrakash\Documents\input" ;

 

And I need to extract that to below location.

Path: C:\Users\BPrakash\Documents\output

libname out "C:\Users\BPrakash\Documents\output" ;

 

Can anyone please suggest the simple way to unzip the zip files.

 

Note:  I am using sas EG 9.4

1 ACCEPTED SOLUTION

Accepted Solutions
bhanuprakash
Obsidian | Level 7

Sorry for the confusion

 

I expected the below piece of code. 

 

x "unzip -oP <zip_password> -d C:/Users/BPrakash/Documents/output  C:/Users/BPrakash/Documents/input/ All_types_of_TPV_data.zip";

 

Thank you for your support. 

View solution in original post

4 REPLIES 4
bhanuprakash
Obsidian | Level 7

I have seen those posts before I posted this Topic and those are not helping me to unzip .zip file at a one shot.

Tom
Super User Tom
Super User

Do you know what command you would run to extract the contents of the ZIP file into a directory?

Also why does you subject line mention UNIX and the paths you show use WINDOWS syntax?

bhanuprakash
Obsidian | Level 7

Sorry for the confusion

 

I expected the below piece of code. 

 

x "unzip -oP <zip_password> -d C:/Users/BPrakash/Documents/output  C:/Users/BPrakash/Documents/input/ All_types_of_TPV_data.zip";

 

Thank you for your support. 

SAS Innovate 2025: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 2237 views
  • 0 likes
  • 3 in conversation