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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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