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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 1047 views
  • 1 like
  • 3 in conversation