<?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: Fetching a data from URL/Website and storing into SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630875#M20870</link>
    <description>&lt;P&gt;I haven't tried it, but for a simple point-and-click for a few tables, this chrome extension might work for you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3183-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3183-2019.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other alternative is to scrape the URL, parse the HTML, etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 12:10:50 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2020-03-10T12:10:50Z</dc:date>
    <item>
      <title>Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630832#M20866</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for solution to fetch the data from Website and store it into SAS.&lt;/P&gt;&lt;P&gt;Below is the sample link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.banque-france.fr/statistiques/taux-et-cours/les-taux-de-change-salle-des-marches/autres-cours-de-leuro-fin-de-mois" target="_blank"&gt;https://www.banque-france.fr/statistiques/taux-et-cours/les-taux-de-change-salle-des-marches/autres-cours-de-leuro-fin-de-mois&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to fetch the currency table and store it into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea about fetching data from the website and store it into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick help would be appreciates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630832#M20866</guid>
      <dc:creator>alokpande28</dc:creator>
      <dc:date>2020-03-10T09:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630874#M20869</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/315908"&gt;@alokpande28&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say SAS, do you mean SAS Data set? I don't think you can insert data like using SQL directly like in database.&lt;/P&gt;
&lt;P&gt;One way I can think of is do fetch the data and store it in a csv or txt file and then invoke a SAS Code (Could be Stored process) to create a SAS dataset using the csv/txt.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630874#M20869</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-03-10T12:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630875#M20870</link>
      <description>&lt;P&gt;I haven't tried it, but for a simple point-and-click for a few tables, this chrome extension might work for you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3183-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3183-2019.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other alternative is to scrape the URL, parse the HTML, etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630875#M20870</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2020-03-10T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630876#M20871</link>
      <description>&lt;P&gt;Thank you for your response Anand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;One way I can think of is do fetch the data and store it in a csv or txt file and then invoke a SAS Code (Could be Stored process) to create a SAS dataset using the csv/txt ----.&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Can you please provide more detail on it? I want to implement complete solution in SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630876#M20871</guid>
      <dc:creator>alokpande28</dc:creator>
      <dc:date>2020-03-10T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630878#M20872</link>
      <description>&lt;P&gt;HI Quentin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response it seems like there is manually we can download but I am looking for the solution from the automotive prospective. There should not be any human intervention is needed&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630878#M20872</guid>
      <dc:creator>alokpande28</dc:creator>
      <dc:date>2020-03-10T12:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630883#M20875</link>
      <description>&lt;P&gt;Don't use the URL for the human readable page.&lt;/P&gt;
&lt;P&gt;Use the link from that page that returns a CSV file.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://webstat.banque-france.fr/fr/downloadFile.do?id=5385701&amp;amp;exportType=csv" target="_blank" rel="noopener"&gt;http://webstat.banque-france.fr/fr/downloadFile.do?id=5385701&amp;amp;exportType=csv&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv url 'http://webstat.banque-france.fr/fr/downloadFile.do?id=5385701&amp;amp;exportType=csv';
proc import datafile=csv dbms=csv out=want replace;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630883#M20875</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-10T12:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630884#M20876</link>
      <description>Thank you Tom for your response,&lt;BR /&gt;I am new to SAS, Can you please let me know how did you make this as URL to downloaded file, and what is the next step after downloading the file.&lt;BR /&gt;There are 2 more URL similar I want to use it for another reason&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630884#M20876</guid>
      <dc:creator>alokpande28</dc:creator>
      <dc:date>2020-03-10T12:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630886#M20877</link>
      <description>&lt;P&gt;You can make a fileref that uses the URL engine to get the CSV file.&amp;nbsp; Then use PROC IMPORT to convert the file into a dataset.&amp;nbsp; &amp;nbsp;You could also write your own data step to read the data instead of asking PROC IMPORT to guess how to define the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See code I added to previous answer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630886#M20877</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-10T12:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630887#M20878</link>
      <description>&lt;P&gt;To find the better URL what I did was&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Open the URL you posted.&lt;/P&gt;
