Hi,
If any 1 can help how to create a live weather details in sas connecting to a website.
using Proc http.
User shall give input "City".
it will provide live weather details.
What have you tried so far? Can you use PROC HTTP to access the website you want? Are you getting information back, but you need help processing the data? Please provide more details.
filename resp "%sysfunc(getoption(WORK))/echo.json";
proc http
url="https://www.weather-forecast.com/locations/London/forecasts/latest"
method="GET"
out=resp;
run;
data _null_;
infile resp;
input;
put _infile_;
run;
This code is providing me the total information of the portal in html
How can I get the relevant weather information in json format.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.