BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
4 REPLIES 4
Tim_SAS
Barite | Level 11
My first question is, have you considered skipping the copy and paste step altogether by creating your document in RTF format using ODS?
Cynthia_sas
SAS Super FREQ
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
deleted_user
Not applicable
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 😉
Cynthia_sas
SAS Super FREQ
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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2203 views
  • 1 like
  • 3 in conversation