Upload
roxana-glavan
View
214
Download
0
Embed Size (px)
Citation preview
7/28/2019 Getting Started With Tasks
1/99
1
Chapter 3: Getting Started with Tasks
3.1 Introduction to Tasks and Wizards
3.2 Creating a Frequency Report
3.3 Generating HTML, PDF, and RTF Output
3.4 Creating a Listing Report
3.5 Filtering Data in a Task
3.6 Creating a Graph
7/28/2019 Getting Started With Tasks
2/99
2
Chapter 3: Getting Started with Tasks
3.1 Introduction to Tasks and Wizards
3.2 Creating a Frequency Report
3.3 Generating HTML, PDF, and RTF Output
3.4 Creating a Listing Report
3.5 Filtering Data in a Task
3.6 Creating a Graph
7/28/2019 Getting Started With Tasks
3/99
3
Objectives
Define a SAS Enterprise Guide task and wizard.
Name one method of accessing tasks inSAS Enterprise Guide.
State the functions of common features in the task
dialog boxes.
7/28/2019 Getting Started With Tasks
4/99
4
What Is a Task?
A task is a specific
type of analysis,report, or data
manipulation that
you can perform
against data in aproject.
A task is typically
referenced by its
description.
7/28/2019 Getting Started With Tasks
5/99
5
7/28/2019 Getting Started With Tasks
6/99
6
3.01 Quiz
Select the Tasks menu in your SAS Enterprise Guide
session. Which tasks might be the most helpful in workingwith your data?
7/28/2019 Getting Started With Tasks
7/997
Associating a Task with Data
Tasks are usually associated with a particular data source
in the project.
1.Highlight the data
in the Project Tree.
2. Select
a task.
7/28/2019 Getting Started With Tasks
8/998
Associating a Task with Data
Tasks can also be selected from the menu in the data grid.
7/28/2019 Getting Started With Tasks
9/999
Tasks: Selection Pane
Each task dialog box follows a similar format that includes
a Selection pane that lists the options available for that task.
Selection
Pane
7/28/2019 Getting Started With Tasks
10/9910
Tasks: Data
Select Data to define how columns are used to create
the task result.
Help is displayed
when a Task roleis selected.
7/28/2019 Getting Started With Tasks
11/9911
Tasks: Titles and Footnotes
Select Titles to add descriptive titles and footnotes.
Type customtitles or
footnotes.
7/28/2019 Getting Started With Tasks
12/9912
Tasks: Properties
Task properties can be modified to rename the task,
examine task attributes, and modify the output format.
7/28/2019 Getting Started With Tasks
13/9913
Task Wizards
Selected tasks have a wizard format that can be used
to set up the task results quickly.
7/28/2019 Getting Started With Tasks
14/9914
Working with Tasks
Task code, log, output data, and results are available for
viewing and further analysis through tabs and menus.
7/28/2019 Getting Started With Tasks
15/9915
Working with Tasks
Tasks can be refreshed or modified from either the Project
Tree, the Process Flow window, or the Results tab.
7/28/2019 Getting Started With Tasks
16/9916
7/28/2019 Getting Started With Tasks
17/99
17
Chapter 3: Getting Started with Tasks
3.1 Introduction to Tasks and Wizards
3.2 Creating a Frequency Report
3.3 Generating HTML, PDF, and RTF Output
3.4 Creating a Listing Report
3.5 Filtering Data in a Task
3.6 Creating a Graph
7/28/2019 Getting Started With Tasks
18/99
18
Objectives
Access the One-Way Frequencies task.
Generate a one-way frequency report and bar chart.
7/28/2019 Getting Started With Tasks
19/99
19
Business Scenario
Orion management wants a report that counts the number
of products offered for each category.
7/28/2019 Getting Started With Tasks
20/99
20
One-Way Frequencies Task
The One-Way Frequencies task can be used to generate
frequency counts, percentages, graphs, and statisticaltests to analyze the distribution of your data.
7/28/2019 Getting Started With Tasks
21/99
21
7/28/2019 Getting Started With Tasks
22/99
22
3.02 Multiple Choice Poll
Highlight any data source in the project and select
TasksDescribeOne-Way Frequencies.Which task role requires a variable assignment?
a. Analysis variables
b. Frequency count
c. Group analysis by
7/28/2019 Getting Started With Tasks
23/99
23
3.02 Multiple Choice Poll Correct Answer
Highlight any data source in the project and select
TasksDescribeOne-Way Frequencies.Which task role requires a variable assignment?
a. Analysis variables
b. Frequency count
c. Group analysis by
7/28/2019 Getting Started With Tasks
24/99
24
One-Way Frequencies: Task Roles
The One-Way Frequencies task produces a one-way
frequency report for each variable included in theAnalysis variables role.
.
7/28/2019 Getting Started With Tasks
25/99
25
One-Way Frequencies: Task Roles
The Group analysis role can be used to produce separate
frequency reports for each unique value of a variable.
7/28/2019 Getting Started With Tasks
26/99
26
7/28/2019 Getting Started With Tasks
27/99
27
3.03 Quiz
Open the One-Way Frequencies task again by selecting
TasksDescribeOne-Way Frequencies. In theTasks Roles window, select Help and read the description
for the Frequency count role.
How many variables can be assigned to this role?
7/28/2019 Getting Started With Tasks
28/99
28
3.03 Quiz Correct Answer
Open the One-Way Frequencies task again by selecting
TasksDescribeOne-Way Frequencies. In theTasks Roles window, select Help and read the description
for the Frequency countrole.
How many variables can be assigned to this role?1
7/28/2019 Getting Started With Tasks
29/99
29
One-Way Frequencies: Additional Options
Use additional options to customize the report or create a
data set with frequencies and percentages.
7/28/2019 Getting Started With Tasks
30/99
30
Generating a One-WayFrequency Report
Orion managers want a report that summarizes
the number of products offered for each category.
7/28/2019 Getting Started With Tasks
31/99
31
7/28/2019 Getting Started With Tasks
32/99
32
Exercise
This exercise reinforces the concepts
discussed previously.
7/28/2019 Getting Started With Tasks
33/99
33
7/28/2019 Getting Started With Tasks
34/99
34
Chapter 3: Getting Started with Tasks
3.1 Introduction to Tasks and Wizards
3.2 Creating a Frequency Report
3.3 Generating HTML, PDF, and RTF Output
3.4 Creating a Listing Report
3.5 Filtering Data in a Task
3.6 Creating a Graph
7/28/2019 Getting Started With Tasks
35/99
35
Objectives
List output format options.
Compare the advantages of each output format.
7/28/2019 Getting Started With Tasks
36/99
36
Business Scenario
Orion management wants to publish, in an HTML format
on the intranet, the frequency report for productcategories.
7/28/2019 Getting Started With Tasks
37/99
37
Task Output Formats
By default, SAS Enterprise Guide produces task results
in SAS Report format. However you can also chooseto generate HTML, PDF, RTF, or text output.
7/28/2019 Getting Started With Tasks
38/99
38
SAS Report Format
The SAS Report format enables you to combine multiple
task results into a single report. This report can be viewedin SAS applications or exported as HTML, XML, or PDF
files.
Banner image
Bar Chart task
One-WayFrequencies task
Summary
Statistics task
7/28/2019 Getting Started With Tasks
39/99
39
7/28/2019 Getting Started With Tasks
40/99
40
3.04 Multiple Answer Poll
Which output formats would you like to use in your work?
a. HTML
b. PDF
c. RTF
d. SAS Report
e. Text
7/28/2019 Getting Started With Tasks
41/99
41
3.05 Quiz
What are some advantages of each format?
7/28/2019 Getting Started With Tasks
42/99
42
3.05 Quiz Correct Answer
What are some advantages of each format?
HTML can be easily viewed by anyone who hasa browser.
RTF can be included and edited in common
word processors.
PDF is a good choice for printing and sharingstatic copies of the report.
SAS Report format is useful when you combine
task results or create reports to be viewed
in other SAS applications. Text is simple and familiar if you use the
SAS Display Manager.
7/28/2019 Getting Started With Tasks
43/99
43
Summary of Output Formats
HTML RTF PDF SAS
Report
Text
Software required
for viewing
outside of SAS
Enterprise Guide
Any
browser
(Internet
Explorer)
Any word
processor
(Microsoft
Word)
Adobe
Reader
Other SAS
applications
Any text
viewer
(Notepad)
Ability to combine
results into a
single document
Yes
(Tools
HTML
Document)
No
(Only with
code)
No
(Only
with
code)
Yes (File
New
Report)
No
(Only with
code)
Ability to editresults in viewing
software
No Yes No Yes Yes
Results formatted
for printing
No Yes Yes Yes Yes
7/28/2019 Getting Started With Tasks
44/99
44
Default Output Format
The default output format can be set underTools
OptionsResults General. Custom options can alsobe set for each of the output formats.
7/28/2019 Getting Started With Tasks
45/99
45
Overriding the Default Output Format
The properties of individual tasks can be modified
to override the default format and produce othertypes of results.
7/28/2019 Getting Started With Tasks
46/99
46
Modifying Output Format
This demonstration illustrates modifying the
properties of a task to produce HTML, PDF,RTF, or text output.
7/28/2019 Getting Started With Tasks
47/99
47
7/28/2019 Getting Started With Tasks
48/99
48
7/28/2019 Getting Started With Tasks
49/99
49
3.06 Quiz (Live Web Only)
1. Double-click on any One-Way Frequencies task in
the project. On the Results tab, select Modify Task.2. Select PropertiesEditResults.
3. Select Customize results formats, styles, and
behaviors and select the HTML style.
4. In the drop-down list, change the style to EGDefault.
5. Select OKRun. SelectYes when you are prompted
to replace the results.
7/28/2019 Getting Started With Tasks
50/99
50
3.06 Quiz Correct Answer
Confirm the results. Results might be different if you used
the One-Way Frequencies task results from the Level 2or Level 3 exercise.
7/28/2019 Getting Started With Tasks
51/99
51
Chapter 3: Getting Started with Tasks
3.1 Introduction to Tasks and Wizards
3.2 Creating a Frequency Report
3.3 Generating HTML, PDF, and RTF Output
3.4 Creating a Listing Report
3.5 Filtering Data in a Task
3.6 Creating a Graph
7/28/2019 Getting Started With Tasks
52/99
52
Objectives
Access the List Data task.
Set report options. Group the report.
7/28/2019 Getting Started With Tasks
53/99
53
Business Scenario
The Marketing Department at Orion Star would like to
create a customer list that includes ID, name, and agegroup. A separate report should be generated for each
country.
7/28/2019 Getting Started With Tasks
54/99
54
List Data Task
The List Data task displays
rows of data in a data set,including options to group
or sum columns.Group
rows.
Display
each row.
Sum
columns.
7/28/2019 Getting Started With Tasks
55/99
55
List Data: Task Roles
The List variables role indicates the columns that are
included in the report. Numeric variables can be assignedto the Total of role to calculate a sum.
7/28/2019 Getting Started With Tasks
56/99
7/28/2019 Getting Started With Tasks
57/99
57
Q
7/28/2019 Getting Started With Tasks
58/99
58
3.07 Quiz
1. Open any data source in your current project.
2. Select DescribeList Data in the data grid.3. Select Options from the Selection pane.
Which option can be used to eliminate the Row Number
column from the report?
3 0 Q i C A
7/28/2019 Getting Started With Tasks
59/99
59
3.07 Quiz Correct Answer
Which option can be used to eliminate the Row Number
column from the report?
7/28/2019 Getting Started With Tasks
60/99
60
Using the List Data Taskto Create a Report
This demonstration
illustrates how to usethe List Data task to
create a listing report.
7/28/2019 Getting Started With Tasks
61/99
61
Ch t 3 G tti St t d ith T k
7/28/2019 Getting Started With Tasks
62/99
62
Chapter 3: Getting Started with Tasks
3.1 Introduction to Tasks and Wizards
3.2 Creating a Frequency Report
3.3 Generating HTML, PDF, and RTF Output
3.4 Creating a Listing Report
3.5 Filtering Data in a Task
3.6 Creating a Graph
Obj ti
7/28/2019 Getting Started With Tasks
63/99
63
Objectives
Filter data directly in a task.
Using various operators, build multiple filter criteria.
B i S i
7/28/2019 Getting Started With Tasks
64/99
64
Business Scenario
The Marketing Department at Orion Star wants to run
a special promotion targeted at high-activity Orion Clubmembers who were born in 1970 or later.
Filt i I t D t
7/28/2019 Getting Started With Tasks
65/99
65
Filtering Input Data
The Edit button enables you to apply filters on the input
data to select which rows should be included in the taskor wizard.
Edit D t d Filt Wi d
7/28/2019 Getting Started With Tasks
66/99
66
Edit Data and Filter Window
The Edit Data and Filter window enables you to build
multiple filters using operators and data values.
7/28/2019 Getting Started With Tasks
67/99
67
Filtering Data in a Task
This demonstration illustrates using the
Edit and Filter Data window to modify theinput data for a task.
7/28/2019 Getting Started With Tasks
68/99
68
7/28/2019 Getting Started With Tasks
69/99
69
Exercise
This exercise reinforces the concepts
discussed previously.
7/28/2019 Getting Started With Tasks
70/99
70
Chapter 3: Getting Started with Tasks
7/28/2019 Getting Started With Tasks
71/99
71
Chapter 3: Getting Started with Tasks
3.1 Introduction to Tasks and Wizards
3.2 Creating a Frequency Report
3.3 Generating HTML, PDF, and RTF Output
3.4 Creating a Listing Report
3.5 Filtering Data in a Task
3.6 Creating a Graph
Objectives
7/28/2019 Getting Started With Tasks
72/99
72
Objectives
Name the types of graphs that are supported
in SAS Enterprise Guide. State the differences among the output formats
that are supported in SAS Enterprise Guide.
Create a bar chart.
Business Scenario
7/28/2019 Getting Started With Tasks
73/99
73
Business Scenario
To better understand the demographics of the Orion Star
customers, management wants to see a comparison ofaverage customer age by country.
Graphs Using SAS Enterprise Guide
7/28/2019 Getting Started With Tasks
74/99
74
Graphs Using SAS Enterprise Guide
Types of Graphs
7/28/2019 Getting Started With Tasks
75/99
75
Types of Graphs
The Graph menu
includes all of theadvanced graph tasks
as well as the wizards.
Output Formats for Graphs
7/28/2019 Getting Started With Tasks
76/99
76
Output Formats for Graphs
Different graph formats enable you to produce interactive
and non-interactive results.
7/28/2019 Getting Started With Tasks
77/99
77
3 08 Multiple Answer Poll
7/28/2019 Getting Started With Tasks
78/99
78
3.08 Multiple Answer Poll
Which types of graphs would you like to use to display
your data?a. Bar chart
b. Pie chart
c. Line plot
d. Scatter plote. Surface plot
f. Map
g. Other
Bar Chart Wizard
7/28/2019 Getting Started With Tasks
79/99
79
Bar Chart Wizard
The Bar Chart wizard enables you to do the following:
1. select and filter the data2. assign variables to roles
3. customize appearance
4. set titles and footnotes
7/28/2019 Getting Started With Tasks
80/99
80
3 09 Quiz
7/28/2019 Getting Started With Tasks
81/99
81
3.09 Quiz
An example of a graph created with the Bar Chart wizard
is shown below. What would you like to modify to furtherenhance the display?
3 09 Quiz Correct Answer
7/28/2019 Getting Started With Tasks
82/99
82
3.09 Quiz Correct Answer
Possible modifications include the following:
rounding values to the nearest dollar changing the output format
adding more descriptive axis labels
changing the shape
of the bars changing the color
of reference lines
Bar Chart: Advanced View
7/28/2019 Getting Started With Tasks
83/99
83
Bar Chart: Advanced View
To make further enhancements to the graph, you might
need to open the task in Advanced View, which gives youaccess to additional options that are not available in the
wizard.
After you run a task in Advanced View, you cannot return
to the wizard.
Bar Chart Task: Advanced View
7/28/2019 Getting Started With Tasks
84/99
84
Bar Chart Task: Advanced View
The Advanced View of the Bar Chart task includes
additional options, such as changing bar shape,formatting data values, and modifying reference lines.
7/28/2019 Getting Started With Tasks
85/99
85
Setup for the Poll
7/28/2019 Getting Started With Tasks
86/99
86
Setup for the Poll
1. Open any data source in the project and select
Graph
Bar Chart Wizard.2. In step 2, choose any column for the Bars role
and select Finish.
3. In the Project Tree or Process Flow window,
right-click on the Bar Chart task icon andselect OpenOpen in Advanced View.
3 10 Multiple Choice Poll
7/28/2019 Getting Started With Tasks
87/99
87
3.10 Multiple Choice Poll
Which item from the Selection pane enables you to define
custom colors for each of the bars?a. Bar Chart
b. Bars
c. Layout
d. Advanced
7/28/2019 Getting Started With Tasks
88/99
Bar Chart Task: Final Results
7/28/2019 Getting Started With Tasks
89/99
89
Bar Chart Task: Final Results
7/28/2019 Getting Started With Tasks
90/99
7/28/2019 Getting Started With Tasks
91/99
91
7/28/2019 Getting Started With Tasks
92/99
92
Exercise
This exercise reinforces the concepts
discussed previously.
7/28/2019 Getting Started With Tasks
93/99
93
Chapter Review
7/28/2019 Getting Started With Tasks
94/99
94
Chapter Review
1. What is a task?
2. What selection panes of the task dialog boxes are
common to most tasks?
3. What is the default output format for any report?
Chapter Review Answers
7/28/2019 Getting Started With Tasks
95/99
95
Chapter Review Answers
1. What is a task?
2. What selection panes of the task dialog boxes are
common to most tasks?
3. What is the default output format for any report?
Atask
is a specific type of analysis, report, or datamanipulation that you can perform against data in
a project.
The selection panes common to most tasks are
Data, Titles, and Properties.
SAS Report
Chapter Review
7/28/2019 Getting Started With Tasks
96/99
96
Chapter Review
4. How can you specify a different output format
for a specific task result?
Chapter Review Answers
7/28/2019 Getting Started With Tasks
97/99
97
p
4. How can you specify a different output format
for a specific task result?To specify a different report format for a specific
result, select the Properties pane for the task,
select the Edit button, and select the Results
pane. Select the Customize result formats, styles,and behavior radio button. Select the desired
output format and style.
Chapter Review
7/28/2019 Getting Started With Tasks
98/99
98
p
5. There are two types of reports: summary and detailed
reports. What type of report does the One-WayFrequencies task produce and what type of report
does the List Data task produce?
6. A bar chart can be created via the Bar Chart wizard. In
the wizard, can you change the properties of a column
(for instance, specify a format or a label)? If not, how
can you do so?
Chapter Review Answers
7/28/2019 Getting Started With Tasks
99/99
p
5. There are two types of reports: summary and detailed
reports. What type of report does the One-Way
Frequencies task produce and what type of report
does the List Data task produce?
6. A bar chart can be created via the Bar Chart wizard. In
the wizard, can you change the properties of a column
(for instance, specify a format or a label)? If not, how
can you do so?
The One-Way Frequencies task produces a
summary report and the List Data task produces
a detailed report.
The properties of a column cannot be changed in
the wizard. They can be modified in the Advanced