<?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 reading in zipped datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reading-in-zipped-datasets/m-p/44470#M9104</link>
    <description>I have several datasets stored in a zip file. Usually I unzip the datasets and place them into my library, and read them in through the library reference. Is there a way to access the zipped files directly through SAS? &lt;BR /&gt;
&lt;BR /&gt;
I tried the following code:&lt;BR /&gt;
&lt;BR /&gt;
     filename in saszipam 'C:\SAS_2008_01_02.zip' ;&lt;BR /&gt;
&lt;BR /&gt;
     data follow;&lt;BR /&gt;
         infile in(follow.sas);&lt;BR /&gt;
     run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And got the following error message in my log:&lt;BR /&gt;
&lt;BR /&gt;
ERROR:  Read Access Violation In Task [ DATASTEP )&lt;BR /&gt;
Exception occurred at (62A22BE2)&lt;BR /&gt;
Task Traceback&lt;BR /&gt;
Address   Frame     (DBGHELP API Version 4.0 rev 5)&lt;BR /&gt;
62A22BE2  057CFC18  saszipam:mcn_main+0x1BE2&lt;BR /&gt;
62A22F6F  057CFCE4  saszipam:mcn_main+0x1F6F&lt;BR /&gt;
67990076  057CFD20  sasxkern:mcn_main+0x3F076&lt;BR /&gt;
6723F48A  057CFECC  sasdsx:mcn_main+0xE48A&lt;BR /&gt;
6723EE73  057CFEF8  sasdsx:mcn_main+0xDE73&lt;BR /&gt;
6723142A  057CFF3C  sasdsx:mcn_main+0x42A&lt;BR /&gt;
673115B0  057CFF88  sasds:mcn_main+0x5B0&lt;BR /&gt;
67E228F2  057CFFA0  sashost:Main+0xBE72&lt;BR /&gt;
67E26A00  057CFFB4  sashost:Main+0xFF80&lt;BR /&gt;
7C80B683  057CFFEC  kernel32:GetModuleFileNameA+0x1B4&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
WARNING: The data set WORK.FOLLOW may be incomplete.  When this step was stopped there were 0&lt;BR /&gt;
         observations and 0 variables.&lt;BR /&gt;
WARNING: Data set WORK.FOLLOW was not replaced because this step was stopped.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.77 seconds&lt;BR /&gt;
      cpu time            0.06 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you!!</description>
    <pubDate>Tue, 09 Sep 2008 13:40:51 GMT</pubDate>
    <dc:creator>sassygrl</dc:creator>
    <dc:date>2008-09-09T13:40:51Z</dc:date>
    <item>
      <title>reading in zipped datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-in-zipped-datasets/m-p/44470#M9104</link>
      <description>I have several datasets stored in a zip file. Usually I unzip the datasets and place them into my library, and read them in through the library reference. Is there a way to access the zipped files directly through SAS? &lt;BR /&gt;
&lt;BR /&gt;
I tried the following code:&lt;BR /&gt;
&lt;BR /&gt;
     filename in saszipam 'C:\SAS_2008_01_02.zip' ;&lt;BR /&gt;
&lt;BR /&gt;
     data follow;&lt;BR /&gt;
         infile in(follow.sas);&lt;BR /&gt;
     run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And got the following error message in my log:&lt;BR /&gt;
&lt;BR /&gt;
ERROR:  Read Access Violation In Task [ DATASTEP )&lt;BR /&gt;
Exception occurred at (62A22BE2)&lt;BR /&gt;
Task Traceback&lt;BR /&gt;
Address   Frame     (DBGHELP API Version 4.0 rev 5)&lt;BR /&gt;
62A22BE2  057CFC18  saszipam:mcn_main+0x1BE2&lt;BR /&gt;
62A22F6F  057CFCE4  saszipam:mcn_main+0x1F6F&lt;BR /&gt;
67990076  057CFD20  sasxkern:mcn_main+0x3F076&lt;BR /&gt;
6723F48A  057CFECC  sasdsx:mcn_main+0xE48A&lt;BR /&gt;
6723EE73  057CFEF8  sasdsx:mcn_main+0xDE73&lt;BR /&gt;
6723142A  057CFF3C  sasdsx:mcn_main+0x42A&lt;BR /&gt;
673115B0  057CFF88  sasds:mcn_main+0x5B0&lt;BR /&gt;
67E228F2  057CFFA0  sashost:Main+0xBE72&lt;BR /&gt;
67E26A00  057CFFB4  sashost:Main+0xFF80&lt;BR /&gt;
7C80B683  057CFFEC  kernel32:GetModuleFileNameA+0x1B4&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
WARNING: The data set WORK.FOLLOW may be incomplete.  When this step was stopped there were 0&lt;BR /&gt;
         observations and 0 variables.&lt;BR /&gt;
WARNING: Data set WORK.FOLLOW was not replaced because this step was stopped.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.77 seconds&lt;BR /&gt;
      cpu time            0.06 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you!!</description>
      <pubDate>Tue, 09 Sep 2008 13:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-in-zipped-datasets/m-p/44470#M9104</guid>
      <dc:creator>sassygrl</dc:creator>
      <dc:date>2008-09-09T13:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: reading in zipped datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-in-zipped-datasets/m-p/44471#M9105</link>
      <description>You can read raw data from WinZip files.  See &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/26/011.html" target="_blank"&gt;http://support.sas.com/kb/26/011.html&lt;/A&gt; .  This uses the PIPE option which still requires disk storage, but it is immediately deleted.&lt;BR /&gt;
&lt;BR /&gt;
Similarly, this SUGI paper has examples&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/forum2007/005-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/005-2007.pdf&lt;/A&gt; , though it extracts the files to temporary storage.&lt;BR /&gt;
&lt;BR /&gt;
I doubt that you can read SAS datasets (.sas7bdat extensions) that way because they need to be direct access.</description>
      <pubDate>Tue, 09 Sep 2008 14:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-in-zipped-datasets/m-p/44471#M9105</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-09-09T14:13:13Z</dc:date>
    </item>
  </channel>
</rss>

