SAS/Publication Quality Ouput

From Wikibooks, the open-content textbooks collection

< SAS
Jump to: navigation, search

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 ;

[edit] ODS TRACE

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;

[edit] ODS OUTPUT

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;

[edit] See Also

  • PROC DOCUMENT