Getting error when trying to get data from the sharepoint -Please help
FILENAME website HTTP 'https://tset,com/Shared%20Documents/people_counts.xlsx';
data file;
n=-1;
infile website recfm=s nbyte=n length=len;
input;
file "C:/test/Summary.xls" recfm=n;
put _infile_ $varying32767. len;
run;
ERROR: Unauthorized to retrieve URL. Use the debug option for more info.
NOTE: UNBUFFERED is the default with RECFM=N.
you have a comma in the URL.
change the portion to
tset.com
typo mistake.actual program doesn;t have comma.
You probably need to add user and password options given the authorisation problem. Also add DEBUG as suggested.
Is this an internal company site? Go to the document library, in Internet Explorer (not Chrome). Open the list and select view in Windows Explorer.
@radha009 wrote:
I view excel on sharepoibt only thru url. I can’t view thru windows explorer. How can I directly import from sharepoint?
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.