Thanks Vince. It's not working for my scenario. The variable is not resolving in the RTF file, it's just printing the variable name. For ex: I am combining AGE and SEX variables and creating new variable AGESEX. When I generate an RTF file, I want SEX part in BOLD and age in normal font. When I used your code to generate RTF, instead of printing the values of SEX (Male or Female), it was printed as SEX in BOLD. EX: SUBJECT AGESEX 1 43SEX 2 23SEX 3 32SEX
... View more