BookmarkSubscribeRSS Feed
Danitin
Calcite | Level 5

I am trying to learn about web services in SAS, and then i found this paper: https://support.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1937-2018.pdf
But when i try tu run the first sample code it return a few erros:


30 libname jout JSON fileref="resp";
ERROR: The JSON engine cannot be found.
ERROR: Error in the LIBNAME statement.
31
32 proc print data=jout.NEAR_EARTH_OBJECTS__018_01_02;
ERROR: Libref JOUT is not assigned.
33 run;

The code is:

filename resp temp;
proc http url="http://www.neowsapp.com/rest/v1/feed/today"
out=resp
method="GET";
run;
libname jout JSON fileref="resp";
proc print data=jout.NEAR_EARTH_OBJECTS__018_01_02
run;

 

Can someone tell what is whrong on it?

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

My version of SAS is too old to know about JSON, but your code looks wrong.

 

Try:

libname jout JSON fileref=resp;

Quotes are needed for physical names, and logical names are not quoted. 

 

AnandVyas
Ammonite | Level 13

Hi @Danitin ,

 

SAS Installed at your site should be 9.4 M4, 64-bit in order to use JSON libname engine.

Similar query:-

https://communities.sas.com/t5/Administration-and-Deployment/ERROR-The-JSON-engine-cannot-be-found/t...

 

Thanks!

 

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
  • 2 replies
  • 754 views
  • 1 like
  • 3 in conversation