<?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: Gzip Readin in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465007#M118581</link>
    <description>&lt;P&gt;options noxwait:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0xwt90ik8vxdrn13708w6n3nm4o.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0xwt90ik8vxdrn13708w6n3nm4o.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do please avoid coding all in shouting case, it makes code hard to read, and you can use the code window - its the {i} above post are - so that essential code formatting is retained.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 10:53:34 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-05-25T10:53:34Z</dc:date>
    <item>
      <title>Gzip Readin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465005#M118580</link>
      <description>&lt;P&gt;I am trying to read a pipe delimited file from gzip into SAS. I have used the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x "cd C:\Program Files (x86)\GnuWin32\bin"; /* to enable to run gzip command*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME READER PIPE "gzip -cd &amp;amp;PATH.\Rawdata\File.gz";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA &amp;amp;LIB..&amp;amp;DSN. (COMPRESS=YES) ;&lt;BR /&gt;INFILE READER DELIMITER = '|' TRUNCOVER DSD LRECL=32767 FIRSTOBS=1 OBS=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a command prompt window showing up and unless i close it, the program isn't running further. Is there any way to close the cmd windows closes automatically or is there any way to stop this window coming up?&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 10:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465005#M118580</guid>
      <dc:creator>Konakanchi</dc:creator>
      <dc:date>2018-05-25T10:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Gzip Readin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465007#M118581</link>
      <description>&lt;P&gt;options noxwait:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0xwt90ik8vxdrn13708w6n3nm4o.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0xwt90ik8vxdrn13708w6n3nm4o.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do please avoid coding all in shouting case, it makes code hard to read, and you can use the code window - its the {i} above post are - so that essential code formatting is retained.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 10:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465007#M118581</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-25T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Gzip Readin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465013#M118582</link>
      <description>&lt;P&gt;I have used Options Noxwait; in the beginning of the program and don't see any changes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 11:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465013#M118582</guid>
      <dc:creator>Konakanchi</dc:creator>
      <dc:date>2018-05-25T11:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Gzip Readin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465023#M118584</link>
      <description>&lt;P&gt;I would unzip the file before assigning it to a read.&amp;nbsp; So something like:&lt;/P&gt;
&lt;PRE&gt;/* Send command to expand files */
x "C:\Program Files (x86)\GnuWin32\bin\gzip.exe -cd -f "c:\somewhere\Rawdata\File.gz";

/* Now read in the extracted files */
data want;
  infile "c:\somewhere\Rawdata\thefile.txt" dlm="|" truncover dsd lrecl=32767;
  input ...;
run;&lt;/PRE&gt;
&lt;P&gt;Your code seems to be reading the command line rather than actually expanding the data then reading a file, which may also be the root of your problem.&amp;nbsp; I.e. you don't push piped command line strings directly into a read, infile expects a file, not an action.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 12:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465023#M118584</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-25T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Gzip Readin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465054#M118596</link>
      <description>&lt;P&gt;After you close the window, do you get the contents in your data step?&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Gzip-Readin/m-p/465054#M118596</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-25T13:23:32Z</dc:date>
    </item>
  </channel>
</rss>

