You put KEEP= in the wrong place. It belongs on the SET statement:
data sorted_table; set sorted (keep=product color SELLSTARTDATE);
While KEEP= can be used in either place, it belongs on the SET statement for this particular DATA step. On the DATA statement, it limits the variables that become part of the new data set.
... View more