Hey, this erros accours when I try to run any graph from this code:
filename resp temp;
/* Neat service from Open Notify project */
proc http
url="http://apiadvisor.climatempo.com.br/api/v1/forecast/locale/6731/days/15?token=5ffc1cd67c7deb0d259d9388ea9db118"
method= "GET"
out=resp;
run;
/* Assign a JSON library to the HTTP response */
libname space JSON fileref=resp;
/* Print result, dropping automatic ordinal metadata */
proc print data=SPACE.DATA_RAIN label;
var probability precipitation;
run;Histogram graph code:
ods graphics / reset width=6.4in height=4.8in imagemap;
proc sgplot data=SPACE.DATA_RAIN;
histogram probability /;
yaxis grid;
run;
ods graphics / reset;Histogram Log:
Thank you.
Try making a copy of the data instead of using it directly from the SPACE library:
ods graphics / reset width=6.4in height=4.8in imagemap;
data work.data_rain;
set space.data_rain;
run;
proc sgplot data=work.data_rain;
histogram probability /;
yaxis grid;
run; quit;
ods graphics / reset;
Vince DelGobbo
SAS R&D
Could you switch into PROC UNIVARIATE ?
proc univariate data=SPACE.DATA_RAIN;
var probability;
histogram probability ;
run;
Appears this errors when I try:
ERROR: Requested function is not supported.
ERROR: No data set open to look up variables.
I could running the following code .
32 proc univariate data=sashelp.class;
33 var weight;
34 histogram weight;
35 run;
NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 1.74 seconds
cpu time 0.18 seconds
Try making a copy of the data instead of using it directly from the SPACE library:
ods graphics / reset width=6.4in height=4.8in imagemap;
data work.data_rain;
set space.data_rain;
run;
proc sgplot data=work.data_rain;
histogram probability /;
yaxis grid;
run; quit;
ods graphics / reset;
Vince DelGobbo
SAS R&D
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.