<?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: Error while reading file from website in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705328#M216340</link>
    <description>&lt;P&gt;The problem still happening; I am with you thinking that it a firewall restriction.&amp;nbsp; Getting our SAS admin involved.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2020 16:19:05 GMT</pubDate>
    <dc:creator>carlos_jimenez</dc:creator>
    <dc:date>2020-12-11T16:19:05Z</dc:date>
    <item>
      <title>Error while reading file from website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705313#M216331</link>
      <description>&lt;P&gt;I am getting a weird message on a code that used to run fine until few days ago.&amp;nbsp; Below if the code and error message.&amp;nbsp; I would appreciate any help understanding the meaning of the error and possible solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename _fixed url "&lt;A href="https://s3.amazonaws.com/cfpb-hmda-public/prod/apor/YieldTableAdjustable.txt" target="_blank"&gt;https://s3.amazonaws.com/cfpb-hmda-public/prod/apor/YieldTableAdjustable.txt&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= work.adjustable&lt;BR /&gt;DATAFILE= _fixed&lt;BR /&gt;DBMS=dlm REPLACE;&lt;BR /&gt;DELIMITER='|';&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to&lt;BR /&gt;WORK.PARMS.PARMS.SLIST.&lt;BR /&gt;ERROR: Physical file does not exist, &lt;A href="https://s3.amazonaws.com/cfpb-hmda-public/prod/apor/YieldTableAdjustable.txt" target="_blank"&gt;https://s3.amazonaws.com/cfpb-hmda-public/prod/apor/YieldTableAdjustable.txt&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 14:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705313#M216331</guid>
      <dc:creator>carlos_jimenez</dc:creator>
      <dc:date>2020-12-11T14:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading file from website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705319#M216334</link>
      <description>&lt;P&gt;The NOTE that you see is often associated with opening a second SAS session and the first session has locked the SASUSER.Parms catalog which mostly holds SAS session parameters like window locations and such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try ensuring all your SAS sessions are shut down, restart SAS and see if the code will run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to import that file using your code. It might have been temporarily unavailable on the website as busy, being created or some connection interruption.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 15:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705319#M216334</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-11T15:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading file from website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705320#M216335</link>
      <description>&lt;P&gt;Try it again; it might be that the file was not available at the moment. I could run your code from my University Edition without problems.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 15:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705320#M216335</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-11T15:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading file from website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705326#M216338</link>
      <description>&lt;P&gt;If the problem persists, one more thing that came to my mind: a firewall might, for some reason, consider the file "dangerous" and block the download, although the website as such is permitted.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 16:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705326#M216338</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-11T16:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading file from website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705327#M216339</link>
      <description>&lt;P&gt;The NOTE about the parameter catalog will always be issued when SASUSER is defined read-only (which is the case for University Edition).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 16:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705327#M216339</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-11T16:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading file from website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705328#M216340</link>
      <description>&lt;P&gt;The problem still happening; I am with you thinking that it a firewall restriction.&amp;nbsp; Getting our SAS admin involved.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 16:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705328#M216340</guid>
      <dc:creator>carlos_jimenez</dc:creator>
      <dc:date>2020-12-11T16:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading file from website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705330#M216341</link>
      <description>&lt;P&gt;This first note is a BUG in the IMPORT procedure (or something that it calls under the hood).&amp;nbsp; It does not impact how the proc runs so it shouldn't issue that note.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second is also probably due to limitations of how PROC IMPORT works.&amp;nbsp; Try first copying the text from the URL to a physical file and pass that file to PROC IMPORT.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename _fixed url "https://s3.amazonaws.com/cfpb-hmda-public/prod/apor/YieldTableAdjustable.txt";
filename copy temp;
data _null_;
  infile _fixed;
  file copy;
  input;
  put _infile_;
run;
PROC IMPORT OUT= work.adjustable REPLACE
  DATAFILE= copy DBMS=dlm 
;
  DELIMITER='|';
  GETNAMES=YES;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or since it is just a text file skip the PROC IMPORT step altogether and just write your own data step to read from the fileref.&amp;nbsp; This also has the advantage that you can control how all of the variables are defined.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.adjustable ;
  infile _fixed dsd dlm='|' truncover firstobs=2;
  input .... ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 16:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-while-reading-file-from-website/m-p/705330#M216341</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-11T16:30:53Z</dc:date>
    </item>
  </channel>
</rss>

