<?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: Downloading Datasets from website in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Downloading-Datasets-from-website/m-p/357654#M2478</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/143026"&gt;@congvert&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I were you, I would use a program or utility to download the CSV file. You can download the file to your Shared Folder location. Then you can just process them (or import them) using SAS code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would:&lt;/P&gt;
&lt;P&gt;a. Download the file to the Shared Folder.&lt;/P&gt;
&lt;P&gt;b. Create a Snippett with the code to do the import.&lt;/P&gt;
&lt;P&gt;c. Either run this code on-demand or have it run in your Autoexec script if you'd like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for how to do the download, there are a number of utilities to do this, or you could use Perl or another utility language to carry it out. You could also use the SAS 'proc http' I believe, but that would not work in a Scheduled Task on the Windows side and you wouldn't have access to create a cron job on the Linux VM. That's what I'd suggest doing it on your Windows (or Mac) host.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this doesen't make sense. It sounds interesting!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Randy&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 19:42:15 GMT</pubDate>
    <dc:creator>RandyMullis</dc:creator>
    <dc:date>2017-05-10T19:42:15Z</dc:date>
    <item>
      <title>Downloading Datasets from website</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Downloading-Datasets-from-website/m-p/357265#M2470</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am new to and learning SAS programming. I am currently working on a project with sports analytics. I am able to download individual NBA players stats and save them in xls or csv format, then import them into my folders in SAS studio.&lt;/P&gt;&lt;P&gt;But these data set are updated daily on the website, and I don't want to through the process of downloading and importing on a daily basis.&lt;/P&gt;&lt;P&gt;Is there a way to automatically download these datasets, or access them from the website into SAS studio, where I can write code to perform analysis?&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 17:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Downloading-Datasets-from-website/m-p/357265#M2470</guid>
      <dc:creator>congvert</dc:creator>
      <dc:date>2017-05-09T17:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading Datasets from website</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Downloading-Datasets-from-website/m-p/357654#M2478</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/143026"&gt;@congvert&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I were you, I would use a program or utility to download the CSV file. You can download the file to your Shared Folder location. Then you can just process them (or import them) using SAS code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would:&lt;/P&gt;
&lt;P&gt;a. Download the file to the Shared Folder.&lt;/P&gt;
&lt;P&gt;b. Create a Snippett with the code to do the import.&lt;/P&gt;
&lt;P&gt;c. Either run this code on-demand or have it run in your Autoexec script if you'd like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for how to do the download, there are a number of utilities to do this, or you could use Perl or another utility language to carry it out. You could also use the SAS 'proc http' I believe, but that would not work in a Scheduled Task on the Windows side and you wouldn't have access to create a cron job on the Linux VM. That's what I'd suggest doing it on your Windows (or Mac) host.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this doesen't make sense. It sounds interesting!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Randy&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 19:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Downloading-Datasets-from-website/m-p/357654#M2478</guid>
      <dc:creator>RandyMullis</dc:creator>
      <dc:date>2017-05-10T19:42:15Z</dc:date>
    </item>
  </channel>
</rss>

