New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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