SAS/Publication Quality Ouput

From Wikibooks, open books for an open world
< SAS
Jump to: navigation, search


Weaving[edit]

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 System[edit]

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 TRACE[edit]

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 OUTPUT[edit]

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 Also[edit]

  • PROC DOCUMENT