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!

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1079 views
  • 1 like
  • 3 in conversation