<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Un in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284245#M58006</link>
    <description>&lt;P&gt;You should be able to google the relevant commands for UNIX.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.cyberciti.biz/faq/linux-howto-unzip-files-in-root-directory/" target="_blank"&gt;http://www.cyberciti.biz/faq/linux-howto-unzip-files-in-root-directory/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would first find the relevant command on my UNIX box and then implement it in SAS.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2016 05:01:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-14T05:01:33Z</dc:date>
    <item>
      <title>How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Unix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/283680#M57820</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract SAS datasets from a Zip file using SAS unix. I want to save these extracted datasets to a particular directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if Zip file is password protected then how to extract SAS datsets from Zip file to a specified directory in SAS UNIX environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing this to have automation in my code. Need help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 05:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/283680#M57820</guid>
      <dc:creator>avz645</dc:creator>
      <dc:date>2016-07-12T05:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Un</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/283683#M57823</link>
      <description>&lt;P&gt;Can you use X commands?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 05:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/283683#M57823</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-12T05:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Un</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/283722#M57834</link>
      <description>&lt;P&gt;I generally don't recommend just automating an extract. &amp;nbsp;To do things safely you should have a full process of handling the data, from where to save the zip, how to unpack, how to validate everything worked, how to validate the data against the import specification etc. &amp;nbsp;Just unpacking a zip doesn't provide much information of the process.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 09:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/283722#M57834</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-12T09:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Un</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284234#M58002</link>
      <description>&lt;P&gt;I can use X commands but i dont know how to use it in SAS (Unix environment).&lt;/P&gt;&lt;P&gt;If you have any solution it will be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 02:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284234#M58002</guid>
      <dc:creator>avz645</dc:creator>
      <dc:date>2016-07-14T02:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Un</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284235#M58003</link>
      <description>&lt;P&gt;Thanks for your inputs sir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i have a requirement like this and need to complete this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. If Zip file is saved on "C:\input\DS.zip" which contains Datasets then i wanted these datasets to be extracted at &amp;nbsp;"C:\output" folder.&lt;/P&gt;&lt;P&gt;I am able to do this on my windows PC using X command. but i have this requirement in UNIX. So i am not at all hands on UNIX. So doesnt know how to use X command in Unix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following code i have used to extract datasets in windows environment:&lt;/P&gt;&lt;P&gt;%LET PASS = Abc123;&lt;/P&gt;&lt;P&gt;x unzip -o -P &amp;amp;PASS "&lt;SPAN&gt;C:\input\DS.zip&lt;/SPAN&gt;" -d "&lt;SPAN&gt;C:\output&lt;/SPAN&gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any method to do the same in Unix environment. it will be great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thank you so much.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 03:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284235#M58003</guid>
      <dc:creator>avz645</dc:creator>
      <dc:date>2016-07-14T03:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Un</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284245#M58006</link>
      <description>&lt;P&gt;You should be able to google the relevant commands for UNIX.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.cyberciti.biz/faq/linux-howto-unzip-files-in-root-directory/" target="_blank"&gt;http://www.cyberciti.biz/faq/linux-howto-unzip-files-in-root-directory/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would first find the relevant command on my UNIX box and then implement it in SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 05:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284245#M58006</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-14T05:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip a zip file and extract SAS datasets from zip file to another directory using SAS Un</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284272#M58007</link>
      <description>&lt;P&gt;Well, I return to my post above, its is about the process, not coding. &amp;nbsp;You need to create a workable, validatable, and reproduceable process for the import of data. &amp;nbsp;You say if a file &amp;lt;xyz&amp;gt; contains &amp;lt;data&amp;gt; then &amp;lt;do&amp;gt;. &amp;nbsp;That is a process. &amp;nbsp;First you need a method of securely and surely recieving said file. &amp;nbsp;How will you do that in a consitent manner over the lifetime of the process? &amp;nbsp;Now what the file contains - what does data mean, XPT files, CSV, datasets etc., could be all number of things, where is the data import agreement which details what is contained, and some sort of spec to validate it against. &amp;nbsp;Then the &amp;lt;do&amp;gt; part is to publish it to production for others to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, if you want to save yourself the trouble just do it manually.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 08:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-a-zip-file-and-extract-SAS-datasets-from-zip-file/m-p/284272#M58007</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-14T08:54:13Z</dc:date>
    </item>
  </channel>
</rss>

