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 INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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