SAS Chapter 10 Producing HTML Output

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Moxleyv
M
Moxleyv
Community Contributor
Quizzes Created: 38 | Total Attempts: 21,992
| Attempts: 728 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. When the code shown below is run, what will your file D:\Output\body.html contain? ods html body='d:\output\body.html'; proc print data=work.alpha; run; proc print data=work.beta; run; ods html close;

Explanation

When multiple procedures are run while HTML output is open, procedure output is appended to the same body file.

Submit
Please wait...
About This Quiz
SAS Chapter 10 Producing HTML Output - Quiz

This quiz assesses skills in generating various types of output using SAS's ODS statements, focusing on HTML output. It covers multi-output generation, default settings, resource management, and output... see morecontent, enhancing proficiency in SAS programming and data presentation. see less

2. Using the ODS statements, how many types of output can you generate at once?

Explanation

You can generate any number of output types as long as you open the ODS destination for each type of output you want to create.

Submit
3. Which ODS HTML option was used in creating the following table?

Explanation

You can change the appearance of HTML output by using the STYLE= option in the ODS HTML statement. The style name doesn't need quotation marks.

Submit
4. What is the purpose of closing the Listing destination in the code shown below? ods listing close; ods html ... ;

Explanation

By default, SAS programs produce listing output. If you want only HTML output, it's a good idea to close the LIsting destination before creating HTML output, as an open destination uses system resources.

Submit
5. When the code shown below is run, what will the file D:\Output\frame.html display? ods html body='d:\output\body.html'          contents='d:\output\contents.html'          frame='d:\output\frame.html';

Explanation

The FRAME= option creates HTML file that integrates the table of contents and the body file.

Submit
6. If ODS is set to its default settings, what types of output are created by the code below? ods html file='c:\myhtml.htm'; ods pdf file='c:\mypdf.pdf';

Explanation

Listing output is created by default, so these statements create HTML, PDF, and listing output.

Submit
7. What is the purpose of the URL= suboptions shown below? ods html body='d:\output\body.html' (url='body.html')          contents='d:\output\contents.html'          (url='contents.html')          frame='d:\output\frame.html';

Explanation

Specifying the URL= suboption in the file specification provides a URL that ODS uses in the links it creates. Specifying a simple (one name) URL creates a relative link address to the file.

Submit
8. The table of contents created by the CONTENTS= option contains a numbered heading for

Explanation

The table of contents contains a numbered heading for each procedure that creates output.

Submit
9. When the code shown below is run, what file will be loaded by the links in D:\Output\contents.html? ods html body='d:\output\body.html'          contents='d:\output\contents.html'          frame='d:\output\frame.html';

Explanation

The CONTENTS=option creates a table of contents containing links to the body file, D:\Output\body.html.

Submit
10. What is the purpose of the PATH= option? ods html path='d:output' (url=none)          body='body.html'          contents='contents.html'          frame='frame.html';

Explanation

You use the PATH=option to specify the location for HTML files to be stored. When you use the PATH= option, you don't need to specify the full path name for the body, contents, or frame files.

Submit
View My Results

Quiz Review Timeline (Updated): Aug 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 24, 2013
    Quiz Created by
    Moxleyv
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
When the code shown below is run, what will your file...
Using the ODS statements, how many types of output can you generate at...
Which ODS HTML option was used in creating the following table?
What is the purpose of closing the Listing destination in the code...
When the code shown below is run, what will the file...
If ODS is set to its default settings, what types of output are...
What is the purpose of the URL= suboptions shown below?...
The table of contents created by the CONTENTS= option contains a...
When the code shown below is run, what file will be loaded by the...
What is the purpose of the PATH= option?...
Alert!

Advertisement