With SAS 9.40M2, this is easy using the new ColorLC and ColorLP options: http://blogs.sas.com/content/graphicallyspeaking/?s=spaghetti. If you have earlier versions of SAS, the easiest way would be to use the corresponding options available in GTL called LINECOLORGROUP and LINEPATTERNGROUP. They may not be documented, but have been in the code since SAS 9.2. and have been documented since SAS 9.4. Just output the GTL code from the SGPLOT using the TMPLOUT option, and then add these options to the SERIESPLOT statement.
... View more