Hi
I have a lot of code but in this specific part where I make a calculation for y for a plot:
**plot for day 1;
data plot1;
x = today();
*y = &totalpopulation/(&group1+&group2);
y=1;
run;
As you can see i commented the line out for the calculation, as most of the time the calculation (&group1+&group2)
will be "." (missing) because of no data in the group. The plot should then be 100%, hence the other y=1.
This is very manual work for me. Beacuse i need to check if the (&group1+&group2)
will be missing then I should use the other y otherwise the plot will be empty- and I will like to know if there is a if statement you can do here? if (&group1+&group2)
is "." then put y=1