In reply to Melissa.

You can ask SAS programming questions at the SAS Support Communities. For this question, get rid of the PUT statement and make an assignment:

data A;
Rose = "%RGB(255,96,96)";
run;

Or if you need to translate many RBG codes, use this:

data HexColors;
input R G B;
Hex = cat("CX",
put(R,hex2.),
put(G,hex2.),
put(B,hex2.));
datalines;
255 96 96
105 0 56
200 0 220
;