<?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 file.tsv.gz in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575862#M162950</link>
    <description>What version of SAS do you have, the exact version. GZ does mean zipped, via GZIP, later versions of SAS support this format and you can read the text file directly from the zipped file. But I think it's literally the latest version, SAS 9.4M6. If you have an older version you need to uncompress the file to read it first.</description>
    <pubDate>Tue, 23 Jul 2019 15:36:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-23T15:36:50Z</dc:date>
    <item>
      <title>reading file.tsv.gz in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575850#M162945</link>
      <description>&lt;P&gt;I have a sas file that is in&amp;nbsp;file.tsv.gz, any ideas how to open this file in SAS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575850#M162945</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2019-07-23T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: reading file.tsv.gz in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575853#M162946</link>
      <description>&lt;P&gt;What is in the file?&lt;/P&gt;
&lt;P&gt;Why not run a little SAS program to look at the beginning of the file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'file.tsv.gz' zip gzip obs=10;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575853#M162946</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-23T15:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: reading file.tsv.gz in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575855#M162947</link>
      <description>&lt;P&gt;If you use "&lt;SPAN&gt;tsv.gz" as search term right here then you'll find a few discussions which might help you to proceed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575855#M162947</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-07-23T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: reading file.tsv.gz in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575856#M162948</link>
      <description>&lt;P&gt;Thank you for the prompt response. The file contain a very large data. I don't think the file is zipped but I might be wrong. Running the statement you provided resulted in the following error "&amp;nbsp;ERROR 23-2: Invalid option name GZIP"&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575856#M162948</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2019-07-23T15:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: reading file.tsv.gz in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575862#M162950</link>
      <description>What version of SAS do you have, the exact version. GZ does mean zipped, via GZIP, later versions of SAS support this format and you can read the text file directly from the zipped file. But I think it's literally the latest version, SAS 9.4M6. If you have an older version you need to uncompress the file to read it first.</description>
      <pubDate>Tue, 23 Jul 2019 15:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575862#M162950</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-23T15:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: reading file.tsv.gz in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575871#M162956</link>
      <description>&lt;P&gt;You will need to use a more recent version of SAS to have the GZIP option.&lt;/P&gt;
&lt;P&gt;You will need to unzip the file outside of SAS then.&amp;nbsp; Use gunzip (or gzip -d option). Or some other tool that knows how to expand GZIP format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can run operating system commands from within SAS you can do it on the fly if you want with the PIPE filename engine.&lt;/P&gt;
&lt;P&gt;Is it easy on unix.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile 'gzip -cd file.tsv.gz' pipe obs=10;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-file-tsv-gz-in-SAS/m-p/575871#M162956</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-23T15:58:30Z</dc:date>
    </item>
  </channel>
</rss>

