Our company migrated to SAS EG on Unix. We use proc http to download sharepoint list data but in SAS EG we get 401 UNAUTHORIZED.
Below is my code:
%let xmlfile = track.xml;
filename listout "/home/user/Temporary/&xmlfile" encoding="UTF-8";
filename request temp;
proc http out = listout
url = 'https://mysiteaddress/ReportData/_vti_bin/owssvr.dll?Cmd=Display&List={listid}&View={viewid}&XMLDATA=TRUE'
method = "get"
webusername="***"
webpassword="***"
webauthdomain="RB"
auth_negotiate;
run;
filename xx temp; libname xx xmlv2 "/home/user/Temporary/track.xml" automap=replace xmlmap=xx;
proc copy in=xx out=work; quit;
This code works perfectly fine on PC SAS without the authentication info. I am trying to determine if I am missing something in my code or if there is simply a block on our server.
What software is mysiteaddress running? Is it some Microsoft specific tool like Sharepoint?
That is just the URL to our internal sharepoint site.
It is sharepoint 2010
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.