<?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 winzip file in SAS linux in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55387#M11784</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
filename statment with pipe read zipped file on the fly ,without creat temp file/s.&lt;BR /&gt;
'unzip -p /test/temp1.zip temp1.txt' is a linux command pipe contens of temp1.txt(zipped  file ) in standart output (stdout) &lt;BR /&gt;
&lt;BR /&gt;
you can write data step like your zipped file wasn't zipped   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
lu</description>
    <pubDate>Fri, 17 Jul 2009 17:56:43 GMT</pubDate>
    <dc:creator>lu</dc:creator>
    <dc:date>2009-07-17T17:56:43Z</dc:date>
    <item>
      <title>Reading winzip file in SAS linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55383#M11780</link>
      <description>Hi everyone,&lt;BR /&gt;
                    I have a winzip file, i want to read using sas linux.  I am geting error. &lt;BR /&gt;
 code: &lt;BR /&gt;
&lt;BR /&gt;
  filename zip1 saszipam '/test/temp1.zip ';&lt;BR /&gt;
  DATA unzip1;&lt;BR /&gt;
  INFILE zip1(temp1.txt)  MISSOVER lrecl=32767  obs = 2;&lt;BR /&gt;
  input temp $60;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
Error.&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Invalid data length.&lt;BR /&gt;
FATAL: Unrecoverable I/O error detected in the execution of the DATA step &lt;BR /&gt;
&lt;BR /&gt;
      Please guide me how i can read the data.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Thu, 16 Jul 2009 20:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55383#M11780</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-07-16T20:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading winzip file in SAS linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55384#M11781</link>
      <description>Hello - straight from the SAS-hosted tech notes documentation at &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  here is a document reference I found useful for your circumstances.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Usage Note 31244: SASZIPAM access method - use at your own risk.&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/31/244.html" target="_blank"&gt;http://support.sas.com/kb/31/244.html&lt;/A&gt;</description>
      <pubDate>Fri, 17 Jul 2009 02:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55384#M11781</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-17T02:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reading winzip file in SAS linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55385#M11782</link>
      <description>HI, Amit&lt;BR /&gt;
saszipam work only  on windows hosts(SAS use dll ).&lt;BR /&gt;
&lt;BR /&gt;
to read zip file on sas linux you can use pipe in filename statment.&lt;BR /&gt;
something like &lt;BR /&gt;
&lt;BR /&gt;
filename zip1 pipe 'unzip -p  /test/temp1.zip temp1.txt';&lt;BR /&gt;
&lt;BR /&gt;
lu.</description>
      <pubDate>Fri, 17 Jul 2009 14:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55385#M11782</guid>
      <dc:creator>lu</dc:creator>
      <dc:date>2009-07-17T14:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading winzip file in SAS linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55386#M11783</link>
      <description>Hi Lu,&lt;BR /&gt;
          Thanks for your response. I have a few questions.&lt;BR /&gt;
&lt;BR /&gt;
        What will your statement do, will it unzip and create a text file.&lt;BR /&gt;
&lt;BR /&gt;
     filename zip1 pipe 'unzip -p /test/temp1.zip temp1.txt';&lt;BR /&gt;
  &lt;BR /&gt;
   These is what I would like to do:&lt;BR /&gt;
&lt;BR /&gt;
1&amp;gt; Read one observation from the zipped file, to get the variables. ( they are separated by |)&lt;BR /&gt;
2&amp;gt; Then Create a SAS dataset from the zipped file&lt;BR /&gt;
&lt;BR /&gt;
       Thanks for all your help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Fri, 17 Jul 2009 17:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55386#M11783</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-07-17T17:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading winzip file in SAS linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55387#M11784</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
filename statment with pipe read zipped file on the fly ,without creat temp file/s.&lt;BR /&gt;
'unzip -p /test/temp1.zip temp1.txt' is a linux command pipe contens of temp1.txt(zipped  file ) in standart output (stdout) &lt;BR /&gt;
&lt;BR /&gt;
you can write data step like your zipped file wasn't zipped   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
lu</description>
      <pubDate>Fri, 17 Jul 2009 17:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-winzip-file-in-SAS-linux/m-p/55387#M11784</guid>
      <dc:creator>lu</dc:creator>
      <dc:date>2009-07-17T17:56:43Z</dc:date>
    </item>
  </channel>
</rss>

