<?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 how to uncompress a file in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168790#M264064</link>
    <description>&lt;P&gt;i am using this library "LibABC" which contains many datasets in an unix server. some datasets in this library are zipped (for ex- file1.sas7bdat.Z) and some are unzipped(file2.sas7bdat).&lt;/P&gt;
&lt;P&gt;i am not able to access those zipped datasets from the server through my sas code.&lt;/P&gt;
&lt;P&gt;kindly help me how can i resolve this issue.&lt;/P&gt;
&lt;P&gt;if there is any code in sas to access zipped files from unix server share it with me&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 19:19:16 GMT</pubDate>
    <dc:creator>naziya</dc:creator>
    <dc:date>2017-07-11T19:19:16Z</dc:date>
    <item>
      <title>how to uncompress a file in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168790#M264064</link>
      <description>&lt;P&gt;i am using this library "LibABC" which contains many datasets in an unix server. some datasets in this library are zipped (for ex- file1.sas7bdat.Z) and some are unzipped(file2.sas7bdat).&lt;/P&gt;
&lt;P&gt;i am not able to access those zipped datasets from the server through my sas code.&lt;/P&gt;
&lt;P&gt;kindly help me how can i resolve this issue.&lt;/P&gt;
&lt;P&gt;if there is any code in sas to access zipped files from unix server share it with me&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 19:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168790#M264064</guid>
      <dc:creator>naziya</dc:creator>
      <dc:date>2017-07-11T19:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168791#M264065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/155-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/155-31.pdf&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 10:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168791#M264065</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-12-10T10:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168792#M264066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another possibility:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/phuse/2006/cc/cc01.pdf" title="http://www.lexjansen.com/phuse/2006/cc/cc01.pdf"&gt;http://www.lexjansen.com/phuse/2006/cc/cc01.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 13:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168792#M264066</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-12-10T13:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168793#M264067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not allowed to install any additional tools or software , the pdf u wanted me to refer suggests installation of some tools. So can you suggest if there is some piece of code to unzip files in sas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 06:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168793#M264067</guid>
      <dc:creator>naziya</dc:creator>
      <dc:date>2013-12-11T06:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168794#M264068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="825204" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally I do use bellow method to read data in zip format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 10pt;"&gt;FILENAME&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt; ZIPFILE SASZIPAM &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: purple; font-size: 10pt;"&gt;'C:\Users\sanjeev\Desktop\t.zip'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: Consolas;"&gt;DATA &lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt;mydata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 10pt;"&gt;INFILE&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt; ZIPFILE(t.txt) &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 10pt;"&gt;DLM&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: purple; font-size: 10pt;"&gt;','&lt;/SPAN&gt; &lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 10pt;"&gt;FIRSTOBS&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: Consolas;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: Consolas; background: white; color: blue; font-size: 10pt;"&gt;INPUT&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt; var1 $ var2 $ var3 $ var4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: Consolas;"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can apply the same for your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 06:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168794#M264068</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-12-11T06:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168795#M264069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had mixed experiences with SASZIPAM in the past. New with SAS 9.4 is a zip engine available (filename myfile zip ....).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done some "Googling" as I didn't know what the file extension .Z stands for and found the following &lt;A href="http://files.avanquest.com/file-extension-z/" title="http://files.avanquest.com/file-extension-z/"&gt;File Extension Z &amp;amp;laquo; Avanquest&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It appears that GZIP is eventually able to deal with it. Ideally the person who created the .Z file tells you what tool they've used and you're using the same to un-compress the data sets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact syntax you need to use - eg. for GZIP - is something you need to look up, but the general principle is as described under the link &lt;A __default_attr="4777" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; posted (&lt;A href="http://www2.sas.com/proceedings/sugi31/155-31.pdf" title="http://www2.sas.com/proceedings/sugi31/155-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/155-31.pdf&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 08:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168795#M264069</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-12-11T08:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168796#M264070</link>
      <description>&lt;P&gt;.Z is the extension used by the compress command, not ZIP or GZIP.&lt;/P&gt;
&lt;P&gt;Use the uncompress command to expand the file and then SAS will be able to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Editor's note: included some additional details from SAS support doc:&lt;/EM&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Here's a SAS Note with an example (which assumes the data was compressed via SAS and the compress command). It relies on FILENAME PIPE, which will require privileges to run shell commands (XCMD):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Creating the compressed data set: &lt;A href="http://support.sas.com/kb/25/199.html" target="_blank"&gt;http://support.sas.com/kb/25/199.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Reading the compressed data set: &lt;A href="http://support.sas.com/kb/25/214.html" target="_blank"&gt;http://support.sas.com/kb/25/214.html&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 19:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168796#M264070</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-11T19:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168797#M264071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 05:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168797#M264071</guid>
      <dc:creator>naziya</dc:creator>
      <dc:date>2013-12-12T05:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168798#M264072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is resolved for you then could you please mark this question as answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 08:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/168798#M264072</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-12-12T08:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to unzip a file in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/291558#M264073</link>
      <description>&lt;P&gt;I searched for the method for our purpose and the best answer I got for a dumb programer like me is from a SAS paper,&amp;nbsp;Paper 057-2012&lt;BR /&gt;A SAS® Macro to Zip and Unzip Files in MS Windows without Additional External&amp;nbsp;Data Archiving Software,&amp;nbsp;Kai Koo, Abbott Laboratories, Santa Clara, CA&lt;/P&gt;&lt;P&gt;The paper is attached if you don't want to search it online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can skip the concept of this method and just use its macro program. It becomes extremely easy and useful. Hope you like it.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 04:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-uncompress-a-file-in-SAS/m-p/291558#M264073</guid>
      <dc:creator>CCW</dc:creator>
      <dc:date>2016-08-14T04:40:58Z</dc:date>
    </item>
  </channel>
</rss>

