Usage Note 24244: How can I change my font or font styles on a PUT statement in a DATA step?
ODS ESCAPECHAR= and inline formatting (experimental since 8.2) can be used to make font changes directly on a PUT statement.
ods rtf file='temp.rtf';
ods html file='temp.html';
ods escapechar='^';
data _null_;
file print;
put 'this is ^S={font_weight=bold}bold^S={}
and this is ^S={font_style=italic}italic^S={}.';
put 'this is ^S={font_size=14}big^S={}
and this is not.';
put '^S={foreground=red}Color ^S={}
can be changed as well.';
run;
ods _all_ close;
ods listing;
If you specify FILE PRINT ODS in your DATA step and you want one column to always be of a different font, or weight, or so forth, you might prefer to use the style template to make the font change.
For more information about FILE PRINT versus FILE PRINT ODS, see
A DATA Stepper's Introduction to ODS (TS-664).
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) SAS Reference ==> Statements ==> File-handling ==> PUT SAS Reference ==> DATA Step Query and Reporting ==> Creating Reports ==> Non Graphical Query and Reporting ==> Creating Reports Common Programming Tasks ==> Reading and Writing External Data
|
| Date Modified: | 2005-07-15 15:41:21 |
| Date Created: | 2005-02-18 10:12:53 |