<?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 all SAS dataset from Zip File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689027#M209426</link>
    <description>If you google the topic with Chris Hemidinger name you'll find several fully worked examples in his blog posts, including some macros to help automate the tasks..</description>
    <pubDate>Mon, 05 Oct 2020 22:32:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-10-05T22:32:45Z</dc:date>
    <item>
      <title>Reading all SAS dataset from Zip File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689022#M209422</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to read zip file which has lot of sas datasets. I want to extract all this sas datasets at once and placed them in a folder.&lt;/P&gt;&lt;P&gt;I am successful in reading the content of zip file but not sure how to extract sas datasets from this zip file and placed them in a different folder. Below is the code which reads content of zip file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename inzip ZIP "x:\test.zip";&lt;/P&gt;&lt;P&gt;DATA FLS(KEEP=MEMNAME);&lt;BR /&gt;FILENAME inzip ZIP "x:\test.zip";&lt;BR /&gt;LENGTH MEMNAME $200;&lt;BR /&gt;FID=DOPEN("inzip");&lt;BR /&gt;IF FID=0 THEN&lt;BR /&gt;STOP;&lt;BR /&gt;MEMCOUNT=DNUM(FID);&lt;BR /&gt;DO I=1 TO MEMCOUNT;&lt;BR /&gt;MEMNAME=DREAD(FID,I);&lt;BR /&gt;OUTPUT;&lt;BR /&gt;END;&lt;BR /&gt;RC=DCLOSE(FID);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc print data = fls ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 22:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689022#M209422</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2020-10-05T22:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reading all SAS dataset from Zip File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689027#M209426</link>
      <description>If you google the topic with Chris Hemidinger name you'll find several fully worked examples in his blog posts, including some macros to help automate the tasks..</description>
      <pubDate>Mon, 05 Oct 2020 22:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689027#M209426</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-05T22:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading all SAS dataset from Zip File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689028#M209427</link>
      <description>&lt;P&gt;I could not fine anything which specifically does this task. I example of reading excel file and reading one dataset at a time but nothing related to what I need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 22:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689028#M209427</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2020-10-05T22:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading all SAS dataset from Zip File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689030#M209429</link>
      <description>&lt;P&gt;My approach to something like this would be to&lt;/P&gt;
&lt;P&gt;1) us appropriate tool to unzip to desired location with system tools.&lt;/P&gt;
&lt;P&gt;2) assign a library to that location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 22:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689030#M209429</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-05T22:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading all SAS dataset from Zip File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689055#M209443</link>
      <description>&lt;P&gt;I'd recommend taking the example that does one file and figure out how to generalize it to all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X commands definitely work though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91198"&gt;@Leo9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I could not fine anything which specifically does this task. I example of reading excel file and &lt;FONT color="#800080"&gt;&lt;STRONG&gt;reading one dataset at a time&lt;/STRONG&gt; &lt;/FONT&gt;but nothing related to what I need.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 00:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-all-SAS-dataset-from-Zip-File/m-p/689055#M209443</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-06T00:57:43Z</dc:date>
    </item>
  </channel>
</rss>