&lt;P&gt;2) Click on the EN link in the top banner so I could see the page in English.&lt;/P&gt;
&lt;P&gt;3) Right click on the link that it had that said something like to see the data click &lt;STRONG&gt;HERE&lt;/STRONG&gt; and copy the link address.&lt;/P&gt;
&lt;P&gt;4) Paste the link into my SAS program.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/630887#M20878</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-10T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631196#M20890</link>
      <description>&lt;P&gt;Hi Tom Thanks for your info I have tried to import but&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error. (Import unsucessfull)&lt;/P&gt;&lt;P&gt;below is the log file details for more info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='Program';&lt;BR /&gt;4 %LET _CLIENTPROJECTPATH='';&lt;BR /&gt;5 %LET _CLIENTPROJECTNAME='';&lt;BR /&gt;6 %LET _SASPROGRAMFILE=;&lt;BR /&gt;7&lt;BR /&gt;8 ODS _ALL_ CLOSE;&lt;BR /&gt;9 OPTIONS DEV=ACTIVEX;&lt;BR /&gt;10 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;11 FILENAME EGSR TEMP;&lt;BR /&gt;12 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;13 STYLE=HtmlBlue&lt;BR /&gt;14 STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;15 NOGTITLE&lt;BR /&gt;16 NOGFOOTNOTE&lt;BR /&gt;17 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;18 ENCODING=UTF8&lt;BR /&gt;19 options(rolap="on")&lt;BR /&gt;20 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;21&lt;BR /&gt;22 GOPTIONS ACCESSIBLE;&lt;BR /&gt;23 filename csv url '&lt;A href="http://webstat.banque-france.fr/fr/downloadFile.do?id=5385701&amp;amp;exportType=csv" target="_blank"&gt;http://webstat.banque-france.fr/fr/downloadFile.do?id=5385701&amp;amp;exportType=csv&lt;/A&gt;';&lt;BR /&gt;24 proc import datafile=csv dbms=csv out=want replace;&lt;BR /&gt;25 run;&lt;/P&gt;&lt;P&gt;NOTE: Impossible d'ouvrir le catalogue de paramètres: SASUSER.PARMS.PARMS.SLIST en mode mise à jour. Les paramètres temporaires&lt;BR /&gt;seront enregistrés dans WORK.PARMS.PARMS.SLIST.&lt;BR /&gt;ERROR: The connection has timed out..&lt;BR /&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 21.20 secondes&lt;BR /&gt;cpu time 0.06 secondes&lt;BR /&gt;&lt;BR /&gt;26&lt;BR /&gt;27 --libname exbat excel ''&lt;BR /&gt;28&lt;BR /&gt;29 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;30 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;31 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;32 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;33 %LET _SASPROGRAMFILE=;&lt;BR /&gt;34&lt;BR /&gt;35 ;*';*";*/;quit;run;&lt;BR /&gt;36 ODS _ALL_ CLOSE;&lt;BR /&gt;37&lt;BR /&gt;38&lt;BR /&gt;39 QUIT; RUN;&lt;BR /&gt;40&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 10:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631196#M20890</guid>
      <dc:creator>alokpande28</dc:creator>
      <dc:date>2020-03-11T10:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631208#M20892</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The Web site might have timed out while trying to serve the file.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I think that data in that CSV file might differ from what's shown on the Web page.&amp;nbsp; You might need to find a different source of the data.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 11:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631208#M20892</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2020-03-11T11:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631510#M20942</link>
      <description>Thanks for your response, But there is no other source other than this website at this moment becasue which is something related to business.</description>
      <pubDate>Thu, 12 Mar 2020 10:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631510#M20942</guid>
      <dc:creator>alokpande28</dc:creator>
      <dc:date>2020-03-12T10:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631526#M20945</link>
      <description>&lt;P&gt;From the extra lines in your SAS log it looks like you are using some sort of front end to submit your SAS code (like SAS/Studio or Enterprise Guide).&amp;nbsp; Where is the computer that is running SAS?&amp;nbsp; Does it have access to the internet?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to download the files yourself first and have SAS read them as regular files.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 11:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631526#M20945</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-12T11:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631553#M20955</link>
      <description>Yes Tom, I am using SAS Enterprise Guide.&lt;BR /&gt;And it has the internet access as well from the same location.</description>
      <pubDate>Thu, 12 Mar 2020 13:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631553#M20955</guid>
      <dc:creator>alokpande28</dc:creator>
      <dc:date>2020-03-12T13:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a data from URL/Website and storing into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631554#M20956</link>
      <description>&lt;P&gt;So you can download other files using the URL engine?&lt;/P&gt;
&lt;P&gt;You might want to have your system team test to make sure they don't have some type of block on that website.&lt;/P&gt;
&lt;P&gt;Or just try again, perhaps the source server was just down when you tried.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did not have any trouble getting regular PC SAS to read the URL I posted as a CSV file.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fetching-a-data-from-URL-Website-and-storing-into-SAS/m-p/631554#M20956</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-12T13:40:34Z</dc:date>
    </item>
  </channel>
</rss>

