<?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: Importing XLSX from URL Issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-XLSX-from-URL-Issue/m-p/447031#M112227</link>
    <description>&lt;P&gt;Maybe a stupid question, but what happens if you skip the copy part, and just try to import the file from where it is?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename cm1url HTTP "http://tti.tamu.edu/documents/ums/congestion-data/complete-data.xlsx";	


proc import file=cm1url out=PCR_day
	dbms=xlsx replace;
	getnames=no;
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Mar 2018 08:45:47 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2018-03-20T08:45:47Z</dc:date>
    <item>
      <title>Importing XLSX from URL Issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-XLSX-from-URL-Issue/m-p/446758#M112143</link>
      <description>&lt;P&gt;I've found some code that works great at importing a xlsx file from a URL. The code successfully creates a duplicate of the file onto my computer but when I try to import the file into SAS I get the following issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could not find 'workbook' entry in xlsx file.&amp;nbsp; rc=8014900E (-2146136050)&lt;BR /&gt;Requested Input File Is Invalid&lt;BR /&gt;ERROR: Import unsuccessful.&amp;nbsp; See SAS Log for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I open the file then save it SAS can import the file successfully. That isn't too big of an issue I would just prefer it be automated. I'm quite sure the file is an xlsx file as there is no prompt warning from excel when I open the file. I have also downloaded a third party program that recognized the file as an xlsx file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename cm1url HTTP "http://tti.tamu.edu/documents/ums/congestion-data/complete-data.xlsx";	

data _null_;
  n=-1;
  infile cm1url recfm=s nbyte=n length=len;
  input;
  file  "C:\temp\TestPROCtoNDC.xlsx" recfm=n;
  put _infile_ $varying32767. len;
run;

proc import file='C:\temp\TestPROCtoNDC.xlsx' out=PCR_day
	dbms=xlsx replace;
	getnames=no;
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Mar 2018 13:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-XLSX-from-URL-Issue/m-p/446758#M112143</guid>
      <dc:creator>michelconn</dc:creator>
      <dc:date>2018-03-19T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Importing XLSX from URL Issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-XLSX-from-URL-Issue/m-p/447031#M112227</link>
      <description>&lt;P&gt;Maybe a stupid question, but what happens if you skip the copy part, and just try to import the file from where it is?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename cm1url HTTP "http://tti.tamu.edu/documents/ums/congestion-data/complete-data.xlsx";	


proc import file=cm1url out=PCR_day
	dbms=xlsx replace;
	getnames=no;
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 08:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-XLSX-from-URL-Issue/m-p/447031#M112227</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-03-20T08:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Importing XLSX from URL Issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-XLSX-from-URL-Issue/m-p/447078#M112244</link>
      <description>From my understanding and the forum I found this answer on that will only work with CSV. With the excel format you have to copy the file essentially bit by bit.</description>
      <pubDate>Tue, 20 Mar 2018 13:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-XLSX-from-URL-Issue/m-p/447078#M112244</guid>
      <dc:creator>michelconn</dc:creator>
      <dc:date>2018-03-20T13:05:35Z</dc:date>
    </item>
  </channel>
</rss>

