Sure!
Hi Team,
I have this code while reading the paper 242-30 (Arrays made easy) and want to know whats the meaning of i=1
this code was explained for common errors and muisunderstandings so dont worry too much about :do until (i gt 24);
data dailytemp;
set tempdata;
array temperature_array {24} temp1-temp24;
array celsius_array {24} celsius_temp1-celsius_temp24;
do until (i gt 24);
i = 1; /*referring to this line of the code*/
celsius_array{i} = 5 / 9 * (temperature_array{i} – 31);
end;
i=0;
drop i;
run;
Thanks
Something is missing from the code .. i never gets incremented.
You really should start a new discussion when you have a new question.
When you do, post all of the code. i=1 simply sets a variable called i to the value of 1.
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 lock in 2025 pricing—just $495!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.