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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1612 views
  • 1 like
  • 3 in conversation