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. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 3003 views
  • 0 likes
  • 3 in conversation