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. 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 311 views
  • 0 likes
  • 2 in conversation