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. 

 

Anand_V
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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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