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

Hi,

 

I am trying to import JSON files to SAS, which is a new endeavor for me.  I've been able to bring one in using a DATA step with INFILE statement, but not with the JSON engine.  I keep getting this error: "ERROR: The JSON engine cannot be found."  I'm using SAS Enterprise Guide Version 7.1 (7.100.0.1966) (64-bit) and For Base SAS Software ...Custom version information: 9.4_M4 Image version information: 9.04.01M4P110916.

 

So, I'm trying to find out if this means I just don't have that feature? Or if I should keep trying to debug my code?

 

The latest code I submitted was from a SAS blog: https://blogs.sas.com/content/sasdummy/2016/12/02/json-libname-engine-sas/

filename resp temp;
 
/* Neat service from Open Notify project */
proc http 
 url="http://api.open-notify.org/astros.json"
 method= "GET"
 out=resp;
run;
 
/* Assign a JSON library to the HTTP response */
libname space JSON fileref=resp;
 
/* Print result, dropping automatic ordinal metadata */
title "Who is in space right now? (as of &sysdate)";
proc print data=space.people (drop=ordinal:);
run;

However, I've also tried submitting various other code snippets with the JSON library engine, all with the same result.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

You get that error from the LIBNAME statement using the JSON engine?  

I would double check your SAS version is M4 with:  %put &sysvlong; and see what that writes to the log.  If that confirms that your are on 9.4M4 (or later), then I would submit a ticket to SAS tech support.

View solution in original post

5 REPLIES 5
Quentin
Super User

You get that error from the LIBNAME statement using the JSON engine?  

I would double check your SAS version is M4 with:  %put &sysvlong; and see what that writes to the log.  If that confirms that your are on 9.4M4 (or later), then I would submit a ticket to SAS tech support.

brookeewhite1
Quartz | Level 8

I ran that code and here is the log excerpt showing what I got back:

 

23 %put &sysvlong;
9.04.01M4P110916

Sajid01
Meteorite | Level 14

Hello
Your issue has been addressed in this post on the forum.

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

Please revert back if this does not work.

brookeewhite1
Quartz | Level 8

Update: I have a ticket open with our local administrators and am waiting to see what the resolution will be!

 

brookeewhite1
Quartz | Level 8

Thank you for the suggestion to involve tech support!  After a bit of back and forth, our local tech support confirmed the issue was on their side by opening a JIRA ticket to resolve the problem.

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
  • 5 replies
  • 2118 views
  • 2 likes
  • 3 in conversation