BookmarkSubscribeRSS Feed
Kaushansky
Obsidian | Level 7

I am trying to import an XLS file via a URL and it's not working.

 

OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
WARNING: Apparent symbolic reference E not resolved.
72
73
74
75 %let
75 ! tVpViPeAZTam2bvd_A_A?email=Michael.Kaushansky%40walmart.com&e=bSKhqj;
76 filename src url "&url" recfm=f lrecl=512;
WARNING: Apparent symbolic reference E not resolved.
77 filename dest temp recfm=f lrecl=512;
78 data _null_;
79 infile src;
80 file dest;
81 input;
82 put _infile_;
83 run;
 
ERROR: Forbidden to retrieve URL. Use the debug option for more info.
NOTE: The file DEST is:
 
Filename=C:\Users\m0k0871\AppData\Local\Temp\SAS Temporary
Files\_TD29040_LHOB12209001112_\#LN00056,
RECFM=F,LRECL=512,File Size (bytes)=0,
Last Modified=08Sep2023:14:41:46,
Create Time=08Sep2023:14:41:46
 
NOTE: 0 records were written to the file DEST.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 11.17 seconds
cpu time 0.00 seconds
 
 
1 REPLY 1
ChrisHemedinger
Community Manager

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.

 

How to use SAS to access Microsoft 365 

 

Basically, SAS cannot use your link to authenticate and get the file. You have to authenticate your SAS session and use an access token. 

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 712 views
  • 0 likes
  • 2 in conversation