<?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 import a sas7bdat file being zipped to SAS and work on it? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-file-being-zipped-to-SAS-and-work-on-it/m-p/722539#M224057</link>
    <description>&lt;P&gt;Instead of using an external utility, test the COMPRESS=YES and COMPRESS=BINARY dataset options.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 08:03:16 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-03-01T08:03:16Z</dc:date>
    <item>
      <title>How to import a sas7bdat file being zipped to SAS and work on it?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-file-being-zipped-to-SAS-and-work-on-it/m-p/722530#M224052</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we know that sometimes the dataset is too big, so I have some zipped sas7bdat datasets (with &lt;STRONG&gt;.gz&lt;/STRONG&gt; tail). I did a search to find a way to import the zip file thAT I can work with this sas7bdat file without losing too much space in the hard drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I found &lt;A href="https://stackoverflow.com/questions/57079033/how-to-import-a-zipped-sas7bdat-file" target="_self"&gt;this link&lt;/A&gt; saying that I need to unzip the zip file. However, I also find &lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/" target="_self"&gt;another SAS document&lt;/A&gt; saying that we can import the dataset from ipped file.&lt;/P&gt;&lt;P&gt;Before digging further, I want to ask if I follow the later document, if I read the data from the zipped file directly, whether SAS also need to unzip this file and then cost the memory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 05:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-file-being-zipped-to-SAS-and-work-on-it/m-p/722530#M224052</guid>
      <dc:creator>ResoluteCarbon</dc:creator>
      <dc:date>2021-03-01T05:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a sas7bdat file being zipped to SAS and work on it?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-file-being-zipped-to-SAS-and-work-on-it/m-p/722532#M224054</link>
      <description>&lt;P&gt;So first thing is that you have GZIP file, not a ZIP file.&amp;nbsp; A ZIP file is an archive that can contain multiple individual files.&amp;nbsp; A file that has been compressed with GZIP is just a single file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the ZIP filename engine to read a GZIP file, but you cannot at the same time try to access the uncompressed file as a SAS dataset.&amp;nbsp; So you will have to uncompress the file first before you can read the data out of it.&amp;nbsp; You can use your local operating system command to uncompress the file or you can use SAS code to first uncompress the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is space is a major issue then it might work better to have a text file, like a CSV file.&amp;nbsp; Then you&amp;nbsp; could read the lines of text directly from the compressed version using the ZIP filename engine with the GZIP option.&amp;nbsp; But then you would need to have a program that knows what columns the text files has and how to read them as there is no place in a CSV file to store the metadata about the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 06:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-file-being-zipped-to-SAS-and-work-on-it/m-p/722532#M224054</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-01T06:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a sas7bdat file being zipped to SAS and work on it?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-file-being-zipped-to-SAS-and-work-on-it/m-p/722539#M224057</link>
      <description>&lt;P&gt;Instead of using an external utility, test the COMPRESS=YES and COMPRESS=BINARY dataset options.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 08:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-file-being-zipped-to-SAS-and-work-on-it/m-p/722539#M224057</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-01T08:03:16Z</dc:date>
    </item>
  </channel>
</rss>

