<?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: How to infile .gz files in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155150#M2694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I run your code under SAS 9.2. It works !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 12:19:02 GMT</pubDate>
    <dc:creator>MohammadFayaz</dc:creator>
    <dc:date>2013-11-25T12:19:02Z</dc:date>
    <item>
      <title>How to infile .gz files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155146#M2690</link>
      <description>&lt;P&gt;Hi every one .... please help me to use .gz file attached along with this.&lt;/P&gt;
&lt;P&gt;i need to use it by infile and i am working on windows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my code is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename hhh pipe "zcat filepath\test.txt.gz";
  
  data test;
    infile hhh firstobs = 2 expandtabs truncover;
    input @1    dd1 yymmdd10.
          @17   dd2 yymmdd10.
          @33   act $1.
          @41   udu 1.
          @49   LC $5.
          @57   cs $3.
          @65   sc $3.
          @73   div 1.
          @81   vol;
    format dd1 dateto date9.;
    area=trim(left(lc));
    if lc=' ' then error 'NO AREA LISTED';
    
  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log window:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Stderr output:
'zcat' is not recognized as an internal or external command,
operable program or batch file.
NOTE: 0 records were read from the infile HHH.
NOTE: The data set WORK.TEST has 0 observations and 9 variables.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.04 seconds&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155146#M2690</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2017-06-28T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to infile .gz files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155147#M2691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In filename, you can use PIPE to handle it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 11:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155147#M2691</guid>
      <dc:creator>MohammadFayaz</dc:creator>
      <dc:date>2013-11-25T11:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to infile .gz files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155148#M2692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is gzip installed on your Windows machine? Or any other zipping tool like 7zip?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever you're using I doubt that you just can call the tool using "zcat". In order for Windows to find it you must provide a path (absolute or relative) - or 'cd' to the directory where the executable "lives".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be below links will help:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/114760#114760"&gt;https://communities.sas.com/message/114760#114760&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/169460#169460"&gt;https://communities.sas.com/message/169460#169460&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 11:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155148#M2692</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-25T11:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to infile .gz files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155149#M2693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS 9.4 you can &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/65040/HTML/default/viewer.htm#n1dn0f61yfyzton1l2ngsa1clllr.htm"&gt;use the FILENAME statement, ZIP access method for this&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155149#M2693</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-11-25T12:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to infile .gz files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155150#M2694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I run your code under SAS 9.2. It works !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155150#M2694</guid>
      <dc:creator>MohammadFayaz</dc:creator>
      <dc:date>2013-11-25T12:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to infile .gz files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155151#M2695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes 7zip installed on my machine... still havining error&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Stderr output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'zcat' is not recognized as an internal or external command,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;operable program or batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: 0 records were read from the infile WANTED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.TEST has 0 observations and 9 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155151#M2695</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2013-11-25T12:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to infile .gz files</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155152#M2696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the zipping tool you want to use is 7zip then you need also to use the syntax for 7zip (zcat is Gzip syntax).&lt;/P&gt;&lt;P&gt;May be this will help you: &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 20:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-infile-gz-files/m-p/155152#M2696</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-25T20:44:06Z</dc:date>
    </item>
  </channel>
</rss>

