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
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.
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/
I have seen those posts before I posted this Topic and those are not helping me to unzip .zip file at a one shot.
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?
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.