Just as NickR said. You need to put sex variable(noprint) before new variable. ods escapechar='^'; ods pdf file='temp.pdf'; proc report data=sashelp.class nowd ; column sex age new name; define sex/noprint; define new / format=$30. ; define name / display; compute new/char ; if sex = "M" then new='^S={font_face=wingdings} ²'; else new='^S={font_face=wingdings} ²²²²²²'; endcomp; run; ods pdf close; Ksharp
... View more