ODS destinations determine
where your graph output is sent and how the output is formatted. For
example, the HTML destination creates an HTML file that points to
the graph image file. The LISTING destination sends output to an image
file. The output image can be displayed by opening the image file
from the
Results window.
For creation of ODS
graphs, a valid ODS destination must be open. You can open destinations
by specifying an ODS destination statement. In the SAS windowing environment
on Windows and UNIX systems, the HTML destination is open by default.
(The default destination for batch mode is LISTING.) If you keep the
default HTML destination open and open another, the resultant output
is sent to the Web as well as to the other specified destination.
With the exceptions of the HTML and LISTING destinations, you must
also close the destination before output is generated.
The ODS destination
statement is used at the beginning and end of the program to open
and close destinations.
For example, the following
statements open and close an ODS LISTING destination.
ods listing; /* opens the destination */
/* procedure statements and other program elements here */
ods listing close; /* closes the destination */
Depending on the options
available for the destination, you can specify options such as the
filename or the path to an output directory.
For more information,
see Specifying a Destination.