Valid in: | Anywhere |
Category: | ODS: Output Control |
Tip: | The ODS TEXT= statement is sent only to output destinations that are open. Therefore, it must be specified after an ODS destination statement. |
Features: |
ODS HTML statement ODS PDF statement ODS RTF statement ODS TEXT= statement
|
Other features: |
PROC PRINT |
Data set: | Exprev |
options obs=10;
proc template; define style mystyle; parent=styles.htmlblue; style usertext from usertext / foreground=red; end; run;
ods html file="text.html" style=mystyle; ods pdf file="text.pdf" startpage=never notoc style=mystyle; ods rtf file="text_trad.rtf" style=mystyle;
title "January Orders "; footnote " For All Employees";
ods text="My Text 1"; ods text="My Text 2";
proc print data=exprev; run;
ods text="My Text 3";
ods pdf close; ods rtf close; title; footnote;
proc template; delete mystyle; run;
proc template; define style mystyle; parent=styles.htmlblue; style usertext from usertext / foreground=red; end; run;
ods html file="text.html" style=mystyle; ods pdf file="text.pdf" startpage=never notoc style=mystyle; ods rtf file="text_trad.rtf" style=mystyle;