<?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: Reading gzip files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/16033#M2215</link>
    <description>Ahh, piping.&lt;BR /&gt;
Never used it before.&lt;BR /&gt;
Now we have a reason to.&lt;BR /&gt;
Thanks Pete.&lt;BR /&gt;
&lt;BR /&gt;
I was hoping that SAS/ACCESS for PC files would allow&lt;BR /&gt;
[pre]&lt;BR /&gt;
FILENAME my_gzip ZIP ".... .gz";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
so that we could then do something like&lt;BR /&gt;
[pre]&lt;BR /&gt;
infile my_gzip(zipped_file);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
But no.&lt;BR /&gt;
Oh well.&lt;BR /&gt;
&lt;BR /&gt;
Dreaming ...</description>
    <pubDate>Wed, 07 May 2008 19:01:31 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-05-07T19:01:31Z</dc:date>
    <item>
      <title>Reading gzip files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/16031#M2213</link>
      <description>My turn to ask something.&lt;BR /&gt;
&lt;BR /&gt;
Can SAS read a gzipped file directly?&lt;BR /&gt;
I mean with an infile - input statement pair, not through the set command.&lt;BR /&gt;
&lt;BR /&gt;
We have a number of text files that are zipped up that we need to be able to read.&lt;BR /&gt;
The files used to go to a Unix server where cron'd shell scripts controlled the files being uncompressed and compressed, to expose the most recent two days.&lt;BR /&gt;
Now, the files are being stored on a Windows server, controlled by different people and processes.  So, it would be best for us to use SAS to grab the file directly, and read it from the compressed/gzipped form.&lt;BR /&gt;
&lt;BR /&gt;
Humans are able to read the files directly through WinZIP, which acts as a intermediary between the zipped file and notepad or wordpad.&lt;BR /&gt;
&lt;BR /&gt;
I'd ask tech support, but I'd rather not wait a week for someone to get back to me.</description>
      <pubDate>Wed, 07 May 2008 15:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/16031#M2213</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-07T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading gzip files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/16032#M2214</link>
      <description>read through a filename pipe.&lt;BR /&gt;
See the sample I found among Support.sas.com, knowledge base, Samples and Notes&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/25/206.html" target="_blank"&gt;http://support.sas.com/kb/25/206.html&lt;/A&gt;&lt;BR /&gt;
entitled&lt;BR /&gt;
25206 - SAMPLE: Create/Read a Unix compressed file from SAS</description>
      <pubDate>Wed, 07 May 2008 16:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/16032#M2214</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-07T16:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading gzip files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/16033#M2215</link>
      <description>Ahh, piping.&lt;BR /&gt;
Never used it before.&lt;BR /&gt;
Now we have a reason to.&lt;BR /&gt;
Thanks Pete.&lt;BR /&gt;
&lt;BR /&gt;
I was hoping that SAS/ACCESS for PC files would allow&lt;BR /&gt;
[pre]&lt;BR /&gt;
FILENAME my_gzip ZIP ".... .gz";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
so that we could then do something like&lt;BR /&gt;
[pre]&lt;BR /&gt;
infile my_gzip(zipped_file);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
But no.&lt;BR /&gt;
Oh well.&lt;BR /&gt;
&lt;BR /&gt;
Dreaming ...</description>
      <pubDate>Wed, 07 May 2008 19:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/16033#M2215</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-07T19:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading gzip files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/457285#M115923</link>
      <description>&lt;P&gt;I see this is an old thread, but it appeared early in my search results. So I just wanted to share a 2017 blog post,&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2017/10/10/reading-writing-gzip-files-sas/" target="_self"&gt;Reading and writing GZIP files with SAS&lt;/A&gt; by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt; that answers the question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...and I want to respond to the jab at tech support taking a week: whenever I've submitted a track with SAS Tech Support, they've replied within 24 hours (not including weekends and holidays), as stated in their automated ticket email. I've been very happy with how responsive they've been, even if there's a little back-and-forth needed.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-gzip-files/m-p/457285#M115923</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2018-04-25T13:56:41Z</dc:date>
    </item>
  </channel>
</rss>

