New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
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

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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