The data comes from the standard example table sashelp.prdsale.
1 Code Block
PROC REGISTRY
Explanation : Displays the list of paper sizes defined in the SAS registry under the CORE\PRINTING\PAPER SIZES key.
Copied!
proc registry list startat="CORE\PRINTING\PAPER SIZES";
run;
1
2
PROC REGISTRY list startat="CORE\PRINTING\PAPER SIZES";
3
RUN;
4
2 Code Block
OPTIONS
Explanation : Sets the global paper size option to A3 for graphic and ODS outputs.
Copied!
options papersize=a3;
1
options papersize=a3;
3 Code Block
PROC PRINT
Explanation : Opens the ODS RTF destination to a local file, generates a report from the sashelp.prdsale table, then closes the destination to finalize the file.
Copied!
ods rtf file='c:\test.rtf' ;
proc print data=sashelp.prdsale;
run ;
ods rtf close ;
1
ods rtf file='c:\test.rtf' ;
2
PROC PRINTDATA=sashelp.prdsale;
3
RUN ;
4
ods rtf close ;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.