<?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: Unzipping a file in windows sas. Is it possible? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/249870#M47062</link>
    <description>&lt;P&gt;Hey RW9,&lt;/P&gt;&lt;P&gt;Thanks. But for unzipping there is seperate exe file wzunzip.exe.&lt;/P&gt;&lt;P&gt;for zipping wzzip.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Feb 2016 13:37:59 GMT</pubDate>
    <dc:creator>pessi</dc:creator>
    <dc:date>2016-02-13T13:37:59Z</dc:date>
    <item>
      <title>Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247843#M46484</link>
      <description>&lt;P&gt;I want to unzip a file in windows sas. Is it possible?&lt;BR /&gt;abc_clinc_20160204123456.gz&lt;/P&gt;&lt;P&gt;File might be txt,csv,.dat anything.&lt;BR /&gt;output should be like abc_clinc_20160204123456.txt/csv/dat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using below commands. but unable to do.&lt;/P&gt;&lt;P&gt;x &amp;nbsp;"gunzip \path\&lt;SPAN&gt;abc_clinc_20160204123456.gz";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%sysexec gunzip "\path\&lt;SPAN&gt;abc_clinc_20160204123456.gz";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't want to use unix.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 20:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247843#M46484</guid>
      <dc:creator>pessi</dc:creator>
      <dc:date>2016-02-03T20:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247847#M46486</link>
      <description>&lt;P&gt;Attach an example .gz file, if at all possible. Anybody who succeeds to unzip it in Windows SAS can tell you how he/she did it.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 20:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247847#M46486</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-02-03T20:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247853#M46489</link>
      <description>&lt;P&gt;You have a few options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If you have SAS 9.4 and want to read from file you don't need to unzip file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Use OS/Windows command to use win zip or 7zip to zip/unzip file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here re how to zip files using SAS and 7zip.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/9602105" target="_blank"&gt;https://gist.github.com/statgeek/9602105&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS blog on file name ZIP method&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247853#M46489</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-03T21:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247856#M46492</link>
      <description>&lt;P&gt;So just unzipping is not possible.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247856#M46492</guid>
      <dc:creator>pessi</dc:creator>
      <dc:date>2016-02-03T21:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247858#M46493</link>
      <description>&lt;P&gt;Yes it is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example above zips, but you could similarily unzip if you found the correct OS command. Assuming your allowed to pass OS commands. If you're not, then no, you can't unzip.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247858#M46493</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-03T21:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247915#M46516</link>
      <description>&lt;P&gt;All the programs that can do a zip from the commandline also have options to unzip. Just find the correct option in the documentation for your zipping utility.&lt;/P&gt;
&lt;P&gt;A quick compendium of the commandline utility for the 7zip package can be found here: &lt;A href="http://www.dotnetperls.com/7-zip-examples" target="_self"&gt;http://www.dotnetperls.com/7-zip-examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 07:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247915#M46516</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-04T07:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247927#M46521</link>
      <description>&lt;P&gt;Can I ask what you mean by this line:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"I don't want to use unix."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is your SAS installed on Windows or Unix? &amp;nbsp;If you are on Windows, then you don't need to use Unix, simply put Winzip or your favourite unzip package on your machine, then ue X command to pass through to the OS the necessary string to run it - assumes Winzip is installed to C:\Winzip:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;X ' "c:\Winzip\Winzip.exe" "&amp;lt;path to your file&amp;gt;&amp;lt;filename&amp;gt;.zip" "&amp;lt;path to output location&amp;gt;"';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This calls the program in Winzip with the two parameters file and output location. &amp;nbsp;If your installed on Unix, then you need to use a Unix equivalent. &amp;nbsp;SAS does not provide Third Party unpack tools (as yet anyways).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 09:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/247927#M46521</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-04T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/249870#M47062</link>
      <description>&lt;P&gt;Hey RW9,&lt;/P&gt;&lt;P&gt;Thanks. But for unzipping there is seperate exe file wzunzip.exe.&lt;/P&gt;&lt;P&gt;for zipping wzzip.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 13:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/249870#M47062</guid>
      <dc:creator>pessi</dc:creator>
      <dc:date>2016-02-13T13:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping a file in windows sas. Is it possible?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/249872#M47064</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71658"&gt;@pessi﻿&lt;/a&gt;&amp;nbsp;It depends, you can use various applications so the exact command can vary.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 14:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unzipping-a-file-in-windows-sas-Is-it-possible/m-p/249872#M47064</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-13T14:04:47Z</dc:date>
    </item>
  </channel>
</rss>

