Data _null _; / * infut value * / red = 42; green = 31; blue = 170; / * convert to hex * / hexred = put (red, hex2.); hexgreen = put (green, hex2; hexblue = PUT (Blue, HEX2.); / * CREATE AS A SAS RGB Color * / SASRGB = "CX" || Hexred || Hexgreen || HexBlue; / * Write The New Value to the Log * / Put SasRGB; Run;