A
destination is
a designation that ODS uses to determine where to send your output.
Valid destinations include HTML (by default) , LISTING (the
GRAPH window),
RTF, and PDF, but other destinations are also available. Depending
on the options available for the destination, you can specify options
such as the filename or the path to an output directory.
To generate output,
a valid ODS destination must be open. By default, the HTML destination
is open, but you can open other destinations as needed by specifying
an ODS destination statement. Your output is sent to all destinations
that are open, so you can, for example, create HTML and PDF output
by submitting your code only once. With the exceptions of the HTML
and LISTING destinations, you must also close the destination before
output is generated.
Here is the general
form of the statements that open and close an ODS destination.
ods destination <options>; /* opens the destination */
/* procedure statements and other program elements here */
ods destination close; /* closes the destination */
For example, to send
output to the LISTING destination, you would specify the following:
ods listing;
/* procedure statements and other program elements here */
ods listing close;