<?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: Can I input zipped asc file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97880#M20630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. But I still don't know how to write the code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Aug 2012 01:41:11 GMT</pubDate>
    <dc:creator>Linlin</dc:creator>
    <dc:date>2012-08-19T01:41:11Z</dc:date>
    <item>
      <title>Can I input zipped asc file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97878#M20628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&amp;nbsp; - Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 00:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97878#M20628</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-08-19T00:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I input zipped asc file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97879#M20629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like below should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename &amp;lt;fileref&amp;gt; pipe '&amp;lt;unzip command eg. using 7zip or whatever is available&amp;gt;';&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile &amp;lt;fileref&amp;gt; ...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input...;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 01:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97879#M20629</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-08-19T01:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I input zipped asc file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97880#M20630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. But I still don't know how to write the code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 01:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97880#M20630</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-08-19T01:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I input zipped asc file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97881#M20631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How I would approach this:&lt;/P&gt;&lt;P&gt;1. Using a command prompt get the unzip command right&lt;/P&gt;&lt;P&gt;2. Unzip the file and get the data step right&lt;/P&gt;&lt;P&gt;3. Paste the unzip command into the filename statement (you will have to get the quoting right here).&lt;/P&gt;&lt;P&gt;4. In the infile statement use the fileref so that it points to the pipe where the filename pipe writes to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything here with examples:&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 01:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97881#M20631</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-08-19T01:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I input zipped asc file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97882#M20632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the 7zip help file: the command line should be something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7z x yourFile.zip -so&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;7z&lt;/STRONG&gt; is the name of the command line version of 7zip,&lt;STRONG&gt; x&lt;/STRONG&gt; means extract and &lt;STRONG&gt;-so&lt;/STRONG&gt; means write to standard output stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 01:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97882#M20632</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-08-19T01:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I input zipped asc file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97883#M20633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Linlin&lt;/P&gt;&lt;P&gt;I possibly don't understand what the "asc" in your question stands for. But the main approach remains: You use a non-SAS command to bring the archive into a shape where you can read it with SAS and you write this to a pipe which you then access via SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 02:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97883#M20633</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-08-19T02:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I input zipped asc file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97884#M20634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PG and Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&amp;nbsp; - Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 02:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-input-zipped-asc-file/m-p/97884#M20634</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-08-19T02:16:10Z</dc:date>
    </item>
  </channel>
</rss>

