The best way to do that is to use a Discrete Attributes Map. This is a sas data set in which you can specify, by value, the attributes each classivication value should get. So for Id=A, you can specify a color, symbol shape and line pattern. and so on. Missing group values can be skipped by setting MISSING or MISSINGGROUP options. Now, your id values will always retain their attributes.
See: http://blogs.sas.com/content/graphicallyspeaking/2013/04/02/attribute-maps-1/
... View more