BookmarkSubscribeRSS Feed
AlonsoSalazar
Calcite | Level 5

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.

 

 

3 REPLIES 3
Tom
Super User Tom
Super User

What software is mysiteaddress running? Is it some Microsoft specific tool like Sharepoint?

AlonsoSalazar
Calcite | Level 5

That is just the URL to our internal sharepoint site.

AlonsoSalazar
Calcite | Level 5

It is sharepoint 2010

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 3 replies
  • 1007 views
  • 0 likes
  • 2 in conversation