<?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: Read in an XLS file via a URL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-in-an-XLS-file-via-a-URL/m-p/893372#M352917</link>
    <description>&lt;P&gt;It looks like you are trying to read a file from Microsoft Teams (Microsoft 365). There are special steps to accomplish this using the Microsoft Graph API -- it's a bit involved to set it up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="How to use SAS to access Microsoft 365" uid="667869" url="https://communities.sas.com/t5/SAS-Communities-Library/How-to-use-SAS-to-access-Microsoft-365/m-p/667869#U667869" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, SAS cannot use your link to authenticate and get the file. You have to authenticate your SAS session and use an access token.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 18:51:19 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2023-09-08T18:51:19Z</dc:date>
    <item>
      <title>Read in an XLS file via a URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-in-an-XLS-file-via-a-URL/m-p/893362#M352915</link>
      <description>&lt;P&gt;I am trying to import an XLS file via a URL and it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: Apparent symbolic reference E not resolved.&lt;/DIV&gt;&lt;DIV class=""&gt;72&lt;/DIV&gt;&lt;DIV class=""&gt;73&lt;/DIV&gt;&lt;DIV class=""&gt;74&lt;/DIV&gt;&lt;DIV class=""&gt;75 %let&lt;/DIV&gt;&lt;DIV class=""&gt;75 ! url=&lt;A href="https://teams.wal-mart.com/:x:/s/WMGMeasurementScience/EZep4TY88rtFoBACywIDM7oBWb" target="_blank" rel="noopener"&gt;https://teams.wal-mart.com/:x:/s/WMGMeasurementScience/EZep4TY88rtFoBACywIDM7oBWb&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;75 ! tVpViPeAZTam2bvd_A_A?email=Michael.Kaushansky%40walmart.com&amp;amp;e=bSKhqj;&lt;/DIV&gt;&lt;DIV class=""&gt;76 filename src url "&amp;amp;url" recfm=f lrecl=512;&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: Apparent symbolic reference E not resolved.&lt;/DIV&gt;&lt;DIV class=""&gt;77 filename dest temp recfm=f lrecl=512;&lt;/DIV&gt;&lt;DIV class=""&gt;78 data _null_;&lt;/DIV&gt;&lt;DIV class=""&gt;79 infile src;&lt;/DIV&gt;&lt;DIV class=""&gt;80 file dest;&lt;/DIV&gt;&lt;DIV class=""&gt;81 input;&lt;/DIV&gt;&lt;DIV class=""&gt;82 put _infile_;&lt;/DIV&gt;&lt;DIV class=""&gt;83 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Forbidden to retrieve URL. Use the debug option for more info.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The file DEST is:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Filename=C:\Users\m0k0871\AppData\Local\Temp\SAS Temporary&lt;/DIV&gt;&lt;DIV class=""&gt;Files\_TD29040_LHOB12209001112_\#LN00056,&lt;/DIV&gt;&lt;DIV class=""&gt;RECFM=F,LRECL=512,File Size (bytes)=0,&lt;/DIV&gt;&lt;DIV class=""&gt;Last Modified=08Sep2023:14:41:46,&lt;/DIV&gt;&lt;DIV class=""&gt;Create Time=08Sep2023:14:41:46&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: 0 records were written to the file DEST.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class=""&gt;real time 11.17 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE class=""&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2023 18:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-in-an-XLS-file-via-a-URL/m-p/893362#M352915</guid>
      <dc:creator>Kaushansky</dc:creator>
      <dc:date>2023-09-08T18:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read in an XLS file via a URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-in-an-XLS-file-via-a-URL/m-p/893372#M352917</link>
      <description>&lt;P&gt;It looks like you are trying to read a file from Microsoft Teams (Microsoft 365). There are special steps to accomplish this using the Microsoft Graph API -- it's a bit involved to set it up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="How to use SAS to access Microsoft 365" uid="667869" url="https://communities.sas.com/t5/SAS-Communities-Library/How-to-use-SAS-to-access-Microsoft-365/m-p/667869#U667869" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, SAS cannot use your link to authenticate and get the file. You have to authenticate your SAS session and use an access token.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 18:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-in-an-XLS-file-via-a-URL/m-p/893372#M352917</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2023-09-08T18:51:19Z</dc:date>
    </item>
  </channel>
</rss>

