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?
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.
Hi @Danitin ,
SAS Installed at your site should be 9.4 M4, 64-bit in order to use JSON libname engine.
Similar query:-
Thanks!
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: