Generate the plot. COLOR= specifies the variable that contains color information for the iris species. SHAPE= specifies the variable that contains shape information for the iris species.
proc g3d data=reflib.iris2;
   scatter petallen*petalwid=sepallen
         / color=colorval
           shape=shapeval;