<?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: Get zip files from website and importing them into SAS in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Get-zip-files-from-website-and-importing-them-into-SAS/m-p/500871#M6320</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236093"&gt;@mjcm0030&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are useful links for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0bdg5vmrpyi7jn1pbgbje2atoov.htm&amp;amp;locale=en" target="_self"&gt;PROC HTTP&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p103pi2vrzn6qhn1e8alrs01jrb7.htm&amp;amp;locale=en" target="_self"&gt;FILENAME Statement, URL Access Method&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n1dn0f61yfyzton1l2ngsa1clllr.htm&amp;amp;locale=en" target="_self"&gt;FILENAME Statement, ZIP Access Method&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also, just in case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0eaefc2jero0on1armt43eywjmw.htm&amp;amp;locale=en" target="_self"&gt;S3 Procedure&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 02 Oct 2018 17:58:01 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2018-10-02T17:58:01Z</dc:date>
    <item>
      <title>Get zip files from website and importing them into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Get-zip-files-from-website-and-importing-them-into-SAS/m-p/500861#M6319</link>
      <description>&lt;P&gt;Hi, I'm new to SAS and I'm wondering how could I download a set of datasets in zips from a website, and then importing them to SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The website is&amp;nbsp;&lt;A href="https://s3.amazonaws.com/tripdata/index.html" target="_blank"&gt;https://s3.amazonaws.com/tripdata/index.html&lt;/A&gt;, and can be access like:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://s3.amazonaws.com/tripdata/" target="_blank"&gt;https://s3.amazonaws.com/tripdata/&lt;/A&gt; + id of every file (example,&amp;nbsp;&lt;A href="https://s3.amazonaws.com/tripdata/201306-citibike-tripdata.zip" target="_blank"&gt;201306-citibike-tripdata.zip&lt;/A&gt;) and always repeats the name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, i have the code I'm using, but it only gets 1 zip, decompress, and import into a table. I want it to do it with every file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Get-zip-files-from-website-and-importing-them-into-SAS/m-p/500861#M6319</guid>
      <dc:creator>mjcm0030</dc:creator>
      <dc:date>2018-10-02T17:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get zip files from website and importing them into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Get-zip-files-from-website-and-importing-them-into-SAS/m-p/500871#M6320</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236093"&gt;@mjcm0030&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are useful links for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0bdg5vmrpyi7jn1pbgbje2atoov.htm&amp;amp;locale=en" target="_self"&gt;PROC HTTP&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p103pi2vrzn6qhn1e8alrs01jrb7.htm&amp;amp;locale=en" target="_self"&gt;FILENAME Statement, URL Access Method&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n1dn0f61yfyzton1l2ngsa1clllr.htm&amp;amp;locale=en" target="_self"&gt;FILENAME Statement, ZIP Access Method&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also, just in case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0eaefc2jero0on1armt43eywjmw.htm&amp;amp;locale=en" target="_self"&gt;S3 Procedure&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Get-zip-files-from-website-and-importing-them-into-SAS/m-p/500871#M6320</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-10-02T17:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get zip files from website and importing them into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Get-zip-files-from-website-and-importing-them-into-SAS/m-p/500882#M6321</link>
      <description>&lt;P&gt;You most definitely can do this, but you may need a loop or macro.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of how to get the list of files and to access them:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, get it working for one file then convert that to a macro. Use methods above to get all files listed and then call the macro once for each file.&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/236093"&gt;@mjcm0030&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I'm new to SAS and I'm wondering how could I download a set of datasets in zips from a website, and then importing them to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The website is&amp;nbsp;&lt;A href="https://s3.amazonaws.com/tripdata/index.html" target="_blank"&gt;https://s3.amazonaws.com/tripdata/index.html&lt;/A&gt;, and can be access like:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://s3.amazonaws.com/tripdata/" target="_blank"&gt;https://s3.amazonaws.com/tripdata/&lt;/A&gt; + id of every file (example,&amp;nbsp;&lt;A href="https://s3.amazonaws.com/tripdata/201306-citibike-tripdata.zip" target="_blank"&gt;201306-citibike-tripdata.zip&lt;/A&gt;) and always repeats the name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here, i have the code I'm using, but it only gets 1 zip, decompress, and import into a table. I want it to do it with every file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Get-zip-files-from-website-and-importing-them-into-SAS/m-p/500882#M6321</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-02T18:21:16Z</dc:date>
    </item>
  </channel>
</rss>

