Thanks for your response! I ran the code today and it did give me the same o/p as urs which is correct. I just looged in today morning and it gave me the expected results. Could it be some settings?
I am running PC SAS. and this is how the log looks like.
6 data _null_;
7 color = 'red orange green' ;
8 put "Before TRANWRD: " color;
Before TRANWRD: red orange green
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds