BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
vkrishna
Quartz | Level 8

Hi,

 

I'm trying to run the below SAS code in SAS EG.

 

Filename Resp temp;

Proc HTTP
 url="http://**************"
 method="GET"
 out=resp;
run;

libname Test JSON fileref=Resp;

 

 

It is working if we use username and Password in the EG connection profile but If we use IWA in EG connection profile noticed below errors.

 

ERROR: Invalid JSON in input near line 1 column 1: Encountered an illegal character.
ERROR: Error in the LIBNAME statement.

 

 

Do I need to make any changes to use IWA?

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Beginning with SAS 9.4 Maint 3, PROC HTTP allows you to specify several authentication options: NTLM, Negotiate, WebAuthdomain (SAS metadata).  See the options in the PROC HTTP doc.

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

View solution in original post

3 REPLIES 3
ChrisHemedinger
Community Manager

If you're using IWA to connect EG to SAS, you need the SAS server machine to be Trusted for Delegation to pass your identity onto the next network location (SharePoint, in this case).

 

An admin needs to set this up for you.  See the doc in the SAS admin guide. Here's another topic about using Kerberos.

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
vkrishna
Quartz | Level 8

@ChrisHemedinger, SAS server machine is trusted for delegation. We are using IWA  it's working but when I try to connect to the WEB API its not working.

ChrisHemedinger
Community Manager

Beginning with SAS 9.4 Maint 3, PROC HTTP allows you to specify several authentication options: NTLM, Negotiate, WebAuthdomain (SAS metadata).  See the options in the PROC HTTP doc.

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 3931 views
  • 2 likes
  • 2 in conversation