1) Please post code in a code box opened using the forum's {I} or "running man" icons. It is much easier to post that way than to create a separate document and add attach. Just copy from the SAS editor, click on the icon and paste.
2) You do not show the complete proc template code
3) Better is to provide a small example data set as data step code, the entire template code and the Sgender code using the template and the example data.
By "add manual values" do you mean tick marks on the axis?
If you want to have selected values appear as group then look at the options LINECOLORGROUP and LINEPATTERNGROUP for the Seriesplot statement. That allows a separate variable such as your "flag" to set colors or patterns for lines independent of the Group= variable.