BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JVmano
Calcite | Level 5

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:

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
NOTE: ODS statements in the SAS Studio environment may disable some output features.
73
74 /*
75 *
76 * Task code generated by SAS Studio 3.71
77 *
78 * Generated on '08/11/18 15:52'
79 * Generated by 'sasdemo'
80 * Generated on server 'LOCALHOST'
81 * Generated on SAS platform 'Linux LIN X64 2.6.32-696.20.1.el6.x86_64'
82 * Generated on SAS version '9.04.01M5P09132017'
83 * Generated on browser 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
83 ! Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.99'
84 * Generated on web client
84 ! 'http://localhost:10080/SASStudio/371/main?locale=pt_BR&zone=GMT-02%253A00&http%3A%2F%2Flocalhost%3A10080%2FSASStudio%2F3
84 ! 71%2F='
85 *
86 */
87
88 ods graphics / reset width=6.4in height=4.8in imagemap;
89
90 proc sgplot data=SPACE.DATA_RAIN;
91 histogram probability /;
92 yaxis grid;
93 run;
 
ERROR: Floating Point Overflow.
ERROR: Termination due to Floating Point Exception
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SGPLOT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
 
94
95 ods graphics / reset;
96
97 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
110
 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Vince_SAS
Rhodochrosite | Level 12

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

View solution in original post

4 REPLIES 4
Ksharp
Super User

Could you switch into PROC UNIVARIATE ?

 

proc univariate data=SPACE.DATA_RAIN;
var probability; histogram probability ; run;
JVmano
Calcite | Level 5

Appears this errors when I try:
ERROR: Requested function is not supported.
ERROR: No data set open to look up variables.

Ksharp
Super User

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

Vince_SAS
Rhodochrosite | Level 12

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 4 replies
  • 8177 views
  • 0 likes
  • 3 in conversation