Last modified on 17 March 2011, at 15:26

SAS/Publication Quality Ouput


WeavingEdit

See Lenth RV, Hojsgaard S. 2007. SASweave: Literate programming using SAS. Journal of Statistical Software 19: 1{20. URL http://www.jstatsoft.org/v19/i08/

Output Delivery SystemEdit

With the output delivery system (ODS), you can store objects in various formats. ODS offers a set of methods for converting standard output to variouw destinations.

Listing 
The standard SAS output window
RTF 
Microsoft Office Documents
LaTeX 
The markup language for scientific publication.
HTML 
to write web pages.
Output 
SAS datasets.

You can see the current settings for each ODS destination by using the ODS SHOW statement :

ods output show ; 
ods listing show ;

ODS TRACEEdit

For each PROC, you can see the list of exportable objects by using the 'ODS TRACE' statement :

ods trace on/listing;
proc freq data=sashelp.class;
   table age sex;
run;
ods trace off;

ODS OUTPUTEdit

You can export objects to SAS datasets

ods exclude all;
ods output onewayfreqs=exemple_ods (keep=age frequency percent);
proc freq data=sashelp.class;
   table age;
run;
ods output clear;
ods exclude none;

See AlsoEdit

  • PROC DOCUMENT