Working with the ODSTEXT Procedure

The ODSTEXT procedure is used to create text block templates. These text block templates create lists and paragraphs for your output. You can use style attributes and formats to customize your content and WHERE expressions to select your content. With PROC ODSTEXT, you can use the DATA= option to bind your data to the template without using a DATA step. PROC ODSTEXT can be used with any output destination. However, PROC ODSTEXT is essential for creating content for the ODS destination for PowerPoint and e-books. Using the ODSTEXT procedure is an advanced technique.
See ODS EPUB Statement in SAS Output Delivery System: User’s Guide and ODS POWERPOINT Statement in SAS Output Delivery System: User’s Guide for more information about creating output for the ODS destination for PowerPoint and e-book output. For complete documentation about the ODSTEXT procedure, see The ODSTEXT Procedure in SAS Output Delivery System: Procedures Guide.
The following example creates text output to add to a PowerPoint slide:
ods html close;
options nodate;
title 'Using PROC ODSTEXT';
footnote 'The ODS Destination for PowerPoint';

ods powerpoint file="layoutTwocontent.ppt" layout=twocontent;

proc odstext;
   p 'You can use the ODSTEXT procedure to add paragraphs
      and lists to your output.';
   p 'You can also format your text.' / style=[color=red fontsize=25pt];
   p 'This slide shows output created by PROC GMAP.' 
                                     / style=[color=purple fontsize=30pt];
run;

proc gmap map=maps.us data=maps.us all;
   id state;
   choro state/statistic=frequency discrete;
run;
quit;

ods _all_ close;
Adding Text to Your Output
Adding Text to Your Output