• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/18

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

18 Cards in this Set

  • Front
  • Back
What are some advantages of using ODS?
ODS gives you formatting options and makes procedure output much more flexible.

ODS holds your output in its component parts (data and table definition) so that numerical data retains its full precision.
In what formats can you produce output with ODS?
HTML
RTF
PDF
Traditional SAS listing output
There are three steps to how ODS works:
1. ODS creates your output in the form of output objects. What two components are used for this?
1. The Data Component and 2. the Table Definition are combined to create the Output Object.
How ODS works:
2. What does ODS do next with the Output Object?
2. ODS sends the output object to the ODS destination(s) that you specify.
It creates formatted output as specified by the destination.
How ODS works:
3. What is the final thing that ODS does?
3. ODS creates a link to each output object in the Results window and identifies each output object by the appropriate icon.
ODS statements specify destinations for your outputs.
Each destination creates a specific type of formatted output.
What are some of the destinations? What is the default destination?
HTML (the default destination - no need to specify this)
LISTING - plain text output
Markup Languages Family - such as XML
Document - a hierarchy of output objects that enable you to render multiple ODS output without rerunning procedures.
Output - SAS data sets
Printer Family - output that is formatted for a high-resolution printer
RTF - Rich Text Format
For each type of formatted output that you want to create, you use an ODS statement to open the destination. At the end of your program, you use another ODS statement to close the destination so that you can access your output.

Write the statements to open and close ODS destinations:
ODS open-destination;
ODS close-destination CLOSE;

where
- open-destination is a keyword and any required options for the type of output that you want to create, such as
-- HTML FILE='html-file-pathname'
-- LISTING
- close-destination is a keyword for the type of output.
Which ODS destinations are open, and which are closed, by default?
HTML is the only ODS destination open by default;
Most destinations are closed by default;
Which of the following programs opens and ODS destination? And which ones closes an ODS destination?

a. proc print data=sasuser.mydata;
run;

b. ods listing;
proc print data=sasuser.mydata;
run;
ods listing close;
b.
In a. the HTML ODS destination is already open by default so there is no need to open or close it.
What kind of output does the following program produce?
ods html close;
ods listing;
proc print data=sasuser.mydata;
run;
ods listing close;
ods html;
The program produces only LISTING output.
TRUE OR FALSE: You can only produce one type of output at a time.
FALSE: You can produce output in multiple formats at once by opening each ODS destination at the beginning of the program.
How do you close more than one ODS destination at the same time?
You can use the keyword _ALL_ in the ODS CLOSE statement to close all open destinations at once.

ods _all_ close;

Remember to reopen the HTML destination at the end of your program;

ods html;
Creating a table of contents: explain the following file-specifications:
ODS HTML
BODY=body-file-specification
CONTENTS=contents-file-specification
FRAME=frame-file-specification;
ODS HTML CLOSE;
body-file-specification is the name of an HTML file that contains the procedure output.
contents-file-specification is the name of an HTML file that contains a table of contents with links to the procedure output.
frame-file-specification is the name of an HTML file that integrates the table of contents and the body file.
If you specify FRAMES=, you must also specify CONTENTS=.
Viewing Frame Files
The Results window does not display links to frame files. What file will the Results window display and how can you view the Frame file?
To view the Frame file that integrates the body file and table of contents, select File -> Open from within the internal browser or your preferred Web browser.

Only the body file will automatically appear in the Results window.
TRUE OR FALSE
The table of contents created by the CONTENTS= option contains a numbered heading for each procedure that creates output.
TRUE
Below each heading is a link to the output for that procedure.
On some browsers you can select a heading to contract or expand the table of contents.
How can you provide a URL that ODS uses in all the links that it creates to the file?
By specifying the URL= suboption in the BODY= or CONTENTS= file specification.
When is the URL= suboption useful?
it is useful when building HTML files that might be moved from one location to another.
What happens if the links from the contents and page files are constructed with a simple URL (one name)?
The links work as long as the contents, page, and body files are all in the same location.