I am trying to do a print a table but the superscript will not work for one of the variables option missing='0' nodate nonumber orientation=landscape ; ods escapechar="~"; data ALL; set ALL; length outcome $61. if variablenames eq 'stall' then outcome='The Number of Reported Cases (%)'; if variablenames eq 'caseassign_per' then outcome='The Number of Cases Assigned for an Investigation (%)'; if variablenames eq 'passigned_per' then outcome='Partners assigned (%)'; if variablenames eq 'test_30_per' then outcome='Testing Among OPs (%)'; if variablenames eq 'NONMISSING_REFERAL_active' then outcome='The Number of Cases Active Referral (%)'; if variablenames eq 'NONMISSING_REFERAL_passive' then outcome='The Number of Cases Passive Referral (%)'; if variablenames eq 'part_HIV_test_per' then outcome='The Number of Partners Tested for HIV (%)'; if variablenames eq 'NONMISSING_Active_REFPart' then outcome= 'The Number of Partners Active Referral (%)'; if variablenames eq 'NONMISSING_passive_REFPart' then outcome='The Number of Partners Passive Referral (%)'; ***; if variablenames eq 'stdall' then count=1; if variablenames eq 'caseassign_per' then count=2; if variablenames eq 'passigned_per' then count=3; if variablenames eq 'test_30_per' then count=4; if variablenames eq 'NONMISSING_REFERAL_active' then count=5; if variablenames eq 'NONMISSING_REFERAL_passive' then count=6; if variablenames eq 'part_test_per' then count=7; if variablenames eq 'NONMISSING_Active_REFPart' then count=8; if variablenames eq 'NONMISSING_passive_REFPart' then count=9; if outcome='The Number of Cases Assigned for an Investigation (%)' then outcome=catx(' ',outcome,'~{super 2}'); if outcome='Testing Among OPs (%)' then outcome=catx(' ',outcome,'~{super 3}'); if outcome='The Number of Cases Active Referral (%)' then outcome=catx(' ',outcome,'~{super 4}'); if outcome='The Number of Cases Passive Referral %)' then outcome=catx(' ',outcome,'~{super 4}'); if outcome='Partners assigned (%)' then outcome=catx(' ',outcome,'~{super 5}'); if outcome='Partners assigned (%)' then outcome=catx(' ',outcome,'~{super 5}'); if outcome='The Number of Partners Tested(%)' then outcome=catx(' ',outcome,'~{super 3}'); if outcome='The Number of Partners Passive Referral (%)' then outcome=catx(' ',outcome,'~{super 4}'); if outcome='The Number of Partners Active Referral (%)' then outcome=catx(' ',outcome,'~{super 4}'); run; PROC SORT DATA=ALL2; BY descending pop diagnosis COUNT; RUN; proc print data= ALL2 noobs; run; Instead of this I get this
... View more