- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
With SAS 9.4 you've got a zip engine. The following two blogs should provide all the direction you need.
https://blogs.sas.com/content/sasdummy/2017/09/08/filename-zip-details/
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have seen those posts before I posted this Topic and those are not helping me to unzip .zip file at a one shot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.