Hi everyone! I'm working my way through the SAS Programming 2: Data Manipulation Techniques course. I noticed in the Loops part of the course that some of the expressions in the Do loop require an equal sign and some don't. For example, in Practice p206p04.sas the code reads: data IncreaseDayVisits;
set pg2.np_summary;
where Reg='NE' and DayVisits<100000;
IncrDayVisits=DayVisits;
Year=0;
do while (IncrDayVisits<100000);
IncrDayVisits=IncrDayVisits*1.06;
Year+1;
end;
format IncrDayVisits comma12.;
keep ParkName DayVisits IncrDayVisits Year;
run; The lines in the above code in blue are both formula expressions, however the first formula requires an assignment of IncrDayVisits= and the second formula doesn't require an assignment with an equal sign. Can anyone clarify what the difference is? Why does one need an assignment statement with an equal sign and the other does not? Thanks!
... View more