ODS STATEMENTS
In order to move beyond default behaviour, ODS provides three means
of controlling the output from a SAS procedure - ODS statements,
templates, and styles. The starting point is the set of ODS statements.
One or more of these statements are used to
Choose a result destination (or destinations).
ODS LISTING ...
ODS HTML ...
ODS OUTPUT ...
Select desired output objects to create.
ODS SELECT ...
ODS EXCLUDE ...
Control the type of messages written in the Log window.
ODS SHOW ...
ODS TRACE ...
ODS VERIFY ...
Set a search path for template(s) to format listing and html results.
ODS PATH ...
Select a style to control aspects of html results.
ODS HTML STYLE= ...
IDENTIFYING OUTPUT OBJECTS
In order to do more than simply display an output object, you must be
able to determine its name, path and template. Trace can be turned on
or off at any time during a SAS session or SAS batch job. When trace
is on, it writes to the SAS log a record of each output object that is created.
For Example:
ODS TRACE on;
proc univariate normal data=work.normal;
var x;
run;
ODS TRACE off;
You can find the output table name in the log file and transfer
output values to SAS data file.
For example:
ODS OUTPUT TestsForLocation = work.capture;
proc univariate normal data=work.normal;
var x;
run;
Hope this helps !
