Usage Note 24054: In ODS, how can I add special characters such as GE or LE to my output?
You can add special symbols such as ≥ (greater than or equal to) or ≤ (less than or equal to) by using the appropriate fonts that have these symbols. For example, the GE and LE characters are available in the Symbol font. On the Internet, you can find lists of the hexadecimal values of commonly used special characters.
Here is an example of specifying the Symbol font and special characters.
ods escapechar="^";
proc format;
value temp 11='The value is ^S={font_face=symbol}' "A3"x '^S={} the value';
run;
ods rtf file='temp.rtf';
proc print data=sashelp.class;
title 'This uses the special characters in the value';
format age temp.;
run;
proc print data=sashelp.class label;
title 'This uses the special characters in the label';
label age="Age" "^S={font_face=symbol}" "B3"x "^S={}" "10";
run;
ods rtf close;
The code above might not show all symbols correctly in the DBCS environment. Please reference SAS Note 10821 if SAS is being used with language settings of Chinese, Japanese, or Korean to create RTF output.
The code above uses inline styles, which are not supported in the SAS Output window (ODS LISTING). However, some hexadecimal codes are supported by the SAS Monospace font and can be used directly in the Listing destination. See SAS Note 3673 for an example.
For an example of the new UNICODE inline style function which makes this even easier to accomplish with SAS 9.2, see SAS Note 35559.
See more
ODS FAQs.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> HTML Third Party ==> Output ==> PDF Third Party ==> Output ==> RTF
|
| Date Modified: | 2007-08-28 14:41:30 |
| Date Created: | 2004-06-29 11:08:56 |