Sup guys, I have this code and I want that result always have a a minus count, like this code, I have a temp valor and I want the value-273,15 but I don't know how to do it.
Code:
filename resp temp;
/* Neat service from Open Notify project */
proc http
url="http://api.openweathermap.org/data/2.5/weather?q=Curitiba,br&APPID=c1c9bc3307a38be77bdd9dacc4f5b435"
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 "Your temperature is here";
proc print data=space.main (drop=ordinal:); /* the "main" is the amount I want to decrease by 273.15 */
run;
Thank you.
Subtracting a value has to be done in a data step, or in SQL, or I suppose you could do it PROC IML as well. You can't do it in PROC PRINT.
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →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.