Superscript and subscript characters can be added to non-Listing destinations (HTML, MARKUP, PDF, RTF, and so on) by using the ODS ESCAPECHAR= statement. Below is an example where the number 2 is used as a superscript and a subscript in separate TITLE statements.
ods rtf file='temp.rtf';
ods escapechar='^';
proc print data=sashelp.class;
title 'this value is superscripted ^{super 2} ';
title2 'this value is subscripted ^{sub 2} ';
run;
ods rtf close;
See also the documentation reference: ODS ESCAPECHAR statement.