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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.