Create data set. REFLIB.IRIS2 uses a DATA
step to read and modify the REFLIB.IRIS data set. The DATA step adds a variable
that identifies the iris species. It also adds two additional variables that
store shape and color values for each iris species. These shapes and colors
will distinguish iris species in the plot.
data reflib.iris2;
set reflib.iris;
length species $12. colorval $8. shapeval $8.;
if spec_no=1 then
do;
species='setosa';
shapeval='club';
colorval='blue';
end;
if spec_no=2 then
do;
species='versicolor';
shapeval='diamond';
colorval='red';
end;
if spec_no=3 then
do;
species='virginica';
shapeval='spade';
colorval='green';
end;
run;