The SAS Output Delivery System and reporting techniques

Insert superscript or special symbols in SAS Output

Reply
N/A
Posts: 0

Insert superscript or special symbols in SAS Output

I'm doing some listings with proc report and then I copy and paste to a Word document from the SAS Output. I would like to put some special characters/superscripts in order to put some footnotes related to the listings columns. How can I do it? Thank you very much!

gorkaTU99
Super Contributor
Posts: 394

Re: Insert superscript or special symbols in SAS Output

My first question is, have you considered skipping the copy and paste step altogether by creating your document in RTF format using ODS?
SAS Super FREQ
Posts: 8,744

Re: Insert superscript or special symbols in SAS Output

Hi:
You would use ODS ESCAPECHAR capability to do what you want. Depending on your version of SAS -- 9.1.3 vs 9.2, there is an older version of the syntax, highlighted in these papers:
http://www2.sas.com/proceedings/forum2007/099-2007.pdf
http://www.nesug.org/Proceedings/nesug07/cc/cc18.pdf
http://www.nesug.org/proceedings/nesug07/po/po12.pdf
http://www.lexjansen.com/pharmasug/2006/coderscorner/cc06.pdf

and a newer, more function-like version of the syntax, highlighted in these papers (for SAS 9.2):
http://www.nesug.org/Proceedings/nesug08/np/np10.pdf
http://www2.sas.com/proceedings/sugi31/227-31.pdf

cynthia
N/A
Posts: 0

Re: Insert superscript or special symbols in SAS Output

Hi everyone!
I have almost solved this problem... Using the ASCII code, you can press ALT+xxxx where xxxx is a four digits number and a wide list of different symbols can be shown. But it's obvious that it's a closed list of values, and I like to know if there is a "superscript option" or something similar to put whatever you want.
Moreover, I have stopped using ODS RTF because sometimes the match between the output and the RTF file is not good, and it's difficult to control many things that are easier to control by copying and pasting the SAS output to a RTF file, like the alignment of decimal points, etc.
Now I'm treating to find a complete list of ASCII symbols and its shortcuts, but it's a different problem...
Thank you very much to those who reply Smiley Wink
SAS Super FREQ
Posts: 8,744

Re: Insert superscript or special symbols in SAS Output

Hi:
Glad you found a solution that suits you. Just FYI, there is a JUST=D style attribute that does do decimal alignment.
http://support.sas.com/kb/24/537.html

cynthia
Ask a Question
Discussion stats
  • 4 replies
  • 156 views
  • 1 like
  • 3 in conversation