For SAS 9.2, there is no way to remove an item from the legend. You just have to avoid adding it as suggested by Karel. You will need to separate out the groups you don't want in the legend. So, if you want group A, B and C, but not D and E, then you need two VLINE statements, with separate columns. Then, add only the one that you want to the KEYLEGEND statement. By default, CYCLEATTRS will still increment the attributes for each curve.