Professional Documents
Culture Documents
Course Notes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Creating Business Intelligence for Your Organization: Fast Track Course Notes was developed by Eric
Rossland. Additional contributions were made by Richard Bell, Marty Flis, Anita Hillhouse, Linda Jolley,
Kari Richardson, Christine Vitron, and James Waite. Editing and production support was provided by the
Curriculum Development and Support Department.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of
SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product
names are trademarks of their respective companies.
Creating Business Intelligence for Your Organization: Fast Track Course Notes
Copyright 2011 SAS Institute Inc. Cary, NC, USA. All rights reserved. Printed in the United States of
America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written
permission of the publisher, SAS Institute Inc.
Book code E2028, course code SBAFT43, prepared date 24Oct2011. SBAFT43_001
ISBN 978-1-61290-061-2
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
For Your Information iii
Table of Contents
Prerequisites ................................................................................................................................. x
1.1 Exploring the Platform for SAS Business Analytics ....................................................... 1-3
2.1 Defining the Business User Role and Reporting Applications ........................................ 2-3
2.2 Exploring the SAS Add-In for Microsoft Office ............................................................. 2-6
Demonstration: Using the SAS Add-In for Microsoft Office ................................. 2-22
2.5 Defining the BI Content Developer Role and Applications ........................................... 2-76
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
iv For Your Information
3.2 Creating Data Sources for Reporting and Analysis ......................................................... 3-8
Demonstration: Creating a New SAS Data Integration Studio Job......................... 3-12
4.4 Creating Prefilters to Subset the Information Map Data ................................................ 4-65
Demonstration: Using Prefilters .............................................................................. 4-75
4.5 Building an Information Map from a SAS OLAP Cube ................................................ 4-84
Demonstration: Creating an Information Map Using an OLAP Cube .................... 4-88
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
For Your Information v
5.2 Creating a Stored Process from a SAS Enterprise Guide Project .................................. 5-19
Demonstration: Creating New Stored Processes Using SAS Enterprise Guide ...... 5-35
Exercises.................................................................................................................. 5-46
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
vi For Your Information
9.1 Reviewing the Platform for SAS Business Analytics ...................................................... 9-3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
For Your Information vii
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
viii For Your Information
Course Description
This intensive training course provides accelerated learning for those students who will build reports,
analyses, and dashboards for consumption by business users and other information consumers in their
organization. This course is for individuals who are comfortable with learning large amounts of
information in a short period of time. The Creating Business Intelligence for Your Organization 1:
Essentials and Creating Business Intelligence for Your Organization 2: Additional Topics courses are
available to provide the same type of information in a much more detailed approach over a longer period
of time.
To learn more
For information about other courses in the curriculum, contact the SAS
Education Division at 1-800-333-7660, or send e-mail to training@sas.com.
You can also find this information on the Web at support.sas.com/training/
as well as in the Training Course Catalog.
For a list of other SAS books that relate to the topics covered in this
Course Notes, USA customers can contact our SAS Publishing Department
at 1-800-727-3228 or send e-mail to sasbook@sas.com. Customers outside
the USA, please contact your local SAS office.
Also, see the Publications Catalog on the Web at support.sas.com/pubs for
a complete list of books and a convenient order form.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
For Your Information ix
Prerequisites
No SAS experience or programming experience is required, although you should have some computer
experience. Specifically, you should
be able to log on and off a computer and use a keyboard or mouse
have some experience using Microsoft Word and Microsoft Excel (specifically, you should be able to
open and save documents, use the menus and toolbars to accomplish tasks, and navigate Word
documents and Excel spreadsheets)
know how to use a Web browser to access information.
Experience with SAS programming and/or SAS Enterprise Guide is helpful but not required. You can
gain SAS programming experience by attending the SAS Programming 1: Essentials course. You can gain
SAS Enterprise Guide experience by attending the SAS Enterprise Guide 1: Querying and Reporting
course.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
x For Your Information
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 1 Introduction
1.1 Exploring the Platform for SAS Business Analytics ................................................... 1-3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-2 Chapter 1 Introduction
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring the Platform for SAS Business Analytics 1-3
Objectives
Compare the two types of SAS installations.
Define the architecture of the platform for
SAS Business Analytics.
List the SAS platform applications used
for data management, reporting, and analytics.
Describe the SAS Folders tree.
SAS Foundation is the traditional SAS installation, which enables you to write SAS programs or use a
point-and-click application such as SAS Enterprise Guide to assist with creating programs.
The platform for SAS Business Analytics is enterprise software that uses multiple machines throughout the
organization. This SAS platform consists of applications that help you accomplish the various tasks for
accessing and creating information, as well as performing analysis and reporting.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-4 Chapter 1 Introduction
1.01 Poll
Do you use the SAS windowing environment?
Yes
No
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring the Platform for SAS Business Analytics 1-5
1.02 Poll
Do you use SAS Enterprise Guide?
Yes
No
10
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-6 Chapter 1 Introduction
11
The platform for SAS Business Analytics is also known as the SAS Enterprise Intelligence
Platform and the SAS Intelligence Platform.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring the Platform for SAS Business Analytics 1-7
middle tier
server tier
data tier
12
The client tier consists of different applications that are typically installed on each users machine.
The middle tier is where the Web applications reside and execute.
The server tier consists of one or more machines where the SAS servers are installed and accessed by the
SAS platform applications.
The data tier contains the enterprise data sources.
The metadata server and metadata repositories are used to manage information about the entire
environment, including server definitions; data definitions; users and groups; security settings; and
business intelligence content.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-8 Chapter 1 Introduction
Channels Cubes
Dashboards Folders
Prompts Reports
13
1
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring the Platform for SAS Business Analytics 1-9
14
1
4
BILineage Is the custom repository that contains scan results from the BILineage plug-in.
Products Contains objects that are installed with a SAS application, such as sample
libraries, tables, and stored processes.
Shared Data Provides a place to store content that is shared among multiple users.
System Contains SAS system objects such as object type definitions. Depending on the
application that you are using and the authorization settings, this folder and its
subfolders might not be visible.
Users Contains user home folders. A user's My Folder folder is a subfolder of the
user's home folder. Depending on the application that you are using, this folder
and its subfolders might not be visible.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-10 Chapter 1 Introduction
15
1
5
Metadata Roles
Roles determine which user interface elements a user
sees when interacting with an application. The various
features in applications that provide role-based
management are called capabilities.
16
1
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.1 Exploring the Platform for SAS Business Analytics 1-11
SAS Data Integration Studio SAS Enterprise Guide SAS Information Delivery Portal
SAS OLAP Cube Studio SAS Visual BI (JMP) SAS Web Report Studio
SAS Information Map Studio SAS Forecast Studio SAS Add-In for Microsoft Office
17
The SAS platform applications were created to organize the functions of various job roles into the
different applications. Instead of having one large client application that does everything for all people
across the organization, there are several applications to accomplish these tasks.
Some of these applications are installed on each users machine; others are accessed using a Web browser.
The applications listed above are not all of the applications available with the SAS platform.
19
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-12 Chapter 1 Introduction
Objectives
List the job roles used by SAS Education for grouping
training on the SAS platform.
Describe the different types of SAS platform
applications.
Explain the SAS Prompting Framework.
Describe the two parts of prompting.
23
BI content developer
Business user
Platform administrator
Project manager
24
2
4
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Introducing the SAS Education Job Roles 1-13
BI Applications Developer
BI applications developers build, implement,
and customize applications.
The software and applications primarily used by
BI applications developers include the following:
SAS AppDev Studio
SAS/AF
SAS/IntrNet
25
2
5
BI Content Developer
BI content developers understand not only their
organizations data, but also the applications
required to create reports and analyses suitable
for business users and other information
consumers.
The software and applications primarily used by
BI content developers include the following:
SAS BI Dashboard
SAS Visual BI
26
2
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-14 Chapter 1 Introduction
Business User
Business users include middle managers and
other information consumers who access
existing information and create ad hoc reports
and analyses using point-and-click applications.
The software and applications primarily used by business
users include the following:
SAS Add-In for Microsoft Office
27
2
7
28
2
8
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Introducing the SAS Education Job Roles 1-15
29
2
9
Platform Administrator
Platform administrators are responsible for
installing, configuring, and maintaining the
platform for SAS Business Analytics.
The software and applications primarily used
by platform administrators include the following:
platform for SAS Business Analytics
30
3
0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-16 Chapter 1 Introduction
Project Manager
Project managers are responsible for
establishing a set of best practices to
ensure the integrity and quality of projects.
31
3
1
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.2 Introducing the SAS Education Job Roles 1-17
Exercises
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-18 Chapter 1 Introduction
Do not use the 64-bit version of Internet Explorer on the classroom machines.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Introducing the Course Environment and Scenario 1-19
Objectives
Describe the classroom environment.
Describe the course scenario.
38
Classroom Environment
During this course, you use a classroom machine where
the SAS platform has been installed and configured in a
single-machine environment.
The single-machine environment provides an easy way
for each student to learn how to interact with the SAS
platform without impacting other students.
The classroom environment includes the following
predefined elements in the SAS metadata:
Users for the various job roles
Groups
39
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-20 Chapter 1 Introduction
Course Data
The data used in the course is from a fictitious
global sports and outdoors retailer named Orion Star
Sports & Outdoors.
40
Course Data
The Orion Star data used in the course consists
of the following:
Data ranging from 2003 through 2007
64 suppliers
41
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.3 Introducing the Course Environment and Scenario 1-21
Users
Groups
Ellen
Henri
Sales
Marketing
42
4
2
43
4
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-22 Chapter 1 Introduction
Discussion
44
45
4
5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions 1-23
1.4 Solutions
Solutions to Exercises
1. Locating the SAS Platform Applications
a. Log on to your classroom machine with the user name and password provided by your instructor.
b. Look in the default location (Start All Programs SAS) for the SAS platform applications
on your local machine.
c. Which of the following applications are available from the default location?
___ SAS Add-In for Microsoft Office
___ SAS BI Dashboard
X SAS Data Integration Studio
X SAS Enterprise Guide
___ SAS Information Delivery Portal
X SAS Information Map Studio
X SAS Management Console
X SAS OLAP Cube Studio
___ SAS Stored Process Web Application
___ SAS Web Report Studio
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-24 Chapter 1 Introduction
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1.4 Solutions 1-25
20
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
1-26 Chapter 1 Introduction
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 2 Overview of the Business
User Reporting Applications
2.1 Defining the Business User Role and Reporting Applications .................................. 2-3
2.2 Exploring the SAS Add-In for Microsoft Office ............................................................ 2-6
Demonstration: Using the SAS Add-In for Microsoft Office ................................................. 2-22
2.5 Defining the BI Content Developer Role and Applications ....................................... 2-76
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-2 Chapter 2 Overview of the Business User Reporting Applications
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Defining the Business User Role and Reporting Applications 2-3
Objectives
Describe the benefits of SAS Business Intelligence
and SAS Reporting.
List the SAS platform applications for business
intelligence and reporting.
4
4
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-4 Chapter 2 Overview of the Business User Reporting Applications
SAS Data Integration Studio SAS Enterprise Guide SAS Information Delivery Portal
SAS OLAP Cube Studio SAS Visual BI (JMP) SAS Web Report Studio
SAS Information Map Studio SAS Forecast Studio SAS Add-In for Microsoft Office
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.1 Defining the Business User Role and Reporting Applications 2-5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-6 Chapter 2 Overview of the Business User Reporting Applications
Objectives
Identify the SAS Add-In for Microsoft Office tab
on the Microsoft Office ribbon.
Explore the SAS Add-In for Microsoft Office options.
Describe the purpose of connection profiles.
11
SAS Reporting
MEASURE MONITOR ANALYZE ACT
12
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-7
13
15
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-8 Chapter 2 Overview of the Business User Reporting Applications
16
17
The SAS add-in requires Microsoft Office 2000 or newer. The SAS Add-In for Microsoft Office
integration with Microsoft Outlook is supported for Microsoft Outlook 2007 and higher and
requires SAS 9.2 or later versions of SAS.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-9
Below are the SAS Add-In for Microsoft Office menu bars and toolbars from Office 2003.
Excel:
PowerPoint/Word:
Excel: PowerPoint/Word:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-10 Chapter 2 Overview of the Business User Reporting Applications
Context-Sensitive Ribbon
Additional groups become available depending on the
type of SAS content that you select.
18
With Microsoft Excel, Microsoft Word, and Microsoft PowerPoint, the Insert, Selection, and
Tools groups should always be available. Additional groups and options become available as
you select SAS content or work with data sources in Microsoft Excel.
19
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-11
21
Connection
SAS Add-In for Profile SAS Metadata
Microsoft Office Server
22
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-12 Chapter 2 Overview of the Business User Reporting Applications
Connections Window
The Connections window is how you manage your
connection profile. To access the Connections window
in the SAS add-in, select Tools Connections
from the SAS tab on the Office ribbon.
23
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-13
The Servers section in the Connections window enables you to select the default metadata server to be
accessed by the active profile. You need to connect to a metadata server to access SAS data sources and
run SAS tasks.
The Updates section in the Connections window enables you to specify that you want to automatically
update the configuration for your connection. Automatic updating is available when a configuration
update file is stored in a network location.
25
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-14 Chapter 2 Overview of the Business User Reporting Applications
26
Accessing Data
Using the SAS add-in, you can access many types
of data sources. These data sources can be used
to generate ad hoc reports or analyses, the results
of which can be embedded in your documents,
spreadsheets, or slide shows.
In general, you can use the SAS add-in to access
and view the following types of information:
SAS relational data sources
27
2
7
The SAS add-in can access only SAS Information Maps that use relational tables as the data
source. Information maps that use a SAS OLAP cube as the data source are not available in the
SAS add-in.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-15
PivotTable
28
2
8
You cannot open a data source in Microsoft Word, Microsoft PowerPoint, or Microsoft Outlook.
2
9
29 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-16 Chapter 2 Overview of the Business User Reporting Applications
30
3
0
31
3
1
Information maps created on OLAP cubes with SAS Information Map Studio are not supported in
the SAS add-in.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-17
Data Warehouse
32
What Is OLAP?
Online Analytical Processing, or OLAP, is an approach
to quickly answer analytical queries against
multidimensional data.
OLAP performs multidimensional analysis of business
data and provides the capability for complex calculations,
trend analysis, and sophisticated data modeling.
OLAP is part of the broader category of business
intelligence, which also encompasses relational reporting
and data mining.
33
3
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-18 Chapter 2 Overview of the Business User Reporting Applications
35
3
5
SAS tasks
SAS wizards
37
3
7
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-19
39
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-20 Chapter 2 Overview of the Business User Reporting Applications
40
4
0
2.05 Poll
A knowledge of programming is necessary to use
a SAS Stored Process.
True
False
42
4
2
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-21
45
4
5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-22 Chapter 2 Overview of the Business User Reporting Applications
This demonstration illustrates how to use the SAS add-in to access data from the server in Microsoft
Excel. You use that data to create analyses and reports and open existing reports into the various
Microsoft Office applications.
1. Open Excel by selecting Start All Programs Microsoft Office Microsoft Excel 2010.
2. Click the SAS tab from the Excel ribbon.
The instructions and displays in this course are specific to Microsoft Office 2010.
The machines for this course are configured so that Jacques user credentials are saved in the
SAS connection profile of the SAS add-in.
You can change the connection profile information by selecting Tools Connections from
the SAS tab.
4. When the View SAS Data window appears, select Browse.
5. Verify that SAS Folders is selected in the selection pane on the left side of the Open Data Source
window.
6. Select Orion Star Open (or double-click Orion Star).
7. Select Marketing Department Open.
8. Select Data Open.
The Data folder displays a listing of all the data sources that you have permission to view.
Many of the displays in this course might contain information that is slightly different from
what you see on your classroom machine.
9. Select Orion Star Customers Open (or double-click the table name).
Although the Open Data Source window displays the metadata name of the data source
(Orion Star Customers), the filename (CUSTOMER_DIM) is displayed in the File name
field. The filename is also used in several other places in the SAS add-in.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-23
Microsoft Excel imposes a 31-character limit for worksheet names. If your name is longer
than 31 characters, it will be truncated.
You can easily change the name of a worksheet after you add content to it. To rename a
worksheet, right-click on the tab and select Rename.
12. Click OK to load the data into the new worksheet.
13. The SAS Status for Microsoft Excel window appears by default. Click to close it.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-24 Chapter 2 Overview of the Business User Reporting Applications
Excel 2007 and Excel 2010 limit the number of rows and columns available in a worksheet to slightly
more than one million rows and 16,000 columns.
By adding data sources to your workbook using the SAS add-in, you can open data sources that are larger
than the limits imposed by Excel. The SAS add-in has options to set the number of rows to view at one
time, and provides a mechanism to select only the columns that you want to see.
1. Click the SAS tab from the Excel ribbon.
2. Click on the range of records (1-500) from the SAS tab to change the starting point
The arrow tools in the Navigate section of the SAS tab enable you to scroll through the data. The
arrows with the bars next to them take you to the first or last page of the data. The single arrows scroll
one page of data at a time (500 records by default).
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-25
1. Use the One-Way Frequencies task to analyze the Customer Demographic data.
a. Select Tasks Describe One-Way Frequencies.
b. Accept the default values in the Input Data window and click OK.
The One-Way Frequencies window appears with the first item selected in the selection pane on the
left. The Data selection enables you to choose how you want to use each variable.
2. Select Customer Age and drag and drop it on top of the Analysis variables task role.
3. Select Customer Gender and drag and drop it on top of the Group analysis by task role.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-26 Chapter 2 Overview of the Business User Reporting Applications
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-27
13. Click to view the SAS code that is created for you.
14. Click in the upper right corner of the Code Preview for Task window to close it.
15. Click Run to run the task and view the results.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-28 Chapter 2 Overview of the Business User Reporting Applications
The SAS program is submitted to the server for processing. When the processing is complete, the
results are returned to the new worksheet. Scroll down to see the values for both genders.
16. Use the Table Analysis task to further analyze the Customer Demographic data.
a. Select Tasks Describe Table Analysis.
b. Click the radio button for New Worksheet and accept the default name.
c. Click OK.
17. Select Customer Gender and drag and drop it on top of the Table variables task role.
18. Select Customer Country and drag and drop it on top of the Table variables task role.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-29
22. Select Cell Statistics from the selection pane on the left.
23. Clear Column percentages.
24. Select Titles from the selection pane on the left.
25. Verify that Table Analysis is selected in the Section field.
26. Clear the Use default text check box.
27. Replace the default analysis title by typing Customer Gender Analysis.
28. Select Footnote in the Section field.
29. Clear the Use default text check box.
30. Use the BACKSPACE or DELETE key to remove the default footnote.
31. Click Run to run the task and view the results.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-30 Chapter 2 Overview of the Business User Reporting Applications
The SAS program is submitted to the server for processing and the results are returned to the new
worksheet.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-31
When you create results in Excel, you can use the SAS add-in to send those results to a Word document or
PowerPoint presentation.
1. Select Manage Content on the SAS tab.
The Manage Content window appears and displays the SAS results in the current Excel workbook.
Data that was opened into a worksheet or PivotTable cannot be sent to Word or PowerPoint.
2. In this demonstration, you only want to send the table analysis results to Word. Click the
Table Analysis check box.
3. Click Send to.
4. Click the Send to Microsoft Word check box.
5. Click OK.
6. Click Close to close the Manage Content window.
7. Save the new workbook and close Microsoft Excel.
a. Select File Save As.
b. Navigate to S:\Workshop\sbaft43.
c. Type FT Customer Analysis in the File name field.
d. Click Save.
e. Click File Exit to close Microsoft Excel.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-32 Chapter 2 Overview of the Business User Reporting Applications
The results of the Table Analysis are displayed in a new Microsoft Word document.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-33
9. Click OK.
The results are re-created using the new style.
By default, the SAS Status for Microsoft Word window appears. You can select to not display
this window by setting the same option that you specified earlier in Excel. This option must
be set for each Microsoft Office application supported by the SAS add-in.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-34 Chapter 2 Overview of the Business User Reporting Applications
1. Scroll to the bottom of the Word document and insert a new line after the frequency table.
Because SAS content is added to a Word document wherever the cursor is located, it is
important to pay attention to the cursor location.
2. If necessary, click the SAS tab.
3. Select Tasks Graph Pie Chart Wizard.
The SAS add-in remembers the last data source that you selected and uses it by default.
4. Click OK.
The Pie Chart wizard opens to the first step, which enables you to verify the data.
5. Click Next to move to Step 2.
6. Select Customer_Age_Group as the value for the Slice field.
7. Select (Percentage) as the value for the Slice size field.
8. Click the Group by check box.
9. Select Customer_Gender as the value for the Group by field.
The Sample chart area is updated to provide a visual representation of the chart that will be created
based on your selections.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-35
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-36 Chapter 2 Overview of the Business User Reporting Applications
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-37
f. Select the Sales by Order Type and Age Group stored process.
g. Click Open.
Because this stored process has a parameter, you are prompted to select a year.
h. Select 2007.
i. Click Run.
j. The results are added to the PowerPoint slide and a new slide is displayed. Select the first slide.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-38 Chapter 2 Overview of the Business User Reporting Applications
2. Click the icon next to SAS Central (My Server) in the Outlook Navigation pane.
3. Click next to the Orion Star and Marketing Department folders to expand them.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.2 Exploring the SAS Add-In for Microsoft Office 2-39
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-40 Chapter 2 Overview of the Business User Reporting Applications
A new e-mail message window appears. The report is included in the body of the e-mail as well as a
link to view the report in SAS Web Report Studio.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-41
Objectives
View a report in SAS Web Report Studio.
Use the online Help facility.
50
51
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-42 Chapter 2 Overview of the Business User Reporting Applications
2.07 Poll
Have you ever created a SAS report using SAS Web
Report Studio?
Yes
No
53
54
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-43
Role-Based Capabilities
Roles determine which user interface elements, known
as capabilities, a user sees when interacting with an
application.
SAS Web Report Studio is one of several SAS platform
applications that provide role-based capabilities.
Different users who access these applications might have
different interface elements available to them. What you
have access to in the classroom might also be different
from what you have access to at your site.
55
The ability to access the SAS Web Report Studio features, as well as access to the various
data sources and reports, is controlled by the platform administrator.
View reports
Navigate reports
56
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-44 Chapter 2 Overview of the Business User Reporting Applications
View Mode
View mode is used to view and interact with the contents
of the various report objects.
57
58
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-45
Edit Mode
Edit mode gives you
complete control
for designing and
editing reports. You
use the Data panel
and the report body
to construct your
report.
Report
Data Body
Panel
59
60
Whether you can copy a section in View mode is determined by your role.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-46 Chapter 2 Overview of the Business User Reporting Applications
61
Report Body
The report body of Edit mode is used to select report
objects and control how they are positioned in the report
grid. Headers and footers can also be configured in this
section of Edit mode.
62
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-47
63
Edit Mode
Edit mode gives you
complete control for
designing and
editing reports. You
use the Data panel
and the report body
to construct your
report.
Data
Panel Report
Body
64
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-48 Chapter 2 Overview of the Business User Reporting Applications
65
66
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-49
68
70
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-50 Chapter 2 Overview of the Business User Reporting Applications
71 items
72
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-51
Formatting Data
Some data items enable you to apply a format to
the underlying data. A format provides instructions
about how to display the data values in a report.
73
If an alphanumeric category that is physically stored as character data does not have any
predefined formats available to choose from, then the Define a Format window is not available.
74
In SAS Web Report Studio, predefined formats are available only if the data item is from a
relational data source and only if the data item was prepared by the data source administrator
to offer predefined formats.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-52 Chapter 2 Overview of the Business User Reporting Applications
75
Types of Filters
There are two types of filters:
Section filters
76
7
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-53
Section Filters
Section filters subset the data
for all of the report objects in
a selected section.
Prompted Filters
A section filter can
be a prompted
filter. In this case,
the values within
the prompted filter
are obtained
immediately
before the report
section is run.
78
Prompted filters are used for report sections, stored processes, and information maps.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-54 Chapter 2 Overview of the Business User Reporting Applications
This demonstration illustrates how to use SAS Web Report Studio to build a new report. You also modify
the initial report to add additional functionality.
1. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or by selecting
Start All Programs Internet Explorer.
On the classroom machines, do not use the 64-bit version of Internet Explorer.
2. From the browser window, select Favorites SAS Web Report Studio. The SAS Web Report
Studio logon page appears.
The URL used to access SAS Web Report Studio on the classroom machines is specific to the
classroom configuration. The URL used at your site will be different.
3. Type Eric in the User name field and use the password provided by your instructor.
4. Click Log On.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-55
10. Click the Edit tab to modify the report by selecting additional data items and changing the report
objects to display the data differently.
11. Select Data Select Data to choose additional data items.
a. Double-click Company to remove it from the Selected data items list box.
b. Click OK in the message window.
c. Double-click Customer Age Group to remove it from the Selected data items list box.
d. Click OK in the message window.
e. Double-click Customer Country to add it to the Selected data items list box.
f. Double-click Customer Gender to add it to the Selected data items list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-56 Chapter 2 Overview of the Business User Reporting Applications
g. Double-click Quantity Ordered to add it to the Selected data items list box.
h. Double-click Total Retail Price For This Product to add it to the Selected data items list box.
i. Select Cost Price Per Unit in the Selected data item list box. Click repeatedly to move the
data item between Quantity Ordered and Total Retail Price For This Product.
The Select Data window should resemble the following:
j. With Cost Price Per Unit selected, click near the bottom right corner of the window.
l. Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-57
m. Select Total Retail Price For This Product in the Selected data item list box.
n. Click .
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-58 Chapter 2 Overview of the Business User Reporting Applications
1) Click (the Insert Crosstab icon) to inset a crosstab report object into the open cell of the
report grid.
2) Right-click the new crosstab tab object and select Assign Data.
3) Verify that the data items assignments match the following:
e. Click OK.
13. Click the report grid cell with the crosstab object to select it.
14. Click (the Insert Row After icon) to add a new row to the report grid.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-59
e. Click OK.
16. Add a header to the report.
a. Click Header and select Edit.
b. Select Orion Star Report Header as the value for the Banner image field.
c. Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-60 Chapter 2 Overview of the Business User Reporting Applications
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.3 Exploring SAS Web Report Studio 2-61
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-62 Chapter 2 Overview of the Business User Reporting Applications
The report is updated and only displays values for the selected countries.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.4 Exploring the SAS Information Delivery Portal 2-63
Objectives
Define the SAS Information Delivery Portal.
Distinguish between the two methods of
organizing portal content: pages and portlets.
List the types of content that can be presented
in the portal.
82
8
2
83
8
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-64 Chapter 2 Overview of the Business User Reporting Applications
Portal Organization
The portal uses pages and portlets to deliver customized
information to your Web browser.
Pages
Portlet
84
8
4
Pages
A page is a method of organizing information in the portal.
You can create, add, edit, rearrange, and remove pages
from your portal view.
This view
contains
two pages.
85
8
5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.4 Exploring the SAS Information Delivery Portal 2-65
Portlets
A portlet is a rectangular display component of the portal
in which content and links to content are displayed.
You can create, add, edit, rearrange, and remove portlets
on a page.
This page
contains
four portlets.
86
8
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-66 Chapter 2 Overview of the Business User Reporting Applications
SAS reports
SAS Packages
Publication channels
Syndication channels
87
8
7
Links represent content that is accessible using a Uniform Resource Locator (URL).
SAS Information Maps are a collection of data items and filters that provide a business-specific view
of physical data.
SAS reports are documents created in a standard format and stored in the SAS Folders structure in
metadata.
SAS Stored Processes are SAS programs that are stored in a central location.
SAS BI Dashboards surface information in a graphical format.
SAS packages are a combination of various SAS files such as reports, stored processes, and data sets.
Publication channels are channels that are established using the SAS Publishing Framework and that can
be used to publish information to users and applications.
Syndication channels are channels that provide syndicated, continuously updated Web content. One or
more syndication channels can be available for you to access in the portal.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.4 Exploring the SAS Information Delivery Portal 2-67
89
8
9
91
9
1
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-68 Chapter 2 Overview of the Business User Reporting Applications
93
9
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.4 Exploring the SAS Information Delivery Portal 2-69
This demonstration illustrates how to access a predefined portal view and interact with existing SAS
content.
1. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or by selecting
Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS Information Delivery Portal.
The SAS Information Delivery Portal logon page appears.
The URL used to access SAS Information Delivery Portal on the classroom machines is
specific to the classroom configuration. The URL used at your site will be different.
3. Type Eric in the User name field and use the password provided by your instructor.
4. Click Log On.
The SAS Information Delivery Portal appears and displays Erics predefined portal view.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-70 Chapter 2 Overview of the Business User Reporting Applications
a. Click on the Orion France tile in the tile chart. Because this dashboard has a brush interaction
defined between both indicators, the corresponding row in the spark table is highlighted.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.4 Exploring the SAS Information Delivery Portal 2-71
b. Select Orion Belgium in the spark table. In this dashboard, the interaction between the indicators
is defined in both directions so the corresponding tile is highlighted in the tile chart.
6. Use the SAS Collection portlet (named My SAS Collection) to run a stored process.
a. Double-click Sales by Order Type and Age Group.
b. Accept the default value when you are prompted to select a year and click Run.
The results appear in a new browser window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-72 Chapter 2 Overview of the Business User Reporting Applications
7. Use the SAS Navigator portlet to locate and open an information map.
The SAS Navigator portlet is used to navigate through the SAS Folders to select items to view.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.4 Exploring the SAS Information Delivery Portal 2-73
8. Use the SAS Report portlet to view a report and access SAS Web Report Studio.
The SAS Report portlet (named Sales Distribution by Product Line) displays a single
SAS report.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-74 Chapter 2 Overview of the Business User Reporting Applications
This report section contains a crosstab report object with conditional highlighting. The data
source for this report is an information map based on an OLAP cube. Therefore, the values in the
columns and rows provide icons for navigating through the dimensional hierarchies.
b. Click (the Manage Dashboards icon) in the right corner to open the Dashboard Designer.
c. In the Object pane on the left side of the window, double-click Orion Star
Marketing Department Dashboards.
d. Double-click RNG_Sales by Company.rdx to open the range.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.4 Exploring the SAS Information Delivery Portal 2-75
j. Click Return to Portal in the upper right corner to return to the portal.
10. Click Log Off Eric in the upper right corner to log off from the portal.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-76 Chapter 2 Overview of the Business User Reporting Applications
Objectives
Describe the applications typically used by BI content
developers.
Describe the types of SAS objects used for reporting
and analysis, and which of the SAS applications support
each type.
98
9
8
SAS Visual BI
99
9
9
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.5 Defining the BI Content Developer Role and Applications 2-77
100
1
0
0
SAS BI Dashboard
SAS BI Dashboard enables you to build and interact with
dashboards to visualize your data sources using key
performance indicators (KPIs) and other graphical views.
SAS BI Dashboards can be built from several types of
data sources. These data sources can be used with many
different graphical display types for presenting information
in an easy-to-understand way.
SAS BI
Dashboard
101
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-78 Chapter 2 Overview of the Business User Reporting Applications
102
103
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.5 Defining the BI Content Developer Role and Applications 2-79
104
105
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-80 Chapter 2 Overview of the Business User Reporting Applications
Information maps
OLAP cubes
Reports
Stored processes
Tables
106
Table
Stored
Process
Tasks and BI SAS
Wizards Dashboard Report
Information
Map
OLAP
Cube
107
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.5 Defining the BI Content Developer Role and Applications 2-81
108
1
0
8
109
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-82 Chapter 2 Overview of the Business User Reporting Applications
SAS Add-In for SAS Web SAS Information SAS Data SAS Information SAS Visual BI SAS Enterprise
Microsoft Office Report Studio Delivery Portal Integration Studio Map Studio Guide
110
111
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.5 Defining the BI Content Developer Role and Applications 2-83
113
Creating Prompts
When creating prompts, you begin by specifying general
information. You then define the prompt type and specify
how the prompt values are populated.
115
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-84 Chapter 2 Overview of the Business User Reporting Applications
Discussion
Requires a
non-blank value
Read-only values
116
Prompt Categories
In addition to the different types of prompts provided by
the SAS Prompting Framework, several categories of
prompts provide additional functionality, including the
following:
Dynamic prompts
Cascading prompts
Range prompts
117
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.5 Defining the BI Content Developer Role and Applications 2-85
Dynamic Prompts
Dynamic prompts populate a list of possible values from
a dynamic data source. The list is generated at run time
rather than at design time.
Depending on the SAS application where the prompt
is built, the data source can be a physical table or an
information map based on relational tables.
118
Cascading Prompts
Cascading prompts populate prompt values based on
selections in other prompts.
Example: When a department is selected, the list of
sections is dynamically generated based
on the selected department.
119
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-86 Chapter 2 Overview of the Business User Reporting Applications
120
Range Prompts
Range prompts enable users to enter ranges of values,
such as minimum and maximum, in one combined prompt.
Range prompts provide the user with
one question to answer instead of two
and ensure that both values are entered.
121
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.5 Defining the BI Content Developer Role and Applications 2-87
Discussion
122
Shared Prompts
In addition to prompts being defined for a specific use,
prompts can be shared.
Shared prompts are stored in metadata and can be used
in multiple applications.
The benefits of shared prompts include the following:
A single point of maintenance
123
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-88 Chapter 2 Overview of the Business User Reporting Applications
124
1
2
4
125
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.5 Defining the BI Content Developer Role and Applications 2-89
126
1
2
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-90 Chapter 2 Overview of the Business User Reporting Applications
36
3
6
43
4
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.6 Solutions to Student Activities (Polls/Quizzes) 2-91
46
4
6
69
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-92 Chapter 2 Overview of the Business User Reporting Applications
90
9
0
92
9
2
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2.6 Solutions to Student Activities (Polls/Quizzes) 2-93
94
9
4
114
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
2-94 Chapter 2 Overview of the Business User Reporting Applications
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 3 Overview of Data
Management
3.2 Creating Data Sources for Reporting and Analysis .................................................... 3-8
Demonstration: Creating a New SAS Data Integration Studio Job ...................................... 3-12
3.3 Creating Data Sources Using SAS Enterprise Guide ................................................ 3-23
Demonstration: Creating Data Sources with a SAS Enterprise Guide Job ......................... 3-30
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-2 Chapter 3 Overview of Data Management
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.1 Understanding SAS Data Integration Capabilities 3-3
Objectives
Describe the benefits of SAS Data Management.
List the SAS platform applications for data
management.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-4 Chapter 3 Overview of Data Management
SAS Data Integration Studio SAS Enterprise Guide SAS Information Delivery Portal
SAS OLAP Cube Studio SAS Visual BI (JMP) SAS Web Report Studio
SAS Information Map Studio SAS Forecast Studio SAS Add-In for Microsoft Office
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.1 Understanding SAS Data Integration Capabilities 3-5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-6 Chapter 3 Overview of Data Management
10 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.1 Understanding SAS Data Integration Capabilities 3-7
11
11
12
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-8 Chapter 3 Overview of Data Management
Objectives
State the purpose of SAS Data Integration Studio.
Explore the available interfaces.
15
16
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Creating Data Sources for Reporting and Analysis 3-9
18
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-10 Chapter 3 Overview of Data Management
Menu Bar
Toolbar
Status Bar
19
Tree View
20
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Creating Data Sources for Reporting and Analysis 3-11
Job Editor
Job Editor
21
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-12 Chapter 3 Overview of Data Management
This demonstration illustrates how to build a SAS Data Integration Studio job to read and combine data
sources to create a new table for reporting and analysis.
1. Select Start All Programs SAS SAS Data Integration Studio 4.2.
2. Log on with Ellens credentials.
a. Verify that the connection profile is My Server.
Do not select the Set this connection profile as the default check box.
b. Click OK to close the Connection Profile window and access the Log On window.
c. Type Ellen in the User ID field and use the password provided by your instructor.
Do not select the Save user ID and password in this profile check box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Creating Data Sources for Reporting and Analysis 3-13
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-14 Chapter 3 Overview of Data Management
4) Click OK.
f. Click Next.
g. Clear the check box for the Blank delimiter.
h. Click the check box for the Comma delimiter.
i. Click Next.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Creating Data Sources for Reporting and Analysis 3-15
l. Click OK.
m. Click Import.
n. Select Get the column names from the column headings in this file.
o. Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-16 Chapter 3 Overview of Data Management
s. Click Next.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Creating Data Sources for Reporting and Analysis 3-17
t. Click Finish.
u. Drag FT_Subset from the Folders tab to the job window.
6. Add a File Reader transformation.
a. Click the Transformations tab.
b. Expand the Access group.
c. Drag the File Reader transformation to the job.
7. Connect the FT Subset external file to the File Reader transformation.
a. Move the cursor over the right side of the FT Subset item until you see the pencil icon.
b. Drag the pencil icon to the File Reader transformation to connect the two items.
8. Add an SQL Join transformation.
a. If necessary, click the Transformations tab.
b. Expand the Data group.
c. Drag the SQL Join transformation to the job.
d. Connect the CUSTOMER_DIM table to the first input port of the SQL Join transformation.
e. Connect the PRODUCT_DIM table to the second input port of the SQL Join transformation.
f. Add an input port to the SQL Join transformation.
1) Right-click the SQL Join transformation.
2) Select Ports Add Input Port.
g. Connect the File Reader transformation to the third input port of the SQL Join transformation.
The job should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-18 Chapter 3 Overview of Data Management
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Creating Data Sources for Reporting and Analysis 3-19
8) Click Next.
9) Click Finish.
g. Click Next.
h. Select the columns for the new table.
1) Expand Orion Star Sales Department Data.
2) Select FT Subset.
3) Click to move all of the variables from that table to the Selected items list box.
4) Expand CUSTOMER_DIM.
5) Double-click the following variables to move them to the Selected items list box:
Customer_Country
Customer_Gender
Customer_Name
Customer_BirthDate
Customer_Age_Group
Customer_Age
6) Expand PRODUCT_DIM.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-20 Chapter 3 Overview of Data Management
7) Double-click the following variables to move them to the Selected items list box:
Product_Line
Product_Category
Product_Group
Product_Name
Supplier_Country
Supplier_Name
8) Click Next.
i. Accept the default column attributes.
j. Click Next.
k. Click Finish.
l. Using the Folders tab, navigate to Orion Star Sales Department Data.
m. Drag FT US Customer Subset to the job window.
n. Connect the Table Loader transformation to the FT US Customer Subset table.
The job flow should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.2 Creating Data Sources for Reporting and Analysis 3-21
g. Click OK.
h. Click in the second Operand column of the new row and select Choose column(s).
i. Expand the File Reader item.
j. Select Customer_ID.
k. Click OK.
The WHERE clause should resemble the following:
12. Click to run the job and create the new table.
The Status tab in the Details window indicates the status of each step of the job.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-22 Chapter 3 Overview of Data Management
14. Use the scroll bars to view the columns and rows of data to ensure that the table was populated
correctly. There should be 2,590 rows of data and there will be missing values for the discount
column in most, but not all, of the rows.
15. Select File Close to close the View Data window.
16. Select File Save to save the job.
17. Select File Close to close the job window.
18. Select File Exit to close SAS Data Integration Studio.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Data Sources Using SAS Enterprise Guide 3-23
Objectives
State the capabilities and major features of
SAS Enterprise Guide software.
Define the purpose of SAS Enterprise Guide projects.
25
26
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-24 Chapter 3 Overview of Data Management
27
28
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Data Sources Using SAS Enterprise Guide 3-25
30
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-26 Chapter 3 Overview of Data Management
31
32 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Data Sources Using SAS Enterprise Guide 3-27
33
34
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-28 Chapter 3 Overview of Data Management
3.01 Quiz
Do you need to learn SAS programming code to
successfully use SAS Enterprise Guide?
Yes
No
36
Results
SAS programs
and logs
Informational
notes for
documentation
38
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Data Sources Using SAS Enterprise Guide 3-29
39
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-30 Chapter 3 Overview of Data Management
This demonstration illustrates how to build a SAS Enterprise Guide project to read and combine
data sources to create a new table for reporting and analysis.
This demonstration uses SAS Enterprise Guide to build the same process that you created in
SAS Data Integration Studio during the last demonstration.
1. Select Start All Programs SAS Enterprise Guide 4.3 to invoke SAS Enterprise Guide.
2. Select New Project from the Welcome window.
3. Change the connection profile.
The classroom machine is configured to use Jacques credentials by default. Because you want to use
Ellens credentials, you need to create a new connection profile.
a. Click Connection on the status bar in the lower right corner.
b. Click Add to create a new connection profile.
c. Type Ellens Profile in the Name field.
d. Verify that Remote is selected as the machine type and type the machine name provided by your
instructor.
e. Type Ellen in the User field and use the password provide by your instructor.
f. Click Save.
g. Click Set Active to activate the new profile.
h. Click Close to close the Connections window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Data Sources Using SAS Enterprise Guide 3-31
a. Click in the window in the bottom left corner to display the SAS Folders.
e. Accept the default values for Step 1 and click Next to move to Step 2.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-32 Chapter 3 Overview of Data Management
f. Verify that the delimiter is set to Comma and that the File contains field names on record
number check box is selected and the record number is set to 1.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.3 Creating Data Sources Using SAS Enterprise Guide 3-33
i. Move the tables as needed to view the join lines and Venn diagrams.
The default join type is an inner join, which is what you want for this example.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-34 Chapter 3 Overview of Data Management
To export the table to the local computer, SAS must be installed locally.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-35
Objectives
Define OLAP terms.
Use the Cube Designer Wizard to build a cube from
a detail table.
43
44
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-36 Chapter 3 Overview of Data Management
Reporting
Physical Data SAS OLAP
and
Warehouse Cubes
Analytics
45
46 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-37
TIME GEOGRAPHY
PRODUCTS
47 continued...
Group Line
PRODUCTS
Category
48 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-38 Chapter 3 Overview of Data Management
Month Day
49 continued...
Average Sum of
Total Cost Total Cost
50 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-39
51
53
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-40 Chapter 3 Overview of Data Management
55
57
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-41
59
60
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-42 Chapter 3 Overview of Data Management
Viewing a Cube
After you build a cube, you can examine the contents
of the cube with the View Cube function. The View Cube
function is
available from
the Actions
menu and
from the Cube
Context menu.
62
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-43
63 ...
Table and
Cube
Graph Views
Manager
66
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-44 Chapter 3 Overview of Data Management
68
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-45
69
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-46 Chapter 3 Overview of Data Management
This demonstration illustrates how use SAS OLAP Cube Studio to build an OLAP cube.
1. Select Start All Programs SAS SAS OLAP Cube Studio 4.2.
2. Log on with Ellens credentials.
a. Verify that the connection profile is My Server.
Do not select the Set this connection profile as the default check box.
b. Click OK to close the Connection Profile window and access the Log On window.
c. Type Ellen in the User ID field and use the password provided by your instructor.
Do not select the Save user ID and password in this profile check box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-47
e. Click Next.
5. Click Register Table to register a new table in metadata.
a. Select SAS.
b. Click Next.
c. Select FT Library in the SAS Library field.
d. Click Next.
e. Select QUERY_FOR_FT_SUBSET.
f. Click Next.
g. Click Finish.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-48 Chapter 3 Overview of Data Management
b. Double-click QUERY_FOR_FT_SUBSET to move the table to the Selected table list box.
c. Click Next.
7. Select the drill-through table.
a. Click to expand the FT Library.
b. Double-click QUERY_FOR_FT_SUBSET to move the table to the Selected table list box.
c. Click Next.
8. Define the Time dimension.
a. Click Add.
b. Type Time in the Name field.
c. Type Time Dimension in the Caption field.
d. Select TIME as the value for the Type field.
e. Click Next.
f. Click next to the Add button and select Add supplied time hierarchies.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-49
g. Double-click the following columns to add them to the Input columns for new levels list:
Customer_Age_Group
Customer_Gender
Customer_ID
h. Click OK.
i. Click Next.
j. Click Add to add a hierarchy for the new Customer dimension.
1) Type AgegroupGender in the Name field.
2) Type Age Group, Gender Hierarchy in the Caption field.
3) Double-click Customer_Age_Group to move it to the Selected list box.
4) Double-click Customer_Gender to move it to the Selected list box.
5) Click OK.
k. Click Add to add a hierarchy for the new Customer dimension.
1) Type GenderAgegroupID in the Name field.
2) Type Gender, Age Group, ID Hierarchy in the Caption field.
3) Double-click Customer_Gender to move it to the Selected list box.
4) Double-click Customer_Age_Group to move it to the Selected list box.
5) Double-click Customer_ID to move it to the Selected list box.
6) Click OK.
l. Verify that AgegroupGender is selected as the value for the Default hierarchy field.
m. Click Finish.
10. Select the measures.
a. Click to expand CostPrice_Per_Unit.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-50 Chapter 3 Overview of Data Management
l. Click Next.
11. Add a member property.
a. Click Add.
b. Type Customer Name in the Name field.
c. Select Customer_ID as the value for the Level field.
d. Select Customer_Name as the value for the Column field.
e. Type Name in the Caption field.
f. Click OK.
g. Click Next.
12. Accept the default aggregations and click Next.
13. Verify that Save the metadata and create the cube is selected.
14. Click Finish.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-51
The cube is created and registered in the metadata and the SAS log is displayed.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-52 Chapter 3 Overview of Data Management
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.4 Building an OLAP Cube 3-53
o. Right-click Customer Age Group and select Replace With Customer Dimension
Gender, Age Group, ID Hierarchy All GenderAgegroupID Hierarchy.
1) Click to expand All GenderAgegroupID.
s. Right-click $152 for customer 2433 in the second quarter and select Drill Through Details.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-54 Chapter 3 Overview of Data Management
37
54
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3.5 Solutions to Student Activities (Polls/Quizzes) 3-55
56
58
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
3-56 Chapter 3 Overview of Data Management
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 4 Creating Information
Maps
4.4 Creating Prefilters to Subset the Information Map Data ........................................... 4-65
Demonstration: Using Prefilters ........................................................................................... 4-75
4.5 Building an Information Map from a SAS OLAP Cube .............................................. 4-84
Demonstration: Creating an Information Map Using an OLAP Cube .................................. 4-88
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-2 Chapter 4 Creating Information Maps
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Understanding SAS Information Maps 4-3
Objectives
Describe where SAS Information Maps fit into the
SAS platform.
Discuss the difference between direct access to an
information map versus using the SAS Information
Maps LIBNAME Engine.
List the common uses of SAS Information Maps.
Describe the SAS Information Map Studio interface,
including these components:
Resources pane
Design tab
Relationships tab
Properties pane
Data Item Properties window
3
Data Warehouse
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-4 Chapter 4 Creating Information Maps
Metadata Reads
Builds reports
and performs
information
analysis
maps
5
SAS Data Integration Studio builds the data in the data warehouse, in data marts, or in both. The metadata
relating to these activities is recorded in a metadata repository on the metadata server.
SAS Information Map Studio reads the metadata about the data in the data warehouse or data marts and
translates this information into information maps. The information maps are, in turn, recorded in a
metadata repository on the metadata server.
The SAS Add-In for Microsoft Office, SAS Enterprise Guide, SAS Web Report Studio, the SAS
Information Delivery Portal, and SAS BI Dashboard read the information map metadata to provide a
business user view of the data for reporting and analysis.
The SAS Metadata Server manages the metadata and provides security.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Understanding SAS Information Maps 4-5
From an interface standpoint, SAS Enterprise Guide and the SAS Add-In for Microsoft Office
provide direct access to information maps. Behind the scenes, they use the SAS Information
Maps LIBNAME Engine.
Information maps based on multidimensional data cannot be opened in the SAS add-in or
in SAS Enterprise Guide. They also cannot be used in SAS code.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-6 Chapter 4 Creating Information Maps
4.01 Poll
The interface for adding an information map in the
SAS Add-In for Microsoft Office and SAS Enterprise
Guide enables you to select the information map
much as you would select any other data source.
True
False
11
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Understanding SAS Information Maps 4-7
13
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-8 Chapter 4 Creating Information Maps
14
4.02 Quiz
What is the difference between what is displayed on
the Information Map Folders tab and the Application
Servers tab?
16
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Understanding SAS Information Maps 4-9
Relationships Tab
The Relationships tab specifies how data sources are
joined in a query.
You can create
one simple
relationship by
specifying two
table columns
one compound
relationship by
specifying
multiple pairs
of columns.
18
Properties Pane
The Properties pane enables you to view all of the
properties of a selected item. Some properties can be
edited directly using this pane.
In addition, you can use the Properties
pane to simultaneously view or update
properties from multiple data items.
When you select a property in the
Properties pane, the Property
Description area displays information
about the selected property.
19
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-10 Chapter 4 Creating Information Maps
Classifications,
Aggregations,
Formats
Value-Generation
Method
Actions
20
21
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.1 Understanding SAS Information Maps 4-11
22
4.03 Quiz
Match each item with the correct description.
Items:
1. Data Item
2. Filter
3. Folder
Descriptions:
A. Contains instructions for subsetting the values
B. Metadata about a physical column or expressions to
calculate values
C. Used to organize the information map
24
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-12 Chapter 4 Creating Information Maps
Objectives
List the steps to create an information map.
Discuss the types of data sources that can be used to
create an information map.
Describe the types of query languages that are used
to retrieve the data values from each type of data
source.
27
28
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-13
a stored process.
29
30
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-14 Chapter 4 Creating Information Maps
32
34
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-15
Country
Year
Product ID
35
There are actually four types of category data items: alphanumeric, date, time, and timestamp. The
underlying type of the category data item can be important when you perform tasks such as filtering,
sorting, and formatting.
Quantity ordered
36
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-16 Chapter 4 Creating Information Maps
37
38 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-17
39
4.05 Quiz
Identify the default data item classification for each
physical column listed below:
Employee Name
Employee ID
Salary
Hire Date
41
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-18 Chapter 4 Creating Information Maps
43
44 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-19
45 continued...
46
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-20 Chapter 4 Creating Information Maps
47
This property is new to SAS Information Map Studio 4.2, maintenance release 2 and later.
48 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-21
49
By workgroup
50
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-22 Chapter 4 Creating Information Maps
51
created based on
user selections.
4. The results are
displayed in the
SAS client application.
52
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-23
Information
SQL MDX
Map
SAS Code
Stored
Process
55
SQL Structured Query Language is a standardized language that is used to create and
manipulate objects in a database management system. SAS implements SQL through the
SQL procedure.
SAS A SAS stored process provides a dynamic data source using SAS program code to
Code access and create the data
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-24 Chapter 4 Creating Information Maps
56
57
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-25
This demonstration illustrates how to create and modify an information map from a single relational data
source.
1. Select Start All Programs SAS SAS Information Map Studio 4.2.
2. Log on with Erics credentials.
a. Verify that the connection profile is My Server and click OK.
b. Type Eric in the User ID field and type the password provided by the instructor.
c. Click OK.
3. If necessary, click OK to close the Create an Information Map window.
4. Double-click the Orion Star Products table to add it to the Selected Resources list box of the
Design tab (or right-click the table name and select Insert Table).
8. Click to create data items for all of the physical columns in the Orion Star Products table.
By default, when you create data items from all columns in a table, a new folder is created
with the name of the table. You can disable this option by selecting Tools Options Data
Items. Then clear the When creating data items from all courses in a table, automatically
create a new folder for them check box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-26 Chapter 4 Creating Information Maps
9. Expand the Orion Star Products folder in the Information Map Contents list box to show the data
items.
2. Select the following data items by double-clicking them or by selecting them and using the arrow
buttons:
Product Category
Product Group
Product Line
Supplier Id
3. Accept the default output options and click Run Test.
The default output options display the aggregated values grouped by category. In this example,
the Product Line values are grouped within Product Group, which is grouped within
Product Category. Because Supplier Id is a measure, the values for all of the occurrences of
Supplier Id within the groups are summed together.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-27
4. Click View SQL to view the SQL query code that was run for the test.
Because Supplier_ID is numeric in the original data, it becomes a measure by default in the
information map. The default for all measures is to use the SUM function. This is not the
desired behavior for Supplier_ID.
5. Click Close to close the View Query window.
6. Click Close to close the Results window.
7. Click Close to close the Test the Information Map window.
Change the classification of Supplier Id from measure to category to prevent the supplier IDs from being
summed.
1. Double-click the Supplier Id data item in the Information Map Contents list box (or right-click the
data item and select Properties). The Data Item Properties window appears.
2. Select Classifications, Aggregations, Formats from the selection pane on the left side of the
window.
3. Click Category to change the classification from measure to category.
When you change the classification to category, the selections for aggregate functions
become inactive.
4. Click OK to save the changes and close the Data Item Properties window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-28 Chapter 4 Creating Information Maps
Several data items are used for filtering the query. You can set properties, such as the value-generation
method, for multiple data items at the same time.
1. Select Product Category in the Information Map Contents list box.
2. Hold down the CTRL key and click the following data items:
Product Group
Product Line
Supplier Country
Supplier Name
In the Properties pane, the common values are displayed next to each property. All of the selected data
items have the same value for the value-generation method.
Properties with missing values typically indicate that the selected data items have different
values.
3. Click the black triangle ( ) in the value cell for the Value-generation method property.
The Data Item Properties window appears with the Value-Generation Method section displayed.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-29
4. Click the User selects values from a dynamic list radio button.
Because all of the selected data items might change over time, a dynamic list provides the current
values and does not require the information map to be edited each time that the values change.
The Selected Data Items list box shows that there are five data items for which you are
viewing the properties.
The User selects values from a static list choice is not enabled when multiple data items are
selected.
5. Click OK to save the changes and close the Data Item Properties window.
6. Select Tools Run a Test Query.
Because you recently ran a test query, the previous selections are remembered.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-30 Chapter 4 Creating Information Maps
8. Click View SQL to view the SQL query code that was run for the test.
9. Verify that the SUM function no longer appears in the code.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-31
SAS Information Maps are most often used for SAS Web Report Studio reports. You can designate a data
item as one to be used by default in a SAS Web Report Studio report.
1. Select Product Category in the Information Map Contents list box.
2. Hold down the CTRL key and click the following data items:
Product Group
Product Line
3. Click the black triangle ( ) in the value cell for the Default query property.
4. Change the value to Yes.
The Default query property is applicable only for reports created with SAS Web Report
Studio and not when testing the information map.
Although information map names can be up to 60 characters, it is a best practice to limit the
name to 32 bytes. The number of characters that 32 bytes represents depends on the encoding
that SAS uses to process your data.
The SAS Information Maps LIBNAME Engine that is used by the SAS Add-In for Microsoft
Office and SAS Enterprise Guide can process only information maps with names that are 32
bytes or less.
4. Click Save.
5. Select File Exit to close SAS Information Map Studio.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-32 Chapter 4 Creating Information Maps
Exercises
You use Ellens credentials for all of the exercises in this chapter.
b. Create a new information map from the FT US Customer Subset table in FT Library.
Create data items for all of the physical columns except the following:
Customer_BirthDate
Customer_ID
Delivery_Date
Employee_ID
Order_ID
Product_ID
Street_ID
Change the value-generation method for the following columns to User selects values from
a dynamic list:
Customer Age Group
Customer Country
Product Category
Product Group
Product Line
Supplier Country
Supplier Name
Change the value-generation method for the following columns to User selects values from
a static list and build the list by querying the data:
Customer Gender
Order Type
Set the format for Costprice Per Unit and Total Retail Price to the DOLLAR14. format.
Set the format for Quantity to the COMMA12. format.
Set the following columns as default columns for SAS Web Report Studio:
Costprice Per Unit
Customer Gender
Order Type
Quantity
Total Retail Price
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.2 Using Different Data Sources 4-33
Test the information map using Customer Gender, Order Type, Quantity, and Total Retail
Price.
c. Save the new information map as FT US Customer Subset in Orion Star Sales
Department Information Maps and close SAS Information Map Studio.
2. Creating a Report in SAS Web Report Studio Using the New Information Map
a. Log on to SAS Web Report Studio with Ellens credentials.
b. Directly open the FT US Customer Subset information map that you saved.
c. Why was the report created with these five data items?
Answer:
d. Log off and close the browser window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-34 Chapter 4 Creating Information Maps
Objectives
Define the types of filters that are available for
subsetting data in an information map.
List the different methods for creating a new filter
in SAS Information Map Studio.
Describe the ways that data items can be used
in a filter.
List the possible filter conditions.
List the different filter values that can be used.
Describe the options that might be available
when you create a filter.
List the steps to create a compound filter.
Describe the functionality provided by the filter
combination section of the New Filter window.
62
63
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-35
Compound filters
Identity-driven filters
Prefilters
Prompted filters
64
65
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-36 Chapter 4 Creating Information Maps
4.06 Quiz
What is the difference between a simple filter and
a compound filter?
67
Identity-Driven Filters
When creating an identity-driven filter, you specify an
identity-specific value that is retrieved from the metadata
and compared to the values
in your target data.
Identity-specific properties
include the following:
SAS.PersonName
SAS.IdentityGroupName
SAS.IdentityName
SAS.Userid
SAS.IdentityGroups
SAS.ExternalIdentity
69
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-37
Prefilters
A prefilter is a mechanism to subset relational data before
it becomes available to the user of the information map.
A prefilter can subset data based on simple, compound,
or identity-based criteria.
There are two types of prefilters:
General prefilters
Authorization-based prefilters
70
Prompted Filters
A prompted filter enables the user to make selections
that are incorporated into the information map query.
Using a prompted filter in an information map provides
for dynamic subsetting of the underlying information.
71
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-38 Chapter 4 Creating Information Maps
Creating Filters
There are several ways to create a new filter in
SAS Information Map Studio, including the following:
Select Insert New Filter from the menu bar.
72
Description (optional)
73
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-39
74 continued...
75
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-40 Chapter 4 Creating Information Maps
Filter Conditions
The conditions that you can use when you create a filter
depend on the data item type.
Valid conditions include the following:
Is equal to / Is not equal to
Contains
Like
76
There are two wildcards that you can use with the LIKE condition:
4.07 Quiz
What is the result of using each example below with
a filter that contains a LIKE condition?
'te_t'
'test%'
78
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-41
Filter Values
The values that you can use when you create a filter
depend on the data item type and other properties such
as the value-generation method.
Valid values include the following:
Enter value(s)
Use an expression
Derive identity values (for row-level permissions)
80
Filter Options
Depending on the data source type, two options might
be available when you create filters.
Clicking this button accesses the Filter
combinations section of the New Filter
window, which enables you to create a
compound filter.
This option is not valid when you use an
OLAP data source.
Hide from When this option is selected, the filter is
user hidden from the user of the information map.
When this option is selected, the filter
is not available in the testing facility
in SAS Information Map Studio.
81
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-42 Chapter 4 Creating Information Maps
This demonstration illustrates how to use SAS Information Map Studio to create a simple filter.
1. Select Start All Programs SAS SAS Information Map Studio 4.2.
2. Log on. Use Erics credentials.
a. Accept the default connection profile and click OK.
b. Type Eric in the User ID field and type the password provided by the instructor.
c. Click OK to close the Log On window.
d. If necessary, click OK to close the Create an Information Map window.
3. Open the Orion Star Employees information map.
c. Double-click the following folders to open them: Orion Star Marketing Department
Information Maps.
d. Double-click Orion Star Employees to load it on the Design tab.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-43
e. Select Select value(s) from a list as the value for the Value(s) field.
f. Double-click Marketing to copy it to the Selected list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-44 Chapter 4 Creating Information Maps
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-45
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-46 Chapter 4 Creating Information Maps
84
Discussion
85
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-47
Filter Combinations
Clicking the Combinations button accesses the Filter
combinations section of the New Filter window.
86
87 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-48 Chapter 4 Creating Information Maps
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-49
This demonstration illustrates how to use SAS Information Map Studio to create compound filters.
This demonstration assumes that you are logged on to SAS Information Map Studio as Eric and
have the FT Employees information map open.
1. Create a new compound filter.
a. Select Insert New Filter.
b. Type Marketing Employees over $50,000 in the Filter name field.
c. Select Department as the value for the Data item field.
d. Verify that Is equal to is selected as the value for the Condition field.
e. Select Select value(s) from a list as the value for the Value(s) field.
f. Double-click Marketing to copy it to the Selected list box.
g. Click Combinations.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-50 Chapter 4 Creating Information Maps
h. Click Add.
The first rule is added to the Filter combinations table, and the fields at the top of the window are
cleared.
i. Select Annual Salary as the value for the Data item field.
j. Select Is greater than as the value for the Condition field.
k. Verify that Enter value(s) is selected as the value for the Value(s) field.
l. Type 50000 in the box under the Value(s) field.
Special characters such as dollar signs and commas are not valid in this field.
m. Click Add.
The Filter combinations table should resemble the following:
It is important to make sure that you add the final rule to the Filter combinations table
before you close the New Filter window.
n. Click OK to close the New Filter window.
2. Test the new filter.
a. Select Tools Run a Test Query.
b. Double-click the following items to copy them to the Selected items list box:
Employee Name
Department
Annual Salary
Marketing Employees over $50,000 (filter)
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-51
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-52 Chapter 4 Creating Information Maps
Exercises
Hint: Type "Shoes" in the box under the Value(s) field. (The quotation marks and case are
important.)
Test the new information map.
c. Save the new information map as FT US Customer Subset Product Analysis in Orion Star
Sales Department Information Maps and close SAS Information Map Studio.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-53
4. Using the New Information Map as a Data Source in SAS Enterprise Guide
a. Open SAS Enterprise Guide and create a new project. Use Ellens credentials.
b. Open the FT US Customer Subset Product Analysis information map.
Hint: Select File Open Information Map.
Select all of the data items.
Select the Retail Shoe Sales filter.
c. Save the project as FT Retail Shoe Sales in S:\Workshop\sbaft43 and close SAS Enterprise
Guide.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-54 Chapter 4 Creating Information Maps
92
displayed text
description
options
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-55
Cascading Prompts
Cascading prompts populate prompt values based on
selections in other prompts.
Example: When a department is selected, the list of
sections is dynamically generated based
on the selected department. Group values
are also dynamically generated based on
the selected section.
95
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-56 Chapter 4 Creating Information Maps
96 continued...
97
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-57
c. Double-click the following folders to open them: Orion Star Marketing Department
Information Maps.
d. Double-click Orion Star Employees Prompting to load it on the Design tab.
e. Click to hide the Resources pane
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-58 Chapter 4 Creating Information Maps
The Prompt window appears. Using one prompt, you are prompted for a range of values. The
prompt values are required and default values are provided.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-59
j. In the Test the Information Map window, click to remove all items from the Selected items
list box.
k. Double-click the following items to add them to the Selected items list box:
Department
Section
Group
Annual Salary
Select Department, Section, and Group (filter)
l. Click Run Test.
m. Select IS as the value for the Select a Department field.
n. Select IS Operations as the value for the Select a Section field.
o. Select Applications as the value for the Select a Group field.
p. Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-60 Chapter 4 Creating Information Maps
e. Select Use single prompt for both 'From' and 'To' values as the value for the Value(s) field.
f. Select &DateRangePrompt as the value for the Prompt field.
After a prompt is defined in an information map, it can be used in more than one filter. In
this example, the prompt used to filter termination dates is reused for filtering hire dates.
g. Click OK to close the New Filter window.
6. Test the information map and existing filters.
a. Select Tools Run a Test Query.
c. Double-click the following items to copy them to the Selected items list box:
Employee Name
Employee Hire Date
Select Range of Hire Dates (filter)
d. Click Run Test.
e. Select Custom as the value for the Range type field.
f. Type January 1, 1975 in the From field.
g. Type March 31, 1975 in the To field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-61
t. Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-62 Chapter 4 Creating Information Maps
b. Click to remove all items from the Selected items list box.
c. Double-click the following items to add them to the Selected items list:
Department
Section
Group
Annual Salary
Select Department, Section, and Group (filter)
d. Click Run Test.
e. Select DotCom & Catalog as the value for the Select a Section field.
f. Select Catalog as the value for the Select a Group field.
g. Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.3 Exploiting Dynamic Subsetting of Data 4-63
Exercises
Hint: Click and search for values that contain the word Shoes.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-64 Chapter 4 Creating Information Maps
e. Save the information map as FT Product Analysis Prompting and close SAS Information Map
Studio.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-65
Objectives
State the definition of prefilters.
Describe the two types of prefilters.
List the steps to create a general prefilter.
List the steps to create an authorization-based
prefilter.
102
Prefilters
A prefilter is a mechanism to subset relational data before
it becomes available to the user of the information map.
authorization-based prefilters
103
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-66 Chapter 4 Creating Information Maps
104
105
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-67
Discussion
authorization-based prefilter
106
107 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-68 Chapter 4 Creating Information Maps
Order Type
Supplier Name
108 continued...
PREFILTER:
Customer_Country=FR
Order Type
Supplier Name
109 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-69
PREFILTER:
Customer_Country=FR
Order Type
Supplier Name
110 continued...
Required
PREFILTER:
Customer_Country=FR
Order Type
Supplier Name
111 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-70 Chapter 4 Creating Information Maps
PREFILTER:
Customer_Country=FR
Order Type
Supplier Name
112
113 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-71
114
Hiding Filters
Filters that are used as
prefilters do not typically
need to be made available
to users of the information
map, because they are
already in effect.
115
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-72 Chapter 4 Creating Information Maps
116 continued...
117
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-73
118 continued...
119 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-74 Chapter 4 Creating Information Maps
120
When using a filter based on a measure data item, you receive a warning that the query might
generate unexpected results.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-75
Using Prefilters
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-76 Chapter 4 Creating Information Maps
m. Click the Hide from user check box in the bottom left corner of the window.
Because this filter is used as a general prefilter, and therefore always applied, you do not
want the user to be able to select it.
n. Click OK to save the new filter.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-77
4. Click to assign the 2007 filter to the Orion Star Customer Order Information table.
If there is more than one table used as a resource in the information map, you must assign the
filter to the table on which the data item in the filter is based. If the filter is a compound filter
based on a data item from more than one table, then the filter must be assigned to each table
that contributes a data item to that filter.
5. Click the Required Tables tab.
6. Double-click Orion Star Customer Order Information to move it to the Required tables list box.
7. Click OK to close the Information Map Properties window and save the changes.
The 2007 filter is not an available data item because of the Hide from user setting.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-78 Chapter 4 Creating Information Maps
The general prefilter criteria is part of the WHERE clause of the SQL query.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-79
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-80 Chapter 4 Creating Information Maps
5. Specify the required table for the filters that will become authorization-based prefilters.
a. Select Orion Star Reporting Library in the Selected Resources list box to expand it.
b. Right-click the Orion Star Customer Order Information table and select Properties.
c. Click Include this table (and its prefilters) in all queries.
This step is optional if only one table is defined as a resource to an information map.
d. Click OK to close the Table Properties window and save the changes.
6. Select File Save to save the changes to the information map.
7. Assign the authorization-based prefilters to the desired users.
a. Select Tools Authorization.
The Authorization window appears.
b. Click Add to add Eric and Jacques to the list of users.
c. Double-click Eric and Jacques to add them both to the Selected Identities list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-81
An explicit grant is indicated by the lack of background color behind the check box.
The Add Condition button only becomes active when the selected user or group has an
explicit Read permission.
The Row-Level Permission Condition window appears.
h. Select US Only in the Available filters list box.
i. Click to assign the US Only filter to the Orion Star Customer Order Information table.
j. Click OK to save the changes and close the Row-Level Permission Condition window.
k. Select Jacques in the Users and Groups list box.
l. Click the Grant check box for the Read permission to explicitly grant that permission.
m. Click Add Condition.
n. Select France Only.
o. Click to assign the France Only filter to the Orion Star Customer Order Information
table.
p. Click OK to save the changes and close the Row-Level Permission Condition window.
q. Click Close to close the Authorization window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-82 Chapter 4 Creating Information Maps
c. Double-click the following data items to move them to the Selected items list box:
Customer Country
Customer Age Group
Quantity Ordered
The US Only and France Only filters are not available because of the Hide from user
setting.
d. Accept the default output options. Click Run Test.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.4 Creating Prefilters to Subset the Information Map Data 4-83
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-84 Chapter 4 Creating Information Maps
Objectives
Discuss the Online Analytical Processing terminology.
Describe the capabilities available when creating an
information map from an OLAP cube.
Discuss the MDX language, including what it is and
when it is used.
124
Information Maps
Information maps can be based on one or more tables,
a stored process that creates a table, or a cube.
125
1
2
5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Building an Information Map from a SAS OLAP Cube 4-85
126
What Is MDX?
The multidimensional expressions (MDX) language
has the following characteristics and uses:
is a standardized, high-level language
127
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-86 Chapter 4 Creating Information Maps
128
129
1
2
9
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Building an Information Map from a SAS OLAP Cube 4-87
130
1
3
0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-88 Chapter 4 Creating Information Maps
This demonstration illustrates how to build an information map using an OLAP cube as the data source.
1. Select Start All Programs SAS SAS Information Map Studio 4.2.
2. Log on. Use Erics credentials.
a. Accept the default connection profile and click OK.
b. Type Eric in the User ID field and type the password provided by the instructor.
c. Click OK to close the Log On window.
d. If necessary, click OK to close the Create an Information Map window.
3. Add an OLAP cube as the data source.
5. Click to create data items for all of the measures and hierarchies in the cube.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Building an Information Map from a SAS OLAP Cube 4-89
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-90 Chapter 4 Creating Information Maps
g. Click View MDX to view the MDX query code that was run for the test.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.5 Building an Information Map from a SAS OLAP Cube 4-91
9. Save the information map and close SAS Information Map Studio.
a. Select File Save As.
b. If necessary, navigate to Orion Star Marketing Department Information Maps.
c. Type FT Customer Orders in the Name field.
d. Click Save.
e. Select File Exit to close SAS Information Map Studio.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-92 Chapter 4 Creating Information Maps
4.6 Solutions
Solutions to Exercises
1. Creating a New Information Map from Relational Data
a. Open SAS Information Map Studio using the default connection profile and Ellens credentials.
1) Select Start All Programs SAS SAS Information Map Studio 4.2.
2) Verify that the connection profile is My Server and click OK.
3) Type Ellen in the User ID field and type the password provided by the instructor
4) Click OK.
5) If necessary, click OK to close the Create an Information Map window.
b. Create a new information map from the FT US Customer Subset table in FT Library.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-93
9) Change the value-generation method for several columns to User selects values from a
dynamic list.
a) Hold down the CTRL key and select the following columns:
Customer Age Group
Customer Country
Product Category
Product Group
Product Line
Supplier Country
Supplier Name
b) Click the black triangle ( ) in the value cell for the Value-generation property.
c) Click the User selects values from a dynamic list radio button.
d) Click OK to save the changes and close the Data Item Properties window.
10) Change the value-generation method for several columns to User selects values from a
static list and build the list by querying the data.
a) Double-click Customer Gender.
b) Select Value-Generation Method.
c) Select User selects values for a static list (defined below).
d) Click Get Values.
e) If a Get Values message window appears, click OK to close it.
f) Click to add all of the values to the Selected values list box.
n) Click to add all of the values to the Selected values list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-94 Chapter 4 Creating Information Maps
11) Set the format for Costprice Per Unit and Total Retail Price to the DOLLAR14. format.
a) Hold down the CTRL key and select Costprice Per Unit and Total Retail Price.
b) Click the black triangle ( ) in the value cell for the Format property.
c) Select DOLLAR as the value for the Format name field.
d) Type 14 in the Valid width range field.
e) Click OK to close the Data Item Properties window.
12) Set the format for Quantity to the COMMA12. format.
a) Double-click Quantity to open the Data Item Properties window.
b) Select Classifications, Aggregations, Formats.
c) Select COMMA as the value for the Format name field.
d) Type 12 in the Valid width range field.
e) Click OK to close the Data Item Properties window.
13) Set several columns as default columns for SAS Web Report Studio.
a) Hold down the CTRL key and select the following data items:
Costprice Per Unit
Customer Gender
Order Type
Quantity
Total Retail Price
b) Click the black triangle ( ) in the value cell for the Default query property.
c) Change the value to Yes.
14) Test the new information map.
a) Select Tools Run a Test Query.
b) Double-click Customer Gender, Order Type, Quantity, and Total Retail Price to add
them to the Selected items list box.
c) Click Run Test.
d) Click Close to close the View Query window.
e) Click Close to close the Results window.
f) Click Close to close the Test the Information Map window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-95
c. Save the new information map as FT US Customer Subset in Orion Star Sales
Department Information Maps and close SAS Information Map Studio.
1) Select File Save As.
2) Navigate to Orion Star Sales Department Information Maps.
3) Type FT US Customer Subset in the Name field.
4) Click Save.
5) Select File Exit to close SAS Information Map Studio.
2. Creating a Report in SAS Web Report Studio Using the New Information Map
a. Log on to SAS Web Report Studio with Ellens credentials.
1) Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
2) Select Favorites SAS Web Report Studio.
3) Type Ellen in the User name field and type the password provided by your instructor.
b. Directly open the FT US Customer Subset information map that you saved.
1) Click File Open.
2) Navigate to Orion Star Sales Department Information Maps.
3) Select FT US Customer Subset.
4) Click Open.
c. Why was the report created with these five data items?
These five data items all have the Default Query attribute set to Yes.
d. Log off and close the browser window
1) Click Log off Ellen.
2) Select File Exit to close the browser.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-96 Chapter 4 Creating Information Maps
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-97
f) Click to add all of the values to the Selected values list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-98 Chapter 4 Creating Information Maps
Text values are case sensitive and must be enclosed in quotation marks.
m) Click Add.
The Filter Combinations should resemble the following:
b) Click to add all of the items to the Selected items list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-99
c. Save the new information map as FT US Customer Subset Product Analysis in Orion Star
Sales Department Information Maps and close SAS Information Map Studio.
1) Select File Save As.
2) Navigate to Orion Star Sales Department Information Maps.
3) Type FT US Customer Subset Product Analysis in the Name field.
4) Click Save.
5) Select File Exit to close SAS Information Map Studio.
4. Using the New Information Map as a Data Source in SAS Enterprise Guide
a. Open SAS Enterprise Guide and create a new project using Ellens credentials.
1) Select Start All Programs SAS Enterprise Guide 4.3 to invoke SAS Enterprise
Guide.
2) Select New Project from the Welcome window.
3) If necessary, click Connection and change the connection profile to use Ellens credentials.
b. Open the FT US Customer Subset Product Analysis information map.
1) Select File Open Information Map.
2) Navigate to Orion Star Sales Department Information Maps.
3) Select FT US Customer Subset Product Analysis.
4) Click Open.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-100 Chapter 4 Creating Information Maps
c. Save the project as FT Retail Shoe Sales in S:\Workshop\sbaft43 and close SAS Enterprise
Guide.
1) Select File Save Project As.
2) Navigate to My Computer S: Workshop sbaft43.
3) Type FT Retail Shoe Sales as the value File name for the field.
4) Click Save.
5) Select File Exit to close SAS Enterprise Guide.
6) Click OK when prompted to close the project.
5. Creating a Prompted Filter
a. Open SAS Information Map Studio. Use the default connection profile and Ellens credentials.
1) Select Start All Programs SAS SAS Information Map Studio 4.2.
2) Verify that the connection profile is My Server and click OK.
3) Type Ellen in the User ID field and type the password provided by the instructor
4) Click OK.
5) If necessary, click OK to close the Create an Information Map window.
b. Open the FT US Customer Subset Product Analysis information map created earlier.
1) Select File Open.
2) If necessary, navigate to Orion Star Sales Department Information Maps.
3) Select FT US Customer Subset Product Analysis.
4) Click OK.
c. Create a new filter to prompt the user to select the order type and one or more product groups.
1) Select Insert New Filter.
2) Type Select Order Type and Product Group in the Filter name field.
3) Select Order Type as the value for the Data item field.
4) Verify that Is equal to is selected as the value for the Condition field.
5) Select Prompt the user for value(s) as the value for the Value(s) field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-101
6) Click New.
7) Type OrderTypePrompt in the Name field.
8) Type Select an Order Type in the Displayed text field.
9) Click the Prompt Type and Values tab.
10) Select User selects value from a static list as the value for the Method for populating
prompt field.
11) Click Get Values.
12) Click to add all of the values to the Selected values list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-102 Chapter 4 Creating Information Maps
4) Select Retail Sale as the value for the Select an Order Type field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-103
9) Click Select.
10) Click OK to run the test.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-104 Chapter 4 Creating Information Maps
10
17
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-105
25
33
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-106 Chapter 4 Creating Information Maps
42
68
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4.6 Solutions 4-107
'test%'
The percent wildcard is used in place of zero or
more characters. The example above matches
both test and testing.
79
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
4-108 Chapter 4 Creating Information Maps
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 5 Creating Stored
Processes
5.2 Creating a Stored Process from a SAS Enterprise Guide Project ........................... 5-19
Demonstration: Creating New Stored Processes Using SAS Enterprise Guide .................. 5-35
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-2 Chapter 5 Creating Stored Processes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-3
Objectives
Describe the different types of functionality provided
by SAS Stored Processes.
List the SAS platform applications where you can run
stored processes.
List the SAS platform applications where you can
register stored processes.
List the SAS platform applications where you can
create stored processes.
SAS Programs
A SAS program is a sequence of steps that the user
submits for execution.
DATA steps are typically used to create
Raw
SAS data sets.
Data
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-4 Chapter 5 Creating Stored Processes
SAS
SAS Program
Stored Process
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-6 Chapter 5 Creating Stored Processes
SAS Data
External
Sources
Files
11
By default, you cannot activate a system or command window from a stored process. This means
that you would not be able to programmatically invoke a shell script or issue a command to start a
batch file. The ability to run external (operating system commands) is generally not enabled on
the servers that run stored processes.
Results
SAS ODS Package
Output
SAS Data
External
Sources SAS Catalog E-mail Files
Entry
12
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-7
13
SAS Information
SAS Stored Process
Map Studio
Web Application
SAS Visual BI SAS BI
(JMP Software) Dashboard
14
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-8 Chapter 5 Creating Stored Processes
+ =
Create the stored Register the stored A stored process can
process program. process metadata. be invoked from
platform applications.
15
16
SAS Enterprise Guide is the only SAS platform application that can create, register, and execute
SAS Stored Processes. For example, SAS Management Console can only register stored
processes, whereas other SAS platform applications can only execute stored processes.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-9
17
18
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-10 Chapter 5 Creating Stored Processes
19
20
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-11
21
22
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-12 Chapter 5 Creating Stored Processes
23
24
You can invoke a stored process directly using the URL for the SAS Stored Process Web Application. It is
not necessary to use the SAS Stored Process Web Application interface.
Example: Use the following URL to invoke the Sales by Order Type and Age Group stored process,
located in the Orion Star Marketing Department Stored Process metadata folder:
http://localhost:8080/SASStoredProcess/do?_action=properties&_program=
/Orion+Star/Marketing+Department/Stored+Processes/Sales+by+Order+
Type+and+Age+Group
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-13
25
26
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-14 Chapter 5 Creating Stored Processes
27
28
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-15
This demonstration illustrates how to use SAS Enterprise Guide to create a new project and view the
results of a stored process.
1. Select Start All Programs SAS SAS Enterprise Guide 4.3 to invoke SAS Enterprise
Guide.
2. Select New Project from the Welcome window.
3. If necessary, follow these steps to change the connection profile to use Erics credentials.
a. Click Connection to open the Connections window.
b. Select the My Server profile and click Modify.
c. Type Eric in the User field and type the password provided by your instructor.
d. Click Save.
e. Click Set Active.
f. Click Close to close the Connections window.
4. To add a stored process to the project, select File Open Stored Process.
5. Select Orion Star Open.
6. Select Marketing Department Open.
7. Select Stored Processes Open.
8. Select Sales by Order Type and Age Group Open.
9. Right-click on the stored process in either the Project Tree or Process Flow window and select
Run Sales by Order Type and Age Group.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-16 Chapter 5 Creating Stored Processes
Because this stored process has parameters, a window specifies those parameters.
10. Select 2007 as the value for the Select a year for the report field.
11. Click Run.
The stored process is executed and the output is displayed.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.1 Understanding SAS Stored Process Concepts 5-17
14. Click (the Close icon) to close the stored process results and return to the Process Flow window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-18 Chapter 5 Creating Stored Processes
Exercises
Hints: Using Internet Explorer, select Favorites SAS Web Report Studio.
Select File Open to navigate the SAS Folders tree and select a stored process to run.
Select Log Off Ellen to log off from SAS Web Report Studio.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-19
Objectives
List the steps to create a stored process.
Identify the typical stored process program structure.
Identify the types of stored process metadata.
List the types of servers that a stored process
can run on.
Assign a SAS library using the metadata LIBNAME
engine.
Discuss the differences between creating a stored
process from a single task versus all the tasks in a
SAS Enterprise Guide project.
Describe the extra step needed to create a stored
process from more than one task and fewer than all
of the tasks in a SAS Enterprise Guide project.
33
34
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-20 Chapter 5 Creating Stored Processes
35
Execution environment
Prompts
Security options
36
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-21
stored process
stored process
Metadata
Server stored process
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-22 Chapter 5 Creating Stored Processes
%stpend;
39
40
You must include a semicolon at the end of the %STPBEGIN and %STPEND macro calls.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-23
41
Keywords
42
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-24 Chapter 5 Creating Stored Processes
43
The stored process server implements several features that are not available on the workspace server,
including streaming output.
Workspace servers and stored process servers are initialized by the SAS Object Spawner.
An object spawner runs on each machine where you want to run a workspace server or where a
stored process server listens for requests and launches servers, as necessary.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-25
46
Streaming output returns only one file with the result set. Some SAS procedures embed images in
their ODS results. If the tasks in your stored process use these procedures, and if you only select
streaming output, then the image files are not returned when you execute the stored process.
Broken image links appear in your HTML results.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-26 Chapter 5 Creating Stored Processes
49
50
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-27
51
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-28 Chapter 5 Creating Stored Processes
53
54
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-29
55
The authorization permissions that you specify for a data library in SAS Management Console
are enforced only for library assignments that use the metadata LIBNAME engine.
56
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-30 Chapter 5 Creating Stored Processes
58
60
When you specify folder-pathname in the LIBRARY= option, the quotation marks
and leading forward slash (/) are required.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-31
61
62
Stored processes can also be created by using existing SAS program code or typing new
SAS program code into the Create New Stored Process Wizard.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-32 Chapter 5 Creating Stored Processes
63
64
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-33
65
66
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-34 Chapter 5 Creating Stored Processes
5.04 Quiz
What is the icon
used for in the Create
New SAS Stored
Process Wizard?
a. Opens the
Metadata
Editor window
b. Opens the Code
Preview window
c. Runs the stored
process
d. Saves the SAS
code
68
70
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-35
This demonstration illustrates how to create stored processes from the tasks in a SAS Enterprise Guide
project.
1. Select Start All Programs SAS SAS Enterprise Guide 4.3 to invoke SAS Enterprise Guide.
2. If necessary, change the connection profile to use Erics credentials.
3. Select More projects from the Welcome window.
4. Select My Computer on the left side of the Open Project window.
5. Navigate to S: Workshop SP.
6. Select SP Customer Order Information.egp.
7. Click Open.
If a message window appears and asks you to change your current profile, click No.
The SP Customer Order Information project appears.
8. Select Run Run Process Flow to run the project and view the output of the three tasks.
9. Click to close the results and display the Process Flow window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-36 Chapter 5 Creating Stored Processes
1. Right-click Summary Tables in either the Project Tree or the Process Flow window, and select
Create Stored Process.
In order to create a stored process from this one task only, make sure that you select
Create Stored Process by right-clicking on the task, not by right-clicking in the Process
Flow window and not by selecting New Stored Process.
The Create New SAS Stored Process Wizard window appears. In Step 1 of the wizard, you specify
the stored process name and descriptive information, including the metadata folder where it will be
stored.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-37
2. Type SP Retail Price Analysis by Year and Country in the Name field.
3. Click Browse to select the metadata folder in which to store the new stored process.
4. Select SAS Folders in the left side of the window.
5. Double-click Orion Star Marketing Department Stored Processes.
6. Click Save to save the location and return to Step 1 of the wizard.
The updated fields should resemble the following:
7. Click Next.
Step 2 of the wizard is where you specify whether you want SAS Enterprise Guide to include the
code for the stored process macros, global macro variables (if any), and LIBNAME references. This
code is added to the SAS code from the selected task to create the stored process program.
8. Verify that all three check boxes are selected.
9. Click Next.
Step 3 is where you specify the stored process execution options, including the server, source filepath,
and filename, as well as the output options.
10. Select SASApp - Logical Stored Process Server as the value for the Execution server field.
11. Select S:\Workshop\SP as the value for the Source filepath field.
If the source filepath is not set to S:\Workshop\SP, then click the downward-pointing arrow or
(the File Folder icon) to select the source filepath.
The list of files on the target server in the display above might be different from what is
displayed on your classroom machine.
The value in the Source filename field is determined by the stored process name.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-38 Chapter 5 Creating Stored Processes
12. On the lower portion of the Step 3 window, clear the Streaming check box if it is checked. Only the
Package check box should be selected in the SAS Result Types area.
The updated fields should resemble the following:
The LIBID= option uses the unique identifier assigned to the library in the metadata. You do
not have to know this identifier. If you supply your own LIBNAME statement, you can use
the librarys descriptive name with the LIBRARY= option.
14. Accept the default values and click Next. In Step 5, you specify prompt information that is used as
parameters for the stored process.
15. This stored process does not use parameters, so click Next.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-39
16. Verify that the Run stored process when finished check box is selected.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-40 Chapter 5 Creating Stored Processes
Because the stored process was created from the task, the output matches the output of
the task.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-41
18. Click to close the results and display the Process Flow window.
The stored process and its results are included as part of the process flow.
1. Right-click in the background of the Process Flow window and select Create Stored Process.
In order to create a stored process from all of the tasks in the project, select Create Stored
Process by right-clicking in the background of the Process Flow window. Do not right-click
any of the items in the Process Flow window, and do not select New Stored Process.
2. Click OK to close the warning window.
The current project now includes the stored process that you created. A stored process cannot
be part of another stored process definition.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-42 Chapter 5 Creating Stored Processes
The Create New SAS Stored Process Wizard remembers selected values from the last time it
was run.
4. Click Next to move to Step 2.
Step 2 contains the SAS code from all of the tasks in the project.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-43
5. No changes are needed in the SAS code. Click Next to move to Step 3. Verify that the execution
server, source filepath, and source filename are the same as shown below.
6. Clear the Streaming check box.
The Create New SAS Stored Process Wizard remembers the execution options. The name of
the SAS code file is updated to match the new stored process name.
7. Click Next to move to Step 4.
8. Accept the default values in Step 4, and click Next to move to Step 5.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-44 Chapter 5 Creating Stored Processes
9. This stored process does not use parameters, so click Next to move to Step 6.
10. Click Finish.
As before, the stored process program is created, registered in metadata, and added to the project.
The output from running the stored process is displayed.
11. Use the scroll bar to verify that the output from all three tasks was created.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.2 Creating a Stored Process from a SAS Enterprise Guide Project 5-45
12. Click to close the results and display the Process Flow window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-46 Chapter 5 Creating Stored Processes
Exercises
a. Open SAS Enterprise Guide. If necessary, change the connection profile to use Ellen. Open the
Supplier Delivery Report project from the S:\Workshop\SP directory and run all the tasks to
refresh the project.
Hint: Close the results to display the Process Flow window.
b. Create a stored process from all of the tasks in the project.
Hint: Right-click in the background of the Process Flow window and select Create Stored
Process.
Name the stored process SP Supplier Delivery Report.
Store the new stored process in the Orion Star Sales Department Stored Processes folder.
Select SASApp - Logical Stored Process Server as the value for the Execution server field.
Select S:\Workshop\SP as the value for the Source file path field.
Select Package as the only output option selection.
c. Save the SAS Enterprise Guide project with the name FT Supplier Delivery Report in the
S:\Workshop\sbaft43 location.
d. Close SAS Enterprise Guide.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Creating a Stored Process from a SAS Program 5-47
Objectives
Define the Create New SAS Stored Process Wizard
steps when you create a stored process from
SAS code in SAS Enterprise Guide.
Create a stored process from existing SAS code in
SAS Enterprise Guide.
75
76
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-48 Chapter 5 Creating Stored Processes
77
78
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Creating a Stored Process from a SAS Program 5-49
79
80
When you select Include code for, you tell SAS Enterprise Guide whether to insert code
elements such as stored process macros, global macro variables, or a LIBNAME statement.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-50 Chapter 5 Creating Stored Processes
81
The SAS code that you specify in the wizard must include a LIBNAME statement, or the library
reference specification must be available to the execution server by another means, such as a
predefined library.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Creating a Stored Process from a SAS Program 5-51
This demonstration illustrates how to use SAS Enterprise Guide to create stored processes from existing
SAS program code.
LIBNAME OSDM META LIBRARY="Orion Star Reporting Library";
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-52 Chapter 5 Creating Stored Processes
The code includes a LIBNAME statement that uses the metadata LIBNAME engine.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Creating a Stored Process from a SAS Program 5-53
The stored process program is created, registered in metadata, and added to the project. The output
from running the stored process is displayed.
18. Use the scroll bar to verify that the stored process created a crosstabular report as well as the bar
chart.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-54 Chapter 5 Creating Stored Processes
19. Click to close the results and display the Process Flow window.
Although you do not save the project, the stored process is created and registered in metadata,
and the stored process program is saved to the operating system.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.3 Creating a Stored Process from a SAS Program 5-55
Exercises
a. Create a new project in SAS Enterprise Guide. If necessary, change the connection profile to use
Ellens credentials.
b. Create a new stored process in SAS Enterprise Guide, and in Step 1 of the Stored Process Wizard,
name the stored process SP Van Dammeren Feedback.
c. In Step 2 of the Stored Process Wizard, use the code from the SP Supplier Feedback.sas program
for the stored process. This program is stored in the S:\Workshop\SP folder. Save the new stored
process in the Orion Star Sales Department Stored Process folder.
Hint: Use the Replace with code button in Step 2 to use the existing program for the stored
process. The program already has the logic to select Van Dammeren International.
d. Accept all the defaults for the remaining steps in the Stored Process Wizard. Run the stored
process and review the results.
e. Close SAS Enterprise Guide without saving the project.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-56 Chapter 5 Creating Stored Processes
Objectives
Describe how stored processes use the prompting
framework to enable passing user values to the stored
process program code.
Explore the macro variables created for each prompt
type.
Describe how the SAS macro language is used
with stored processes.
Explore how to use the prompting framework
in SAS Enterprise Guide.
List the types of stored process prompts.
Describe how to populate prompt values.
86
87 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-57
88
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-58 Chapter 5 Creating Stored Processes
5.05 Poll
A base macro variable is generated for every type
of prompt.
True
False
91
93
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-59
Parameter Constraints
Parameter values can be limited by constraints that are
specified by an enumerated list or a range of valid values.
94
95
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-60 Chapter 5 Creating Stored Processes
5.06 Poll
Have you used the SAS macro facility?
Yes
No
97
98
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-61
99
100
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-62 Chapter 5 Creating Stored Processes
101
It is a best practice to begin all stored processes (regardless of the server type) with %GLOBAL
declarations for all of your input parameters. The %GLOBAL declarations create an empty macro
variable for each possible input parameter. They enable you to reference the macro variable in the stored
process program even if it was not set by the stored process client application. If you do not declare input
parameters in a %GLOBAL statement, then any references to an unset input parameter result in warning
messages in the SAS log.
A %LET statement in the SAS code overrides the parameter value from the prompting
framework.
%let year=2009;
%let quarter=1;
%let month=1;
103
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-63
104
106
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-64 Chapter 5 Creating Stored Processes
107
108
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-65
Displayed text
Description
Parent group
Options
5.08 Quiz
Which of the following are valid SAS names?
a. Number of Orders
b. Number_of_Orders
c. #ofOrders
d. 2010HolidayOrders
111
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-66 Chapter 5 Creating Stored Processes
Attributes for
the selected
prompt type
113
Hyperlink
Data source
File or directory
Color
Data library
Variable
114
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-67
115
116
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-68 Chapter 5 Creating Stored Processes
117 continued...
118
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-69
119
5.09 Quiz
Match the method for populating
prompts to the value being
prompted.
121
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-70 Chapter 5 Creating Stored Processes
123
selection group.
124
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-71
This demonstration illustrates how to add a prompted query in SAS Enterprise Guide to filter data. You
then create a new stored process from the project.
1. Select Start All Programs SAS SAS Enterprise Guide 4.3.
2. If necessary, change the connection profile to use Erics credentials.
3. Open the SP Customer Order Information project from S:\Workshop\SP\.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-72 Chapter 5 Creating Stored Processes
d. Click Prompt Manager to build a new prompt to use in the filter. The Prompt Manager window
appears.
The Prompt Manager enables you to build SAS Enterprise Guide prompts. These prompts
can also be used as part of a stored process.
1) Click Add.
2) Type SelectOrderType in the Name field.
SAS Enterprise Guide prompt names must be valid SAS names. Valid SAS names are
1 to 32 characters in length; contain letters, numbers, or underscores; and cannot start
with a number.
3) Type Select an order type in the Displayed text field.
4) Click the Requires a non-blank value check box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-73
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-74 Chapter 5 Creating Stored Processes
17) Click to copy all of the values to the Selected values list box. After all the selections are
copied, the Get Values window should resemble the following:
Because the underlying data source has a permanent user-defined format associated
with the variable, the formatted values are displayed to the user of the prompt. The
prompting framework provides the unformatted values to the macro variable when
the variable is used as a stored process parameter.
18) Click OK to close the Get Values window.
19) Click the radio button to set the default value to Catalog Sale.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-75
2) Click (the Filter icon) on the Filter Data tab to create a new filter.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-76 Chapter 5 Creating Stored Processes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-77
9. Redefine the input data used for the One-Way Frequencies, Bar-Line Chart, and Summary Tables
tasks.
a. Right-click One-Way Frequencies and select Select Input Data
1 QUERY_FOR_CUSTORDERS.
b. Right-click Bar-Line Chart and select Select Input Data
1 QUERY_FOR_CUSTORDERS.
c. Right-click Summary Tables and select Select Input Data
1 QUERY_FOR_CUSTORDERS.
The Process Flow window should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-78 Chapter 5 Creating Stored Processes
10. Create a new stored process from all of the tasks in the project.
a. Right-click in the background of the Process Flow window and select Create Stored Process.
b. Type SP Customer Analysis by Order Type in the Name field.
c. Click Browse to change the value of the Location field to Orion Star
Marketing Department Stored Processes.
d. Click Next to move to Step 2.
e. In the SAS Code window, scroll to the PROC SQL step. The WHERE clause is used to filter the
data based on the value of the prompt.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-79
Step 5 shows that the prompt used in the Query Builder task is automatically included as part of
the stored process.
i. Click Next to move to Step 6. There are no data sources or targets. Click Next to move to Step 7.
j. Verify that Run stored process when finished is selected.
k. Select Finish.
The stored process is registered in metadata and added to the project. The stored process runs, and
the Specify Values for Project Prompts window appears.
l. Accept the default value and click Run.
m. Scroll through the results to verify that output from all three tasks is included.
n. Click to close the results of the stored process.
11. Save the project by selecting File Save FT Customer Order Information by Order Type.
12. Select File Exit to close SAS Enterprise Guide.
13. Click OK when you are prompted about closing a project with temporary data.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-80 Chapter 5 Creating Stored Processes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-81
8. Scroll to the top of the Word document and verify that output from all three tasks is displayed. Partial
results from each step should resemble the following:
Summary Tables Output
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-82 Chapter 5 Creating Stored Processes
9. Click File Exit to close Microsoft Word. (Do not save the changes.)
10. Click Dont Save when you are prompted to save changes.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.4 Creating Stored Process Parameters 5-83
Exercises
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-84 Chapter 5 Creating Stored Processes
Objectives
Implement cascading prompts for stored process
parameters.
List the three types of prompt groups.
Describe the steps to define selection groups.
129
Prompt groups
Shared prompts
130 ...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-85
Prompt groups
Shared prompts
131
132
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-86 Chapter 5 Creating Stored Processes
133
Defining Dependencies
The dependencies that create cascading prompts are
defined in the prompt that depends on another prompt
for its values.
Although the values for the dependent prompt must be populated using a dynamic list, the first
prompt (or initial prompt) does not necessarily need to be dynamic. For example, the first prompt
could ask the user to select from one of three possible order types. Then the second (or
dependent) prompt could present the user with a dynamic list of products for only the selected
order type. There would be no need for the first prompt to be a dynamic prompt, given that the
values for order type are not likely to change.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-87
This demonstration illustrates how to create a stored process that includes cascading prompts.
1. Select Start All Programs SAS SAS Enterprise Guide 4.3.
2. Select New Project in the Welcome to SAS Enterprise Guide window.
3. If necessary, change the connection profile to use Erics credentials.
4. Create a new stored process from an existing SAS program.
LIBNAME sales meta library="Sales Analysis Library";
AXIS1 STYLE=1 WIDTH=1;
AXIS2 STYLE=1 WIDTH=1 MINOR=NONE;
TITLE1 "Total Sales by Year";
TITLE2 "Product Category: &category";
TITLE3 "Product Subcategory: &subcategory";
PROC GCHART DATA=sales.sales_analysis;
HBAR3D Year / SUMVAR=TotalSales
SHAPE=CYLINDER
FRAME
DISCRETE
TYPE=SUM
SUM
NOLEGEND
COUTLINE=BLACK
MAXIS=AXIS1
RAXIS=AXIS2
PATTERNID=MIDPOINT;
FORMAT TotalSales DOLLAR14.;
WHERE ProductCategory="&category" and
ProductSubcategory="&subcategory" and
Year between &year_min and &year_max;
RUN;
QUIT;
a. Select File New Stored Process.
b. Type SP Sales by Year in the Name field.
c. Click Browse and select Orion Star Marketing Department Stored Processes as the
value for the Location field.
d. Click Next to move to Step 2.
e. Click Replace with code and select From My Computer.
f. Navigate to S: Workshop SP.
g. Double-click SPTotalSalesbyYear.sas.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-88 Chapter 5 Creating Stored Processes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-89
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-90 Chapter 5 Creating Stored Processes
24) Verify that Select a category is selected as the value for the Prompt field.
25) Verify that ProductCategory is selected as the value for the Column field.
26) Select Equal as the value for the Operator field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-91
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-92 Chapter 5 Creating Stored Processes
f. Click Run.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-93
Prompt groups
Shared prompts
136
Prompt Groups
Prompt groups can be used to organize multiple prompts
and control the conditional execution of prompts.
There are three types of prompt groups:
Standard group
Transparent group
Selection group
137
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-94 Chapter 5 Creating Stored Processes
138
Standard Groups Transparent Groups ...
Group
Navigation
Group
Headers
139
Standard Groups Transparent Groups
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-95
Selection Groups
Selection groups enable you to display different prompts
based on a condition.
Example: Depending on the country, a report can prompt
the user for state and city or for city only. The
response to the initial prompt determines
which additional prompts to display.
140
Name
Selection-dependent
groups
141 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-96 Chapter 5 Creating Stored Processes
142 continued...
143
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-97
This demonstration illustrates how to create a stored process that uses a selection group to enable users to
conditionally select different prompts.
This demonstration assumes that you have SAS Enterprise Guide and the FT Sales by Year
project open.
1. Select File New Project.
2. Create a new stored process from an existing SAS program.
%global category subcategory year_min year_max;
*ProcessBody;
LIBNAME sales meta library="Sales Analysis Library";
%macro spreport;
AXIS1 STYLE=1 WIDTH=1;
AXIS2 STYLE=1 WIDTH=1 MINOR=NONE;
PROC GCHART DATA=sales.sales_analysis;
HBAR3D Year / SUMVAR=TotalSales
SHAPE=CYLINDER
FRAME
DISCRETE
TYPE=SUM
SUM
NOLEGEND
COUTLINE=BLACK
MAXIS=AXIS1
RAXIS=AXIS2
PATTERNID=MIDPOINT;
FORMAT TotalSales DOLLAR14.;
%if &catyear=CAT %then %do;
WHERE ProductCategory="&category" and
ProductSubcategory="&subcategory";
TITLE1 "Total Sales by Year";
TITLE2 "Product Category: &category";
TITLE3 "Product Subcategory: &subcategory";
%end;
%else %do;
WHERE Year between &year_min and &year_max;
TITLE1 "Total Sales by Year";
%end;
RUN;
QUIT;
%mend;
%stpbegin;
%spreport;
%stpend;
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-98 Chapter 5 Creating Stored Processes
i. Click Yes.
You can manually turn off these options by selecting Include code for.
j. Verify the execution options and then click Next to move to Step 4.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-99
When this value is selected, the Selection-Dependent Groups tab becomes available.
5) On the Selection-Dependent Groups tab, create two groups with no default value.
a) Click the Selection-Dependent Groups tab.
b) Click New Group.
c) Type Category in the Displayed text field.
d) Type CAT in the Value field.
The code that you create later must match exactly what you type here in the
Value field, including the case (all uppercase, mixed case, and so on).
e) Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-100 Chapter 5 Creating Stored Processes
i) Click OK.
The Selection-Dependent Groups tab should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-101
j) Click OK to close the Edit Group window. The updated prompts should resemble the
following:
At this point, you created a prompt to ask the user if he or she wants to subset the report
by category or year. For the Category path, you want to prompt the user to select a
category and subcategory. For the Year path, you only want to prompt the user to select a
year.
l. Create the category prompt.
1) Select the Category prompt group.
2) Select New Prompt from SAS Code for category.
3) Type Select a category in the Displayed text field.
4) Click the Requires a non-blank value check box.
5) Click the Prompt Type and Values tab.
6) Verify that Text is selected as the value for the Prompt type field.
7) Select Users selects values from a dynamic list as the value for the Method for populating
prompt field.
8) Verify that Single Value is selected as the value for the Number of values field.
9) Click Browse next to the Data source field.
10) Navigate to Orion Star Marketing Department Data.
11) Double-click SALES_ANALYSIS.
12) Select ProductCategory as the value for the Column field.
13) Click OK.
m. Create the subcategory prompt.
1) Select the Category prompt group.
2) Select New Prompt from SAS Code for subcategory.
3) Type Select a Subcategory in the Displayed text field.
4) Click the Requires a non-blank value check box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-102 Chapter 5 Creating Stored Processes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-103
11) Click OK. The completed prompts should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-104 Chapter 5 Creating Stored Processes
d. Click Run.
e. Click to close the results and return to the Process Flow window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.5 Creating Advanced Prompts 5-105
f. Click Run.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-106 Chapter 5 Creating Stored Processes
5.6 Solutions
Solutions to Exercises
1. Using SAS Web Report Studio
Use SAS Web Report Studio to run the Product Sales by Customer Age Group stored process for
the year 2007 without building a new report.
a. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or by
selecting Start All Programs Internet Explorer.
b. Select Favorites SAS Web Report Studio.
c. Type Ellen in the User name field and type the password provided by your instructor.
d. Click Log On.
e. Select File Open.
f. Select Orion Star Sales Department Stored Processes Product Sales by Customer Age
Group.
g. Click Open.
h. Accept 2007 as the value for the Select Report Year field.
i. Click View Report.
The stored process output is displayed in View mode.
j. Select Log Off Ellen to log off from SAS Web Report Studio.
k. Select OK when you are prompted to discard the changes.
l. Select File Close to close Internet Explorer.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-107
The project filters catalog and Internet sales for all suppliers to determine average
delivery time. Because customers primarily pick up orders at the physical store
locations, the retail orders are excluded from this report.
b. Click Run Run Process Flow to run all of the tasks in the project and view the output.
c. Click to close the results and display the Process Flow window.
d. Right-click in the background of the Process Flow window and select Create Stored Process.
1) Type SP Supplier Delivery Report in the Name field.
2) Click Browse to select the metadata folder in which to store the new stored process.
3) Navigate to SAS Folders Orion Star Sales Department Stored Processes.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-108 Chapter 5 Creating Stored Processes
4) Click Save to save the location and return to Step 1 of the wizard.
The updated fields should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-109
The stored process is created, registered in the metadata, added to the project, and executed.
Only partial results are shown. Scroll down in the Results window to view the entire
report.
12) Click the down arrow next to the name of the stored process and select Process Flow.
Alternately, you can click the small in the upper right corner of the workspace to
return to the Process Flow window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-110 Chapter 5 Creating Stored Processes
After you return to the Process Flow window, you should see that the stored process was
added.
c. Save the SAS Enterprise Guide project under the name FT Supplier Delivery Report in the
S:\Workshop\sbaft43 location.
1) Select File Save Supplier Delivery Report As.
2) If necessary, navigate to My Computer S: Workshop sbaft43.
3) Type FT Supplier Delivery Report in the File name field.
4) Click Save.
d. Close SAS Enterprise Guide.
1) Select File Exit to close SAS Enterprise Guide.
2) Click OK, if you are prompted, to continue closing the project.
3. Creating a Stored Process from a SAS Program
As Ellen, create a stored process from a SAS program to provide a report for a selected supplier,
Van Dammeren International.
a. Create a new project in SAS Enterprise Guide.
1) Select Start All Programs SAS Enterprise Guide 4.3 to invoke SAS Enterprise Guide.
2) Select New Project from the Welcome window.
3) If necessary, change the connection profile to use Ellens credentials.
b. Create a new stored process in SAS Enterprise Guide, and in Step 1 of the Stored Process Wizard,
name the stored process SP Van Dammeren Feedback.
1) Select File New Stored Process. The Create New SAS Stored Process Wizard window
appears.
2) Type SP Van Dammeren Feedback in the Name field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-111
3) If necessary, click Browse and set the value of the Location field to Orion Star
Sales Department Stored Processes.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-112 Chapter 5 Creating Stored Processes
The results are a short report followed by a bar chart for the Van Dammeren International
Company.
Use the scroll bar to review all the results from the report step as well as the bar chart step.
e. Close SAS Enterprise Guide without saving the project.
1) Click to close the results and display the Process Flow window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-113
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-114 Chapter 5 Creating Stored Processes
Changed Code
2) In the PROC GCHART step, use the footnote to display information about where the stored
process was run.
Original Code (above the PROC GCHART Step)
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-115
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-116 Chapter 5 Creating Stored Processes
After you click OK, the Edit Prompt window should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-117
6) Click Run. The report for Van Dammeren International is displayed. Notice the footnote
underneath the bar chart.
7) Reset the prompts and rerun the stored process for another supplier.
a) Return to the process flow by clicking SP Supplier Prompt Process Flow.
b) Right-click on the stored process name and select Reset Prompts from the pop-up menu.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-118 Chapter 5 Creating Stored Processes
c) Right-click again on the stored process name and select Run SP Supplier Prompt.
d) Click Yes when you are prompted to replace the previous results.
e) For the second run, select Twain Inc as the value for the Select a Supplier field.
f) Click Run to run the stored process a second time.
The report for Twain Inc should appear. Notice the different supplier name in the title for
the output and the value used for the GCHART footnote.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-119
10
47
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-120 Chapter 5 Creating Stored Processes
59
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5.6 Solutions 5-121
92
105
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
5-122 Chapter 5 Creating Stored Processes
112
122
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-2 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 SAS BI Dashboard Terminology and Interfaces 6-3
Objectives
Define the purpose of a dashboard.
Describe the SAS BI Dashboard application and the
SAS BI Dashboard portlet.
List the different components used to create
dashboards.
List the SAS platform applications for working
with dashboards.
Describe the SAS BI Dashboard application.
Describe the SAS BI Dashboard portlet.
What Is a Dashboard?
Dashboards are information delivery tools that visually
display key metrics. Information presented this way can
be interpreted at a glance and monitored to support
decision making.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-4 Chapter 6 Creating Dashboards
6.01 Poll
Have you used SAS BI Dashboard to create dashboards,
view dashboards, or both?
Yes
No
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 SAS BI Dashboard Terminology and Interfaces 6-5
6.02 Poll
Have you used the SAS Information Delivery Portal?
Yes
No
10
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-6 Chapter 6 Creating Dashboards
Dashboard Components
Dashboards consist of several components. These
components are objects stored in the metadata repository.
Metadata
Repository
11
Dashboard
A dashboard is a container that displays one or more
indicators or static objects. The dashboard can be
displayed in the SAS Information Delivery Portal or
in the SAS BI Dashboard application.
Indicator Static
Label
12
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 SAS BI Dashboard Terminology and Interfaces 6-7
Indicator
An indicator is an object that defines the display settings
and other properties for visually displaying information in
a dashboard.
13
Indicator Data
The Indicator Data
component
retrieves data for
an indicator.
This component is
basically a query
against the data
source.
14
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-8 Chapter 6 Creating Dashboards
Range
A range defines the measurement intervals by which a
metric is evaluated. In addition to the code intervals, the
range also defines the colors and labels displayed in an
indicator.
15
.dcx = Dashboard
.idx = Indicator
.rdx = Range
16
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 SAS BI Dashboard Terminology and Interfaces 6-9
6.03 Quiz
What is the difference between an indicator data object
and an indicator object?
18
20
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-10 Chapter 6 Creating Dashboards
6.04 Poll
Both the Dashboard Viewer and SAS BI Dashboard
portlet enable you to create dashboard components.
Yes
No
22
Viewing Dashboards
You can view dashboards in the SAS BI Dashboard
application or in the SAS Information Delivery Portal.
24
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 SAS BI Dashboard Terminology and Interfaces 6-11
25
26
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-12 Chapter 6 Creating Dashboards
27
28
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 SAS BI Dashboard Terminology and Interfaces 6-13
30
Edit Portlet
The (Edit content icon) in the portlet opens the
Edit Portlet window, where you specify the following:
Portlet title
Portlet
dimensions
Auto refresh
interval
Dashboard
to display
32
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-14 Chapter 6 Creating Dashboards
33
34
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.1 SAS BI Dashboard Terminology and Interfaces 6-15
35
Dashboard Designer
The Dashboard Designer appears with the Objects pane
and the workspace displayed.
Objects
Pane
Workspace
36
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-16 Chapter 6 Creating Dashboards
Objects
pane Properties
pane
37
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Designing SAS BI Dashboard Components 6-17
Objectives
Describe the process for designing dashboard
components.
List the steps to build the dashboard components
based on the design.
Describe the Dashboard Designer interface.
40
41
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-18 Chapter 6 Creating Dashboards
42
Discussion
43
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Designing SAS BI Dashboard Components 6-19
.dcx = Dashboard
.idx = Indicator
.rdx = Range
44
45 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-20 Chapter 6 Creating Dashboards
Dashboard objects
named with a three-
character prefix:
DAT indicator data
DSH dashboard
IND indicator
RNG range
46
47
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Designing SAS BI Dashboard Components 6-21
49
Objects
Pane Properties
Pane
Workspace
51
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-22 Chapter 6 Creating Dashboards
Workspace Icons
52
53
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.2 Designing SAS BI Dashboard Components 6-23
54
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-24 Chapter 6 Creating Dashboards
Objectives
Describe the four data sources that can be used when
you define indicator data.
List the display attributes that can be set for each
column in indicator data.
Use an information map as the data source for an
indicator data object
Use an SQL query as the data source for an indicator
data object.
57
58
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-25
59
60
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-26 Chapter 6 Creating Dashboards
61
62
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-27
63
64
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-28 Chapter 6 Creating Dashboards
65
66 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-29
Column Name The name of the data column. This attribute cannot be modified.
Category Label The data column that provides a label to identify each row.
Label The data column that provides a formatted value for each row.
Hyperlink The data column that provides a URL for each row.
Property Alias The text string used in tooltip text and for axis labels.
Category Label
(Year) Label
(SalesLabel)
67
69
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-30 Chapter 6 Creating Dashboards
73
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-31
74
75
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-32 Chapter 6 Creating Dashboards
Discussion
76
77
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-33
78
79
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-34 Chapter 6 Creating Dashboards
80
81
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-35
This demonstration illustrates how to use an information map as a data source for a dashboard indicator
data object
d. Double-click the Orion Star Organization table to add it to the Selected Resources list box of
the Design tab (or right-click the table name and select Insert Table).
g. Click to expand the Orion Star Organization table and display the physical column names.
h. Double-click the following columns to create new data items from them:
Department
Salary
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-36 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-37
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-38 Chapter 6 Creating Dashboards
d. Click View SQL to view the SQL query code that was run for the test.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-39
1. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or by selecting
Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS BI Dashboard. The SAS BI Dashboard logon
page appears.
The URL used to access SAS BI Dashboard on the classroom machines is specific to the
classroom configuration. The URL used at your site will be different.
3. Type Eric in the User name field and specify the password provided by your instructor.
4. Click Log On.
The Dashboard Viewer appears and displays the previously viewed dashboard by default.
The option to open a previous dashboard can be set using the View menu. Although this is the
default behavior, this option is not selected on the classroom machines.
5. Select Manage Dashboards to open the Dashboard Designer.
6. Create indicator data for sales by month.
a. Select File New Indicator Data.
b. Type DAT_BID Employee Salaries in the Name field.
c. Click OK.
d. Select Information map as the value for the Data source field.
e. Click Browse next to the Information map field.
f. Navigate to Orion Star Marketing Department Dashboards.
g. Select BID Department Salary.
h. Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-40 Chapter 6 Creating Dashboards
The Data Mapping tab in the Preview Design area should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-41
i. Select the Query Results tab to view the columns and rows returned by the query.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-42 Chapter 6 Creating Dashboards
Exercises
Format DOLLAR14.0
Format COMMA12.0
Format DOLLAR14.0
c. Create a new data item named Year that is calculated by extracting the year from the order date.
Property Value
Format F4.0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-43
e. Save the information map as FT Yearly Sales by Product Group in Orion Star
Sales Department Dashboards and close SAS Information Map Studio.
2. Creating a New Indicator Data Object Using the New Information Map as the Data Source
a. Log on to SAS BI Dashboard. Use Ellens credentials.
b. Create a new indicator data object named DAT_FT Sales by Year and Product.
Use the FT Yearly Sales by Product Group information map as the data source.
c. Save the new indicator data object in the Orion Star Sales Department Dashboards
location and log off from SAS BI Dashboard.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-44 Chapter 6 Creating Dashboards
85
6.08 Poll
Have you have written SQL queries?
Yes
No
87
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-45
SQL Syntax
A SELECT statement is used to query one or more tables
and contains smaller building blocks called clauses.
select Emp_ID, Emp_Gender, Salary
from sasdata.Employee_Payroll
clauses
where Employee_Gender = 'F'
88
89
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-46 Chapter 6 Creating Dashboards
6.09 Poll
The WHERE clause is used to select columns.
True
False
91
93
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-47
94
95
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-48 Chapter 6 Creating Dashboards
96
SASHELP.VTABLE is a reference to a SAS dictionary table. Dictionary tables are read-only SAS views
that contain session metadata, such as information about SAS libraries, data sets, and external files in use
or available in the current SAS session.
Dictionary tables are created at SAS session initialization, updated automatically by SAS, limited to
Read-Only access, and can be accessed using the Sashelp libref.
97
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-49
99
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-50 Chapter 6 Creating Dashboards
100
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-51
This demonstration illustrates how to use an SQL query as a data source for a dashboard indicator data
object.
1. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or by selecting
Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS BI Dashboard. The SAS BI Dashboard logon
page appears.
3. Type Eric in the User name field and specify the password provided by your instructor.
4. Click Log On.
5. Select Manage Dashboards to open the Dashboard Designer.
6. Create the BID Sales Forecast indicator data.
a. Select File New Indicator Data.
b. Type DAT_BID Sales Forecast in the Name field.
c. Click OK.
d. Select SQL query as the value for the Data source field.
e. Type the following in the SQL query field:
select input(year,4.) as Year format=4., actual, forecast, L95,
U95, target from sasdata.salesforecast
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-52 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.3 Creating Indicator Data 6-53
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-54 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.4 Creating Ranges 6-55
Objectives
Describe the purpose of a range.
List the components that make up a range and what
they are used for.
List the steps to define a range.
Describe the range for the Sales by Month example.
104
105
1
0
5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-56 Chapter 6 Creating Dashboards
Range
A range defines the intervals for a metric. In addition to
the intervals, a range also defines the colors and labels
displayed in an indicator.
106
1
0
6
Components of a Range
There are several
components of a
range, including
the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.4 Creating Ranges 6-57
6.10 Poll
Is it possible to have multiple interval ranges with the
same Code Interval value?
Yes
No
109
111
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-58 Chapter 6 Creating Dashboards
Demonstration: Range
Example: You create a range to use with sales target
values that are grouped by company.
112
Exercise: Range
Example: You create a range to use with sales values
that are grouped by product category.
113
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.4 Creating Ranges 6-59
Creating Ranges
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-60 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.4 Creating Ranges 6-61
The updated list of intervals and their attributes should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-62 Chapter 6 Creating Dashboards
Exercises
c. Save the new range in the Orion Star Sales Department Dashboards location and logoff
SAS BI Dashboard.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-63
Objectives
List the items that must be defined when you create
an indicator.
Describe the categories of indicator properties.
List the purpose of the indicator configuration icons.
Explore the indicator display types.
List the indicator graph styles.
Describe how indicator display types aggregate data.
List the steps to create an indicator.
117
118
1
1
8
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-64 Chapter 6 Creating Dashboards
Indicator (Review)
An indicator is an object that defines the display settings
and other properties for visually displaying information
on a dashboard.
119
1
1
9
Creating an Indicator
When you create an indicator, you must specify a name,
a display type, and, in most cases, select the indicator
data that will be displayed by the indicator.
120
1
2
0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-65
122
Indicator Properties
Each indicator display type has different properties that
are grouped into the following categories:
General General properties include the indicator
height and width as well as the display
type.
Role Mapping The role mapping properties determine
which data is included in the display,
how the data is grouped, how the data is
summarized, and so on.
User User personalization properties enable
Personalization you to choose whether to enable users
to manage alerts and whether to limit
which e-mail templates the user can
select.
124
1
2
4
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-66 Chapter 6 Creating Dashboards
125
1
2
5
126
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-67
Display Types
Bar Chart with Bullet Bar Chart with Reference Lines
Bubble Plot
127 continued...
Display Types
Chart with Slider Prompt
128 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-68 Chapter 6 Creating Dashboards
Display Types
Dual Line Chart Dynamic Prompt
Forecast Chart
Dynamic Text
129 continued...
Display Types
Interactive Summary and Bar Chart Interactive Summary and Scatter Plot
130 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-69
Display Types
KPI (Key Performance Indicator) Line Chart with Reference Lines
131 continued...
Display Types
Range Map Scatter Histogram
132 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-70 Chapter 6 Creating Dashboards
Display Types
Simple Bar Chart Spark Table
133 continued...
Display Types
Tile Chart Vector Plot
Waterfall Chart
134
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-71
Graph Styles
Many of the display types enable you to select from
several graph styles, including the following:
135
6.12 Quiz
What is the difference between the simple bar chart
display type, with all blue bars, and the targeted bar chart
that shows different colored bars?
137
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-72 Chapter 6 Creating Dashboards
YES
Aggregation
AVG
Type
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-73
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-74 Chapter 6 Creating Dashboards
YES
Notes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-75
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-76 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-77
Define Link
Indicator Display Type
Link Destination
Bar Chart with Bullet YES YES
Bar Chart with Reference Lines YES YES
Bubble Plot YES YES
Chart with Slider Prompt NO YES
Clustered Bar Chart YES YES
Custom Graph YES YES
Dual Line Chart YES YES
Dynamic Prompt NO YES
Dynamic Text NO YES
Forecast Chart YES YES
Interactive Summary and Bar Chart YES NO
Interactive Summary and Scatter Plot YES NO
Interactive Summary and Targeted Bar Chart YES NO
KPI YES YES
Line Chart with Reference Lines YES YES
Needle Plot YES YES
Pie Chart YES YES
Range Map YES YES
Scatter Histogram YES YES
Scatter Plot YES YES
Schedule Chart YES YES
Simple Bar Chart YES YES
Spark Table YES YES
Stacked Bar Chart YES YES
Targeted Bar Chart YES YES
Tile Chart YES YES
Vector Plot YES YES
Waterfall Chart YES YES
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-78 Chapter 6 Creating Dashboards
YES
Notes
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-79
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-80 Chapter 6 Creating Dashboards
143
Clicking in the column heading enables you to add and delete columns. You can also move the columns in
a spark table by dragging the column to a new location.
144
Use the URL from the SAS Stored Process Web Application as the value of the Image URL field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-81
145
Demonstration: Indicator
Example: You use a Forecast Chart display to create a
new indicator.
146
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-82 Chapter 6 Creating Dashboards
Demonstration: Indicator
Example: You use a KPI display to create a new
indicator.
147
Demonstration: Indicator
Example: You use an Interactive Summary and
Targeted Bar Chart display to create a
new indicator.
148
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-83
Demonstration: Indicator
Example: You use a Spark Table display to create a
new indicator.
149
Demonstration: Indicator
Example: You use a Custom Graph display to create a
new indicator.
150
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-84 Chapter 6 Creating Dashboards
Exercise: Indicator
Example: You use a Spark Table display to create a
new indicator.
151
Exercise: Indicator
Example: You use a Clustered Bar Chart display
to create a new indicator.
152
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-85
Creating Indicators
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-86 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-87
Make sure that you selected the correct object. The classroom image contains an
indicator data object named DAT_Targeted Sales by Company.
3) Click OK.
f. Click Browse next to the Range field.
1) If necessary, navigate to Orion Star Marketing Department Dashboards.
2) Select RNG_BID Targeted Sales by Company.
Make sure that you selected the correct object. The classroom image contains a range
named RNG_Targeted Sales by Company.
3) Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-88 Chapter 6 Creating Dashboards
1) Click (the Edit gauge properties icon) at the top of the Properties window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-89
3) Click Close.
j. Specify the Role Mapping values in order to display the indicator.
1) Select sales as the value for the Range Value field.
2) Select salestarget as the value for the Range Value 2 field.
3) Select Company as the value for the KPI title field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-90 Chapter 6 Creating Dashboards
Make sure that you select the correct object. The classroom image contains an
indicator data object named DAT_Targeted Sales by Company.
3) Click OK.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-91
Make sure that you select the correct object. The classroom image contains a range
named RNG_Targeted Sales by Company.
3) Click OK.
The Create an Indicator window should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-92 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-93
Make sure that you select the correct object. The classroom image contains an
indicator data object named DAT_Targeted Sales by Company.
3) Click OK.
The Create an Indicator window should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-94 Chapter 6 Creating Dashboards
2) Click the cost column heading in the table and drag it between Company and profit.
3) Click the sales column heading in the table and drag it between cost and profit.
Make sure that you select the correct object. The classroom image contains a
range named RNG_Targeted Sales by Company.
c) Click OK.
3) Select Pointers as the value for the Gauge type field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-95
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-96 Chapter 6 Creating Dashboards
In this example, the graphic results displayed in the Custom Graph display are generated
dynamically as a stored process.
a. Select File New Indicator.
b. Type IND_BID Financial Analysis in the Name field.
c. Select Custom Graph as the value for the Display type field.
The Create an Indicator window should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-97
Follow these steps to determine the correct URL. Use the SAS Stored Process Web
Application.
Log on to the SAS Stored Process Web Application. On the classroom machine,
select Favorites SAS Stored Process Web Application in Internet Explorer.
Use the appropriate credentials to log on.
Select List Available Stored Processes in the lower left corner.
Navigate to the SAS Folders location and select the desired stored process.
Right-click in the displayed results and select Properties.
Copy the complete value in the Address (URL) field. This is the address that
should be used in the Image URL field in the indicator.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-98 Chapter 6 Creating Dashboards
Exercises
Property Value
Width 500
Height 110
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.5 Creating Indicators 6-99
Property Value
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-100 Chapter 6 Creating Dashboards
Property Value
Width 750
Height 300
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-101
Objectives
Describe the types of objects that can be added to a
dashboard.
List the ways to control the layout and appearance of
the objects on a dashboard.
Describe the types of object properties that can be set
for each object on a dashboard.
Describe indicator interactions.
List the types of indicator interactions.
Describe the steps to define indicator interactions.
157
158
1
5
8
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-102 Chapter 6 Creating Dashboards
What Is a Dashboard?
A dashboard is a container that displays one or more
indicators or static objects. The dashboard can be
displayed in the SAS Information Delivery Portal or in
the SAS BI Dashboard application.
Indicator Static
Label
159
1
5
9
6.13 Poll
Dashboards can contain only a single indicator.
True
False
161
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-103
163
1
6
3
Dashboard Layout
Because a dashboard is a container for other objects,
there are several ways to control the layout of those
objects including the following:
Alignment Icons on the toolbar enable you to control
Icons the alignment of the dashboard objects.
164
1
6
4
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-104 Chapter 6 Creating Dashboards
Dashboard Appearance
The Font Settings section of the dashboard options
enables you to specify how the text appears in the
various dashboard objects using the Font Settings
properties.
165
1
6
5
Dashboard Objects
After adding objects to the dashboard, you can set the
following types of properties for each object:
Display name
166
1
6
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-105
167
1
6
7
168
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-106 Chapter 6 Creating Dashboards
170
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-107
6.14 Poll
When defining an interaction between multiple indicators,
you must select the source indicator before opening the
Set Up Indicator Interactions window.
True
False
172
Interaction Example
Example: You want to enable the dashboard user to
view total cases sold and total sales dollars
for a specific year and month.
Dynamic prompts are used to enable the user to
select a year and a month.
A spark table is used to display the total cases and
total sales.
The client-side filter interaction is used to filter the data
in the spark table based on the year and the month
selected by the user.
174
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-108 Chapter 6 Creating Dashboards
Showing Interactions
Clicking the Show interactions check box in the
Dashboard Properties window enables you to see which
dashboard objects interact with other dashboard objects.
175
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-109
177
Demonstration: Dashboard
Example: You create a dashboard to contain the
indicators created previously.
178
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-110 Chapter 6 Creating Dashboards
Exercise: Dashboard
Example: You create a dashboard to contain the
indicators created previously.
179
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-111
1. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or by selecting
Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS BI Dashboard. The SAS BI Dashboard logon
page appears.
3. Type Eric in the User name field and specify the password provided by your instructor.
4. Click Log On.
5. Select Manage Dashboards to open the Dashboard Designer.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-112 Chapter 6 Creating Dashboards
c. Click OK.
7. Specify the dashboard properties.
a. Type 1125 in the Width field.
b. Type 775 in the Height field.
8. Add the BID Sales KPI indicator.
a. In the Objects pane, select Indicator as the value of the Show field.
Be careful to select the correct indicator. On the classroom machine, there is an indicator
named IND_Targeted Sales by Company.
b. Select IND_BID Targeted Sales by Company in the dashboard to set the object properties.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-113
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-114 Chapter 6 Creating Dashboards
Be careful to select the correct indicator. On the classroom machine, there is an indicator
named IND_Targeted Sales Detail.
b. Select IND_BID Targeted Sales Detail in the dashboard to set the object properties.
c. Set the object size properties.
1) Type 400 in the Width field.
2) Type 250 in the Height field.
d. Set the object zoom (%) properties.
1) Type 150 in the Width field.
2) Verify that 100 is the value in the Height field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-115
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-116 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-117
b. Test the zoom and animation functionality of the IND_BID Targeted Sales by Company
indicator.
1) Click to zoom in.
c. Test the zoom functionality of the IND_BID Targeted Sales Detail indicator.
1) Click to zoom in.
f. Click Close in the bottom right corner to close the preview window.
g. Click Log Off in the upper right corner to log off from SAS BI Dashboard.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-118 Chapter 6 Creating Dashboards
In this demonstration, you modify the previously created dashboard by adding a menu system.
1. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or
by selecting Start All Programs Internet Explorer.
2. From the browser window, select Favorites SAS BI Dashboard. The SAS BI Dashboard logon
page appears.
3. Type Eric in the User name field and specify the password provided by your instructor.
4. Click Log On.
5. Select Manage Dashboards to open the Dashboard Designer.
6. Open the DSH_BID Sales Forecast dashboard.
a. Select File Open Dashboard.
b. Navigate to Orion Star Marketing Department Dashboards.
c. Select DSH_BID Sales Forecast.
d. Click Open.
7. Add five static label objects to the dashboard and specify a link for each.
8. Select the Static Content section of the Objects pane.
9. Drag five static label objects to the open space next to the IND_BID Targeted Sales Detail indicator.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-119
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-120 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-121
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-122 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-123
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-124 Chapter 6 Creating Dashboards
15. Select File Save to save the dashboard under the same name and replace the previous version.
16. Test the links in the Dashboard Viewer.
a. Select to open the current dashboard in the Dashboard Viewer.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-125
When you navigate from one dashboard to another, navigation icons are added to the
upper left corner to enable you to move between dashboards.
g. Click to return to the previous dashboard (or select and the dashboard name).
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-126 Chapter 6 Creating Dashboards
In this demonstration, you add dashboard interactions to the dashboard created in a previous
demonstration
1. Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar or
by selecting Start All Programs Internet Explorer.
a. From the browser window, select Favorites SAS BI Dashboard. The SAS BI Dashboard
logon page appears.
b. Type Eric in the User name field and specify the password provided by your instructor.
c. Click Log On.
2. Select Manage Dashboards to open the Dashboard Designer.
3. Open the DSH_BID Sales Forecast dashboard.
a. Select File Open Dashboard.
b. Navigate to Orion Star Marketing Department Dashboards.
c. Select DSH_BID Sales Forecast.
d. Click Open.
4. Define indicator interactions.
a. Select the IND_BID Sales KPI indicator.
b. Select Edit Set Up Interactions.
c. Click the check box for IND_BID Targeted Sales Detail.
d. Select Brush as the value for the Type field.
e. Select Company as the value for the Source Parameter field.
f. Select Company as the value for the Target Parameter field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.6 Creating Dashboards and Defining Interactions 6-127
g. Click OK.
5. Select File Save to save the dashboard under the same name and replace the previous version.
6. Select View Go to Dashboard Viewer and test the dashboard.
7. Click on a gauge in the IND_BID Sales Forecast indicator and verify that the corresponding row in
the IND_BID Targeted Sales Detail indicator is highlighted.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-128 Chapter 6 Creating Dashboards
Exercises
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-129
6.7 Solutions
Solutions to Exercises
1. Creating a New Information Map to be Used as a Data Source in SAS BI Dashboard
a. Log on to SAS Information Map Studio. Use Ellens credentials.
1) Select Start All Programs SAS SAS Information Map Studio 4.2.
2) Verify that the connection profile is My Server and click OK.
3) Type Ellen in the User ID field and type the password provided by the instructor.
4) Click OK.
5) If necessary, click OK to close the Create an Information Map window.
b. Create data items from several columns of the FT US Customer table in the FT Library.
1) If necessary, click to expand the Resources pane.
4) Double-click the FT US Customer Subset table to add it to the Selected Resources list box of
the Design tab.
5) Click to hide the Resources pane.
7) Click to expand the FT US Customer Subset table and display the physical column
names.
8) Double-click the following columns to create new data items from them:
CostPrice_Per_Unit
Product_Category
Quantity
Total_Retail_Price
9) Change the properties for Costprice Per Unit.
a) Double-click Costprice Per Unit.
b) Type Total Cost in the Data item name field.
c) Click Classification, Aggregations, Formats in the selection list box.
d) Select DOLLAR as the value of the Format name field.
e) Type 14 in the Valid width range field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-130 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-131
3) Rearrange the data items to list Year first and then Product Category and the three measures.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-132 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-133
b. Create a new indicator data object named DAT_FT Sales by Year and Product.
1) Select Manage Dashboards to open the Dashboard Designer.
2) Select File New Indicator Data.
3) Type DAT_FT Sales by Year and Product in the Name field.
4) Click OK.
5) Select Information map as the value for the Data source field.
6) Click Browse next to the Information map field.
7) Navigate to Orion Star Sales Department Dashboards.
8) Select FT Yearly Sales by Product Group.
9) Click OK.
The indicator data object should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-134 Chapter 6 Creating Dashboards
10) Select the Query Results tab to view the columns and rows returned by the query.
c. Save the new indicator data object in the Orion Star Sales Department Dashboards
location and log off from SAS BI Dashboard.
1) Select File Save As.
2) Navigate to Orion Star Sales Department Dashboards.
3) Accept the value for the Name field.
4) Click Save.
5) Select File Close to close the indicator data.
6) Click Log Off in the upper right corner to log off from SAS BI Dashboard.
3. Creating a New Range
a. Log on to SAS BI Dashboard. Use Ellens credentials.
1) Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
2) From the browser window, select Favorites SAS BI Dashboard.
The SAS BI Dashboard logon page appears.
3) Type Ellen in the User name field and specify the password provided by your instructor.
4) Click Log On.
b. Create a new range named RNG_FT Total Sales by Product.
1) Select Manage Dashboards to open the Dashboard Designer.
2) Select File New Range.
3) Type RNG_FT Total Sales by Product in the Name field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-135
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-136 Chapter 6 Creating Dashboards
c. Save the new range in the Orion Star Sales Department Dashboards location and log off
from SAS BI Dashboard.
1) Select File Save As.
2) Navigate to Orion Star Sales Department Dashboards.
3) Accept the value for the Name field.
4) Click Save.
5) Select File Close to close the indicator data.
6) Click Log Off in the upper right corner to log off from SAS BI Dashboard.
4. Creating Two New Indicators
a. Log on to SAS BI Dashboard. Use Ellens credentials.
1) Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
2) From the browser window, select Favorites SAS BI Dashboard.
The SAS BI Dashboard logon page appears.
3) Type Ellen in the User name field and specify the password provided by your instructor.
4) Click Log On.
b. Create a new indicator named IND_FT Quantity and Sales by Category.
1) Select Manage Dashboards to open the Dashboard Designer.
2) Select File New Indicator.
3) Type IND_FT Quantity and Sales by Category in the Name field.
4) Select Spark Table as the value for the Display type field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-137
6) Click OK.
7) Set the indicator size.
a) Type 500 in the Width field.
b) Type 110 in the Height field.
8) Specify the Role Mapping values in order to display the indicator.
a) Select Spark group by as the value for the Product Category field.
b) Select Spark X axis as the value for the Year field.
9) Specify the column layout.
a) Click the arrow in the Total Cost column and select Delete column.
b) Click the Total Sales column and drag it to the end of the table.
c) Click the arrow in the Year column and select Delete column.
10) Specify the Total Quantity column properties.
a) Click the Total Quantity column to select it.
b) Type Total Quantity by Year in the Column title field.
c) Select Spark line as the value for the Aggregate function field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-138 Chapter 6 Creating Dashboards
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-139
10) Save the new indictor in the Orion Star Sales Department Dashboards location and
log off from SAS BI Dashboard.
a) Select File Save As.
b) Navigate to Orion Star Sales Department Dashboards.
c) Accept the value for the Name field.
d) Click Save.
e) Select File Close to close the indicator data.
d. Click Log Off in the upper right corner to log off from SAS BI Dashboard.
5. Creating a New Dashboard
a. Log on to SAS BI Dashboard. Use Ellens credentials.
1) Open Internet Explorer by selecting the Internet Explorer icon on the Windows taskbar
or by selecting Start All Programs Internet Explorer.
2) From the browser window, select Favorites SAS BI Dashboard.
The SAS BI Dashboard logon page appears.
3) Type Ellen in the User name field and specify the password provided by your instructor.
4) Click Log On.
b. Create a new dashboard named DSH_FT Sales by Year and Product.
1) Select Manage Dashboards to open the Dashboard Designer.
2) Select File New Range.
3) Type DSH_FT Sales by Year and Product in the Name field.
4) Click OK.
5) Specify the Dashboard properties.
a) Type 550 in the Width field.
b) Type 425 in the Height field.
c. Add the IND_FT Quantity and Sales by Category indicator.
1) In the Objects pane, select Indicators as the value for the Show field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-140 Chapter 6 Creating Dashboards
e. Save the new dashboard in the Orion Star Sales Department Dashboards location.
1) Select File Save As.
2) Navigate to Orion Star Sales Department Dashboards.
3) Accept the value for the Name field.
4) Click Save.
f. Select View Go to Dashboard Viewer to test the dashboard.
g. Click Log Off in the upper right corner to log off from SAS BI Dashboard.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-141
19
23
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-142 Chapter 6 Creating Dashboards
31
50
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-143
70
92
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-144 Chapter 6 Creating Dashboards
110
123
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6.7 Solutions 6-145
162
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
6-146 Chapter 6 Creating Dashboards
173
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 7 Building a Business User
Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-2 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-3
Case Study
You were assigned the task of building the dashboard for
the Sales Department manager of Italy and Spain.
In addition to the dashboard, you need to build the data
sources for the dashboard. The data sources include a
new SAS table, an OLAP cube, two information maps, a
stored process, and several SAS Web Report Studio
reports.
2
2
3
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-4 Chapter 7 Building a Business User Reporting Application
4
4
5
5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-5
6
6
7
7 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-6 Chapter 7 Building a Business User Reporting Application
8
8 continued...
9
9
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-7
SAS BI Dashboard
Use SAS BI Dashboard to create a dashboard with three
indicators.
10
1
0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-8 Chapter 7 Building a Business User Reporting Application
Exercises
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-9
f. Add an SQL Join transformation to the job and connect the five source tables to the
transformation.
g. Add the Table Loader transformation to the job and connect it to the SQL Join transformation.
h. Create a new target table named FT Orders Italy and Spain and store it in Orion Star
Sales Department Data.
Select SAS as the DBMS.
Store the table in the FT Case Study Library.
Add all of the columns from the following tables:
FT_CUSTOMERS
FT_GEOGRAPHY
FT_ORDERS
FT_PRODUCTS
FT_TIME
i. Add the target table to the job and connect it to the Table Loader transformation.
j. Modify the join criteria in the SQL Transformation.
Hint: Create the final part of the join criteria using the IN (,) operator and this operand,
("IT","ES"), to subset the data to only include orders for Italy and Spain.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-10 Chapter 7 Building a Business User Reporting Application
Property Value
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-11
d. Select the FT Orders Italy and Spain table from the FT Case Study Library as both the input
table and drill-through table.
e. Define the Time dimension.
Name Time
Type TIME
Levels/Hierarchies Add the YMD and YQM supplied time hierarchies using
Order_Date as the input column
Name Customer
Type STANDARD
Levels Customer_Age_Group
Customer_Type
Customer_Gender
Levels Customer_Age_Group
Customer_Type
Customer_Gender
Levels Customer_Type
Customer_Age_Group
Customer_Gender
Default AgeGroup_Type_Gender
Hierarchy
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-12 Chapter 7 Building a Business User Reporting Application
Name Product
Type STANDARD
Levels Product_Line
Product_Category
Product_Group
Levels Product_Line
Product_Category
Product_Group
i. Add an aggregation.
Name C1T1
Members Customer_Age_Group
Year
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-13
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-14 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-15
d. Create a new information map from the FT Order Cube Italy and Spain.
Field Value
Name Country
Method for populating prompt Static list, get all values from the Country column of the
table in the project.
Add All possible values and set it as the default.
Create a basic filter in the Query Builder using the Customer_Country variable and the new
prompt.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-16 Chapter 7 Building a Business User Reporting Application
Role Columns
Stack Country
Hint: After assigning the columns to the roles, right-click to specify the following properties:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-17
Bars Custom Select a light blue for the first color in the first row.
Colors
Select a light yellow for the second color in the first row.
Attribute Value
f. Save the project as FT Stored Process for Dashboard in S:\Workshop\sbaft43 and close
SAS Enterprise Guide.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-18 Chapter 7 Building a Business User Reporting Application
Use the FT Order Cube Italy and Spain OLAP cube from Orion Star Sales
Department Data as the data source.
Select the following data items from the data source: Age Group, Type, Gender Hierarchy,
Product Hierarchy, Ymd, Sum Of Quantity, Sum Of Total Retail Price
Save the report as FT Sales Analysis in Orion Star Sales Department Reports.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-19
Font size 14
Justification Center
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-20 Chapter 7 Building a Business User Reporting Application
Width 33
Content Text
Font size 8
Text REPORT:
Width 34
Content Text
Font size 8
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-21
Width 33
Content Text
Font size 8
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-22 Chapter 7 Building a Business User Reporting Application
Create this report by inserting a new report section named Customer Analysis and copying the
header and footer from the first section but specifying new data.
Update the report header text to Customer Analysis - Italy and Spain.
Use the FT Orders Map Italy and Spain information map from Orion Star
Sales Department Information Maps as the data source.
Select the following data items from the data source: Customer Country, Customer Age
Group, Customer Gender, Quantity Ordered, Cost Price Per Unit, and Total Retail Price
For This Product.
Rename Quantity Ordered to Total Quantity.
Rename Cost Price Per Unit to Total Cost.
Rename Total Retail Price For This Product to Total Retail Price.
Add the Order Date Selector filter from the information map as a section filter.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-23
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-24 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-25
Create this report by inserting a new report section named Product Analysis and copying the
header and footer from the first section and the data from the Customer Analysis section.
Update the report header text to Product Analysis - Italy and Spain.
Remove the Customer Age Group and Customer Gender data items and add Product Group
and Supplier Country.
Add the Year Month Selector filter from the information map as a section filter.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-26 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-27
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-28 Chapter 7 Building a Business User Reporting Application
Save the new indicator data item in the Orion Star Sales Department Dashboards
location.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-29
Product_ID COUNT
Product_Group
Supplier_Country
Filter the data using the following criteria:
(product_group contains "Tracker" or product_group contains
"Eclipse") and supplier_country not in("US","GB")
Verify that the values on the Query Results tab match the following:
Save the new indicator data item in the Orion Star Sales Department Dashboards
location.
d. Create a new range named RNG_FT Sales by Company.
Create ranges for the following intervals and set the values for the interval attributes:.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-30 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-31
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-32 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.1 Building a Business User Reporting Application 7-33
h. Create a new dashboard named DSH_FT Sales Analysis Italy and Spain.
Dashboard properties
Width 850
Height 550
Add the IND_FT Order Analysis by Product Group indicator in the top left corner.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-34 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-35
10) Double-click S:\Workshop\sbaft43 in the Available items list box to move it to the Selected
items list box.
11) Click Next.
12) Click Finish.
d. Register tables in the new library.
1) In the Folders tab, expand the Orion Star, Sales Department, and Data folders.
2) Right-click FT Case Study Library and select Register Tables.
3) Verify the library information and click Next.
4) Select the following tables:
FT_CUSTOMERS
FT_GEOGRAPHY
FT_ORDERS
FT_PRODUCTS
FT_TIME
5) Click Next.
6) Click Finish.
e. Add the five new source tables to the job.
1) Using the Folders tab, navigate to Orion Star Sales Department Data.
2) Drag each of the following tables from the Folders tab to the new job:
FT_CUSTOMERS
FT_GEOGRAPHY
FT_ORDERS
FT_PRODUCTS
FT_TIME
f. Add an SQL Join transformation to the job and connect the five source tables to the
transformation.
1) Click the Transformations tab.
2) Expand the Data group.
3) Drag the SQL Join transformation to the job.
4) Right-click the SQL Join transformation and select Ports Add Input Port to add three
new import ports.
5) Connect the FT_CUSTOMERS table to the first input port of the SQL Join transformation.
6) Connect the FT_GEOGRAPHY table to the second input port of the SQL Join
transformation.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-36 Chapter 7 Building a Business User Reporting Application
7) Connect the FT_ORDERS table to the third input port of the SQL Join transformation.
8) Connect the FT_PRODUCTS table to the fourth input port of the SQL Join transformation.
9) Connect the FT_TIME table to the fifth input port of the SQL Join transformation.
g. Add the Table Loader transformation to the job and connect it to the SQL Join transformation.
1) Click the Transformations tab.
2) Expand the Access group.
3) Drag the Table Loader transformation to the job.
4) Connect the SQL Join transformation to the Table Loader transformation.
h. Create a new target table named FT Orders Italy and Spain and store it in Orion Star
Sales Department Data.
1) Select File New Table.
2) Type FT Orders Italy and Spain in the Name field.
3) If necessary, click Browse next to the Location field.
a) Navigate to SAS Folders Orion Star Sales Department Data.
b) Click OK.
4) Click Next.
5) Verify that SAS is selected as the value for the DBMS field.
6) Select FT Case Study Library as the value for the Library field.
7) Click Next.
8) Expand Orion Star Sales Department Data.
9) Select the FT_CUSTOMERS table.
10) Hold down the SHIFT key and select the FT_TIME table.
11) Click to add all of the columns from all five tables to the Selected list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-37
3) Click New.
a) Click in the first Operand column of the new row and select Choose column(s).
b) Expand the FT_ORDERS table.
c) Select Customer_ID.
d) Click OK.
e) Click in the second Operand column of the new row and select Choose column(s).
f) Expand the FT_CUSTOMERS table.
g) Select Customer_ID.
h) Click OK.
4) Click New.
a) Click in the first Operand column of the new row and select Choose column(s).
b) Expand the FT_ORDERS table.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-38 Chapter 7 Building a Business User Reporting Application
c) Select Order_Date.
d) Click OK.
e) Click in the second Operand column of the new row and select Choose column(s).
f) Expand the FT_TIME table.
g) Select Date_ID.
h) Click OK.
5) Click New.
a) Click in the first Operand column of the new row and select Choose column(s).
b) Expand the FT_GEOGRAPHY table.
c) Select Country.
d) Click OK.
e) Click in the Operator column of the new row and select IN (,).
f) Click in the second Operand column of the new row and type ("IT","ES").
The WHERE clause should resemble the following:
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-39
2) Use the scroll bars to view the columns and rows of data to ensure that the table was populated
correctly. There should be 28,096 rows of data.
3) Close the View Data window.
m. Save the job and close the job window.
1) Select File Save to save the job.
2) Select File Close to close the job window.
2. Creating a New Cube
a. Using SAS Data Integration Studio, create a new cube named FT Order Cube Italy and Spain
and store it in Orion Star Sales Department Data.
b. Select File New Cube to begin building a new OLAP cube.
c. Specify the general properties.
1) Type FT Order Cube Italy and Spain in the Name field.
2) If necessary, click Select next to the Location field.
a) Select SAS Folders Orion Star Sales Department Data.
b) Click OK to close the Select a Location window.
3) Click Browse next to the Physical cube path field.
a) Select S:\ Workshop sbaft43.
b) Click OK to close the Browse window.
4) Verify that Detail table is selected as the value for the Input Type field.
5) Click Next.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-40 Chapter 7 Building a Business User Reporting Application
d. Select the FT Orders Italy and Spain table from the FT Case Study Library as both the input
table and drill-through table.
1) Click to expand FT Case Study Library.
2) Double-click FT Orders Italy and Spain to move the table to the Selected table list box.
3) Click Next.
4) Click to expand FT Case Study Library.
5) Double-click FT Orders Italy and Spain to move the table to the Selected table list box.
6) Click Next.
e. Define the Time dimension.
1) Click Add.
2) Type Time in the Name field.
3) Type Time Dimension in the Caption field.
4) Select TIME as the value for the Type field.
5) Click Next.
6) Click next to the Add button and select Add supplied time hierarchies.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-41
1) Click Add.
2) Type Customer in the Name field.
3) Type Customer Dimension in the Caption field.
4) Verify that STANDARD is selected as the value for the Type field.
5) Click Next.
6) Click Add.
7) Double-click the following columns to add them to the Input columns for new levels list:
Customer_Age_Group
Customer_Type
Customer_Gender
8) Click OK.
9) Click Next.
10) Click Add to add a hierarchy for the new Customer dimension.
a) Type AgeGroup_Type_Gender in the Name field.
b) Type Age Group, Type, Gender Hierarchy in the Caption field.
c) Double-click Customer_Age_Group to move it to the Selected list box.
d) Double-click Customer_Type to move it to the Selected list box.
e) Double-click Customer_Gender to move it to the Selected list box.
f) Click OK.
11) Click Add to add a hierarchy for the new Customer dimension.
a) Type Type_AgeGroup_Gender in the Name field.
b) Type Type, Age Group, Gender Hierarchy in the Caption field.
c) Double-click Customer_Type to move it to the Selected list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-42 Chapter 7 Building a Business User Reporting Application
1) Click Add.
2) Type Product in the Name field.
3) Type Product Dimension in the Caption field.
4) Verify that STANDARD is selected as the value for the Type field.
5) Click Next.
6) Click Add.
7) Double-click the following columns to add them to the Input columns for the new levels list:
Product_Line
Product_Category
Product_Group
8) Click OK.
9) Click Next.
10) Click Add to add a hierarchy for the new Product dimension.
a) Type Product in the Name field.
b) Type Product Hierarchy in the Caption field.
c) Double-click Product_Line to move it to the Selected list box.
d) Double-click Product_Category to move it to the Selected list box.
e) Double-click Product_Group to move it to the Selected list box.
f) Click OK.
11) Click Finish.
12) Click Next.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-43
i. Add an aggregation.
1) Click Add.
2) Type C1T1 in the Name field.
3) Double-click Customer_Age_Group to move it to the Selected column list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-44 Chapter 7 Building a Business User Reporting Application
4) Double-click the FT Orders Italy and Spain table to add it to the Selected Resources list box
of the Design tab.
5) Click to hide the Resources pane.
7) Click to expand the FT Orders Italy and Spain table and display the physical column
names.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-45
c. Double-click the following columns to create new data items from them:
CostPrice_Per_Unit
Customer_Age_Group
Customer_Contry
Customer_Gender
Month_Name
Order_Date
Product_Group
Quantity
Supplier_Country
Total_Retail_Price
Year_ID
1) Change the properties for Costprice Per Unit and Total Retail Price For This Product.
a) Hold down the CTRL key and select Cost Price Per Unit and Total Retail Price For
This Product.
b) Right-click on one of the selected values and select Properties.
c) Click Classification, Aggregations, Formats in the selection list.
d) Verify that DOLLAR is selected as the value for the Format name field.
e) Type 14 in the Valid width range field.
f) Verify that 0 is selected as the value for the Valid decimal range field.
g) Click OK to close the Data Item Properties window.
2) Change the properties for Quantity Ordered.
a) Right-click Quantity Ordered and select Properties.
b) Click Classification, Aggregations, Formats in the selection list.
c) Select Numeric as the value for the Format type field.
d) Select COMMA as the value for the Format name field.
e) Type 12 in the Valid width range field.
f) Verify that 0 is selected as the value for the Valid decimal range field.
g) Click OK to close the Data Item Properties window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-46 Chapter 7 Building a Business User Reporting Application
e) Click to move all of the values to the Selected values list box.
l) Click to move all of the values to the Selected values list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-47
e) Select Use single prompt for both 'From' and 'To' values as the value for the Value(s)
field.
f) Click New.
g) Type OrderDatePrompt in the Name field.
h) Type Select an order date range in the Displayed text field.
i) Click OK to close the New Prompt window.
j) Click OK to close the New Filter window.
6) Create a new prompted filter named Year Month Selector.
a) Select Insert New Filter.
(1) Type Year Month Selector in the Filter name field.
(2) Select Year as the value for the Data item field.
(3) Select Prompt user for value(s) as the value for the Value(s) field.
b) Click New.
(1) Type YearPrompt in the Name field.
(2) Type Select a year in the Displayed text field.
c) Click the Prompt Type and Values tab.
(1) Select User selects values from a dynamic list as the value for the Method for
populating prompt field.
(2) Click OK to close the New Prompt window.
d) Click Combinations.
e) Click Add.
(1) Select Month Name as the value for the Data item field.
(2) Select Prompt user for value(s) as the value for the Value(s) field.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-48 Chapter 7 Building a Business User Reporting Application
f) Click New.
(1) Type MonthPrompt in the Name field.
(2) Type Select a month in the Displayed text field.
g) Click the Prompt Type and Values tab.
(1) Select User selects values from a static list as the value for the Method for
populating prompt field.
(2) Select Multiple values as the value of the Number of values field.
(3) Click Get Values.
(4) Click to copy all of the values to the Selected values list box.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-49
d. Create a new information map from the FT Order Cube Italy and Spain.
1) Select File New.
2) If necessary, click to expand the Resources pane.
7) Click to create data items from all of the measures and hierarchies in the cube.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-50 Chapter 7 Building a Business User Reporting Application
b. Add the FT Orders Italy and Spain table from Orion Star Sales Department Data to the
project.
1) Select File Open Data.
2) Navigate to SAS Folders Orion Star Sales Department Data.
3) Double-click FT Orders Italy and Spain.
4) Click to close the results and display the Process Flow window.
c. Use the Query Builder to select a subset of the rows from FT Orders Italy and Spain.
1) Right-click the FT_Orders_Italy_and_Spain table in the Process Flow window and select
Query Builder.
2) Drag the t1 table to the Select Data tab to select all columns.
3) Click Prompt Manager to build a new prompt to use in the filter. The Prompt Manager
window appears.
a) Click Add.
b) Type Country in the Name field.
c) Type Select a Country in the Displayed text field.
d) Click the Requires a non-blank value check box.
e) Click the Prompt Type and Values tab.
f) Select User selects values from a static list as the value for the Method for populating
prompt field.
g) Click Get Values. The Get Values window appears.
h) Click Browse to select your data source.
i) Click Project from the selection pane on the left.
j) Select the table.
k) Click Open.
l) Select Country as the value in the Column field.
m) Click Get values.
n) Click to copy all of the values to the Selected values list. After all the selections are
copied, the Get Values Window should resemble the following:
o) Click OK to close the Get Values window.
p) Click the All possible values check box to include that special value.
q) Click the radio button to set the default value to (all possible values).
r) Click OK to close the Add New Prompt window.
s) Click Close to close the Prompt Manager window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-51
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-52 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-53
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-54 Chapter 7 Building a Business User Reporting Application
(4) Click the font color selector and choose a blue color of your choice.
d) Type Sales Analysis - Italy and Spain as the value for the title text.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-55
4) Add a crosstab report object and specify the data assignment and properties.
a) Click (crosstab) and drag it to the first column of the first row.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-56 Chapter 7 Building a Business User Reporting Application
6) Add a pie chart report object and specify the data assignment and properties.
a) Click (pie chart) and drag it to the second column of the second row.
c) Click in the single column in the first row, drag down and to the right to select all three
cells.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-57
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-58 Chapter 7 Building a Business User Reporting Application
b) Click the corner of each chart to resize them to fit under the expanded crosstab table.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-59
(2) Click .
(2) Click .
(2) Click .
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-60 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-61
7) Add a crosstab report object and specify the data assignment and properties.
a) Click (crosstab) and drag it to the first column of the second row.
b) Right-click the crosstab object and select Assign Data.
c) Verify that Customer Country, Total Quantity, Total Cost, and Total Retail Price are
assigned to the Columns role in that order.
d) Drag Customer Gender to be the first item of the Columns role.
e) Click OK to close the Assign Data window.
f) Right-click the crosstab object and select Conditional Highlighting.
g) Click New.
(1) Select Total Retail Price as the value for the Measure field.
(2) Select Greater than as the value for the Condition field.
(3) Type 200,000 in the Value field.
(4) Click the Color and Font tab.
(5) Click the second color selector and select a light green background color.
(6) Click OK to create the new rule.
h) Click New.
(1) Select Total Retail Price as the value for the Measure field.
(2) Select Is between as the value for the Condition field.
(3) Type 100,000 in the Min value field.
(4) Type 200,000 in the Max value field.
(5) Click the Color and Font tab.
(6) Click the second color selector and select a light yellow background color.
(7) Click OK to create the new rule.
i) Click New.
(1) Select Total Retail Price as the value for the Measure field.
(2) Select Less than as the value for the Condition field.
(3) Type 100,000 in the Value field.
(4) Click the Color and Font tab.
(5) Click the second color selector and select a light red background color.
(6) Click OK to create the new rule.
(7) Click OK to close the Conditional Highlighting window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-62 Chapter 7 Building a Business User Reporting Application
c) Click in the first column in the first row. Drag down and to the right to select all three
cells.
d) Click to center-align the contents of the three report body cells.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-63
e) Move the cursor to the bottom right corner of the tile chart. Resize it to be the same width
as the crosstab and half of the height of the bar-line chart.
After resizing the tile chart, the country tiles are side to side instead of top to
bottom.
f) Select File Save to save the report.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-64 Chapter 7 Building a Business User Reporting Application
f) Click Copy footer from and accept the default section name.
g) Click OK.
2) Update the report header properties.
a) Click Header and select Edit.
b) Type Product Analysis - Italy and Spain as the value for the title text.
c) Click OK to close the Edit Header window.
3) Update the selected data items.
a) Select Data Select Data.
b) Double-click Customer Age Group in the Selected data items list box to remove it.
c) Double-click Customer Gender in the Selected data items list box to remove it.
d) Double-click Product Group in the Available data items list box to add it to the Selected
items list box.
e) Double-click Supplier Country in the Available data items list box to add it to the
Selected items list box.
f) Click OK to close the Select Data window.
4) Add a section filter.
a) Select Data Section Filters.
b) Clear the Order Data Selector check box.
c) Click the Year Month Selector check box.
d) Click OK to close the Select Filters window.
5) Add a line chart report object and specify the data assignment and properties.
a) Click (line chart) and drag it to the first column of the first row.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-65
6) Add a crosstab report object and specify the data assignment and properties.
a) Click (crosstab) and drag it to the first column of the second row.
c) Click in the single column in the first row. Drag down and to the right to select all three
cells.
d) Click to center-align the contents of all three report body cells.
9) Select File Save to save the report.
10) Click View to view the second section of the report.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-66 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-67
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-68 Chapter 7 Building a Business User Reporting Application
7) Select the Query Results tab to view the columns and rows returned by the query.
8) Save the new indicator data item in the Orion Star Sales Department Dashboards
location.
a) Select File Save As.
b) Navigate to Orion Star Sales Department Dashboards.
c) Accept the value for the Name field.
d) Click Save.
e) Select File Close.
c. Create a new indicator data item named DAT_FT Shoe Suppliers.
1) Select File New Indicator Data.
2) Type DAT_FT Shoe Suppliers in the Name field.
3) Click OK.
4) Select Table as the value for the Data source field.
5) Click next to the FT Case Study Library to expand it.
6) Select the FT_PRODUCTS table.
The available columns list is populated with the columns from the selected table.
7) Select COUNT as the value for the Summary field for the Product_ID column.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-69
15) Select the Query Results tab to view the columns and rows returned by the query.
16) Save the new indicator data item in the Orion Star Sales Department Dashboards
location.
a) Select File Save As.
b) Navigate to Orion Star Sales Department Dashboards.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-70 Chapter 7 Building a Business User Reporting Application
10) Accept the default attributes for the < 5,000 interval.
11) Change the attributes for the >= 5,000 and < 10,000 interval.
a) Select On Target as the value for the Code Interval field.
b) Verify that the color changed to yellow.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-71
13) Save the new range in the Orion Star Sales Department Dashboards location.
a) Select File Save As.
b) Navigate to Orion Star Sales Department Dashboards.
c) Accept the value for the Name field.
d) Click Save.
e) Select File Close to close the range.
e. Create a new indicator named IND_FT Sales Target Analysis.
1) Select File New Indicator.
2) Type IND_FT Sales Target Analysis in the Name field.
3) Select Bar Chart With Bullet as the value for the Display type field.
4) Click Browse next to the Indicator data field.
a) If necessary, navigate to Orion Star Sales Department Dashboards.
b) Select DAT_FT Sales Analysis for Italy and Spain.
c) Click OK.
5) Click Browse next to the Range field.
a) If necessary, navigate to Orion Star Sales Department Dashboards.
b) Select RNG_FT Sales by Company.
c) Click OK.
6) Click OK to close the Create an Indicator window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-72 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-73
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-74 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-75
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-76 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7.2 Solutions to Exercises 7-77
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
7-78 Chapter 7 Building a Business User Reporting Application
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 8 Overview of SAS Visual
BI
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-2 Chapter 8 Overview of SAS Visual BI
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.1 Introduction to SAS Visual BI 8-3
Objectives
Define some of the main features of SAS Visual BI
(JMP).
Describe the basics of the JMP interface.
Describe the basics of a JMP data table.
3
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-4 Chapter 8 Overview of SAS Visual BI
8.01 Poll
SAS Visual BI is how JMP is referenced when it
is part of the platform for SAS Business Analytics.
Yes
No
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.1 Introduction to SAS Visual BI 8-5
JMP Interface
When JMP is initialized, the JMP Home and Tip of the
Day windows appear.
9
9
10
1
0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-6 Chapter 8 Overview of SAS Visual BI
JMP Preferences
JMP preferences enable you to specify general and
specific settings and save the settings so that they will
be associated
with your
JMP session.
11
1
1
Data grid
Data table
panels
12
1
2
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.1 Introduction to SAS Visual BI 8-7
Platforms
Each command launches a platform.
A platform is an interactive window that can be used
to analyze data, work with points on plots, and save
results.
The platform persists until it is closed.
13
1
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-8 Chapter 8 Overview of SAS Visual BI
Objectives
Define SAS Integration with JMP.
Describe data visualization using JMP.
15
1
5
16
1
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-9
8.02 Poll
If you want to access platform data, do you have to log on
to the metadata server?
Yes
No
18
20
2
0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-10 Chapter 8 Overview of SAS Visual BI
21
2
1
22
2
2
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-11
Import Options
The Import Options area of the Browse SAS Data window
enables you to select the columns to import and specify a
WHERE clause to control which rows are imported.
25
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-12 Chapter 8 Overview of SAS Visual BI
Data Visualization
After you import data into JMP, you can use the power
of JMP to visualize your data. One way to do this is
to use a bubble plot.
A bubble plot is a
scatter plot that
draws its points as
circles (bubbles).
Bubble plots can
produce dramatic
visualizations and
make interesting
discoveries easy.
27
2
7
2
8
28 continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-13
2
9
29 continued...
30
3
0
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-14 Chapter 8 Overview of SAS Visual BI
Graph Builder
The Graph Builder platform enables the interactive display
of both continuous and categorical data columns.
31
3
1
32
3
2
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-15
33
3
3
Parameter Specification
If the stored process has parameters, you are prompted
for your selections. If there are no parameters, you are
asked if you want to run the selected stored process.
34
3
4
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-16 Chapter 8 Overview of SAS Visual BI
In this demonstration, you access data from the SAS server and use it to perform two different graphical
analyses.
1. Open JMP by selecting Start All Programs JMP 9 JMP 9. The JMP desktop appears
and, by default, opens the JMP Home Window, as well as the Tip of the Day window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-17
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-18 Chapter 8 Overview of SAS Visual BI
4. Verify that 9.2 is selected as the value in the SAS Server Version field.
5. Verify that the I want to connect to a SAS Metadata Server check box is selected.
6. Click the Use SAS column labels for column names during data import check box
in the SAS Data Import section.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-19
1. In the JMP Starter window, select SAS from the Click Category panel.
2. Click Browse SAS Folders.
JMP connects to the SAS Metadata Server and opens the Browse SAS Folders window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-20 Chapter 8 Overview of SAS Visual BI
3. Double-click the Orion Star folder (or click to expand the folder).
After the data is downloaded from the server, it is displayed in a data table.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-21
Suppose that you are interested in observing how Total Sales and Total Cases changed over time for the
product categories and product subcategories. Create a bubble plot from the data set to explore these
variables.
The steps below assume that the SALES_ANALYSIS data source is still open in a JMP data
table.
1. From the data table menus, select Graph Bubble Plot.
The launch dialog box for the Bubble Plot platform appears.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-22 Chapter 8 Overview of SAS Visual BI
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-23
The size of the plot can be expanded if needed. To do so, move the cursor over the lower right corner
of the plot. The cursor changes to a double-arrow.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-24 Chapter 8 Overview of SAS Visual BI
Release the cursor to show the new plot size; the window resizes to accommodate the new plot size.
10. The initial view of the plot might be difficult to read. Drag the Circle Size slider to the right
to increase the circle size.
11. The current view is for 2001 sales. Click Step to see 2002.
12. Click Go to see the plot displayed over time.
13. When you are finished viewing, click Stop.
The bubble plot can be saved outside of JMP as an SWF file, which can be played using
Adobe Flash.
14. Click the red arrow next to the title of the bubble plot and select Save for Adobe Flash platform (.SWF).
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-25
15. Save the file on the Windows desktop. Use the default name.
16. Click Save.
Because the Open HTML companion after save option is selected, a browser window appears
and displays the companion HTML file.
18. Drag the Size slider to the right to enlarge the bubbles.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-26 Chapter 8 Overview of SAS Visual BI
19. Clear several of the Product Subcategory check boxes to hide the corresponding bubbles.
20. Click on a single bubble to select it. By default, trailing lines are drawn after the selected bubble.
21. Click in the upper right corner next to the bubble plot name to view the available options.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-27
22. Click the button in the upper right corner to open a Web page that provides information about
how the use this bubble plot.
23. Select File Exit to close the new browser window with the instructions.
24. Select File Exit to close the browser window with the animation.
25. In JMP, click the X to close the bubble plot.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-28 Chapter 8 Overview of SAS Visual BI
The Graph Builder enables you to create graphs interactively. The Graph Builder provides an easy way to
immediately see how your selections are used to graph the information from the data source.
The steps below assume that the SALES_ANALYSIS data source is still open in a JMP data
table.
1. From the data table menus, select Graph Graph Builder.
The Graph Builder platform appears.
You are interested in seeing the trend of total sales dollars by month for all of the years of data in the
data source.
2. Drag Month from the Selected Columns list box to the X graph zone (bottom center).
3. Drag Total Sales from the Selected Columns list box to the Y graph zone (left side).
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.2 Exploring the SAS Integration with JMP 8-29
4. You can create a separate panel for each year by dragging Year from the Selected Columns list box
to the Wrap graph zone (top right).
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-30 Chapter 8 Overview of SAS Visual BI
5. Although this does show the total sales trend by month for each year, it might be preferable to view
all the information on one graph.
a. Click Undo to remove the assignment of year.
You can also drag Year from the heading above the panels back to the Selected Columns
list box.
b. Drag Year from the Selected Columns list box to the Overlay graph zone (upper right corner).
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8.3 Solutions to Student Activities (Polls/Quizzes) 8-31
19
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
8-32 Chapter 8 Overview of SAS Visual BI
26
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 9 Examining the
Environment Metadata
9.1 Reviewing the Platform for SAS Business Analytics .................................................. 9-3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-2 Chapter 9 Examining the Environment Metadata
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.1 Reviewing the Platform for SAS Business Analytics 9-3
Objectives
Review the architecture and applications that make
up the platform for SAS Business Analytics.
Review the definition of metadata users, groups,
and roles.
Review the structure and use of the SAS Folders tree.
Define the purpose and types of connection profiles.
3
3
middle tier
server tier
data tier
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-4 Chapter 9 Examining the Environment Metadata
SAS Data Integration Studio SAS Enterprise Guide SAS Information Delivery Portal
SAS OLAP Cube Studio SAS Visual BI (JMP) SAS Web Report Studio
SAS Information Map Studio SAS Forecast Studio SAS Add-In for Microsoft Office
6
6
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.1 Reviewing the Platform for SAS Business Analytics 9-5
7
7
8
8
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-6 Chapter 9 Examining the Environment Metadata
9
9
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.1 Reviewing the Platform for SAS Business Analytics 9-7
Connection Connection
SAS Information Map
Profile Profile
Studio
SAS Add-In for
Microsoft Office SAS Metadata
Server
SAS OLAP Cube Studio
Connection
Profile
SAS Enterprise
Guide SAS Management
Console
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-8 Chapter 9 Examining the Environment Metadata
13
1
3
14
1
4
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.1 Reviewing the Platform for SAS Business Analytics 9-9
15
1
5
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-10 Chapter 9 Examining the Environment Metadata
Objectives
Review the classroom environment.
Review the Orion Star metadata users and groups.
Review the Orion Star metadata folder structure.
Review the concept of metadata roles and the
metadata roles created for Orion Star.
18
1
8
Groups
19
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.2 Reviewing the Couse Environment and Metadata 9-11
Users
Groups
Ellen
Henri
Sales
Marketing
20
2
0
21
2
1
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-12 Chapter 9 Examining the Environment Metadata
22
2
2
ReadMetadata
WriteMetadata
WriteMemberMetadata
Read
Sales Department Folder
ReadMetadata is denied.
Security permissions are
inherited down the folder tree.
23
2
3
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.2 Reviewing the Couse Environment and Metadata 9-13
24
2
4
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-14 Chapter 9 Examining the Environment Metadata
This demonstration shows you the metadata that was defined on the classroom image as well the metadata
that was created when you completed the demonstrations and exercises in this course.
1. Select Start All Programs SAS SAS Management Console 9.2.
2. Accept the default connection profile and click OK.
3. Type Ahmed in the User ID field and use the password provided by the instructor.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.2 Reviewing the Couse Environment and Metadata 9-15
SAS Management Console appears and displays all of the plug-ins and folders.
When you logged on to SAS Management Console earlier, you used Erics credentials. Because
of the Orion Star: Management Console Data and Folders role, Eric has limited access
to the capabilities of SAS Management Console. Ahmed is an unrestricted user and therefore
has complete access to all of the capabilities of SAS Management Console.
5. If necessary, click the Plug-ins tab.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-16 Chapter 9 Examining the Environment Metadata
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.2 Reviewing the Couse Environment and Metadata 9-17
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-18 Chapter 9 Examining the Environment Metadata
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.2 Reviewing the Couse Environment and Metadata 9-19
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-20 Chapter 9 Examining the Environment Metadata
SAS Management Console provides access to several folders that are not available
in the other SAS platform applications.
26. Double-click Orion Star.
27. Double-click Marketing Department.
28. Double-click Stored Processes.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.2 Reviewing the Couse Environment and Metadata 9-21
32. Click Cancel to close the Manage Source Code Repositories window.
33. Click Cancel to close the stored process Properties window.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-22 Chapter 9 Examining the Environment Metadata
The permissions granted to the Marketing group enable the members in that group to view and access
the items in the folder as well as create new items and subfolders.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9.2 Reviewing the Couse Environment and Metadata 9-23
Images can be loaded by importing a SAS Package or by adding content from external files
or directories.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
9-24 Chapter 9 Examining the Environment Metadata
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Chapter 10 Learning More
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10-2 Chapter 10 Learning More
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10.1 SAS Resources 10-3
Objectives
Identify areas of support that SAS offers.
List additional resources.
3
3
Education
Comprehensive training to deliver greater value
to your organization.
more than 200 course offerings
world-class instructors
4
4 support.sas.com/training
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10-4 Chapter 10 Learning More
SAS Publishing
SAS offers a complete selection of publications to help
customers use SAS software to its fullest potential.
multiple delivery methods: e-books,
CD-ROM, and hard-copy books
wide spectrum of topics
partnerships with outside authors,
other publishers, and distributors
5
5 support.sas.com/publishing
6
6 support.sas.com/certify
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10.1 SAS Resources 10-5
Support
SAS provides a variety of self-help and assisted-help
resources.
SAS Knowledge Base
license assistance
7
7 support.sas.com/techsup
User Groups
SAS supports many local, regional, international,
and special-interest SAS user groups.
SAS Global Forum
8
8 support.sas.com/usergroups
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10-6 Chapter 10 Learning More
Objectives
Introduce the different types of SAS training.
Identify where to find the current classroom training
for the SAS platform.
Identify where to find the current e-learning for the
SAS platform.
Identify additional learning opportunities that follow
this course.
11
1
1
Education (Review)
Comprehensive training to deliver greater value to your
organization.
more than 200 course offerings
world-class instructors
1
2
12 support.sas.com/training
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10.2 Beyond This Course 10-7
Live Web
e-Learning
on-site
mentoring
1
3
13 support.sas.com/training/options
Classroom Training
SAS Education provides training on all aspects of the
SAS System.
Training offerings
are organized by
job role-based
learning paths.
1
4
14 support.sas.com/paths
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10-8 Chapter 10 Learning More
1
5
15 support.sas.com/foundationtraining continued...
1
6
16 support.sas.com/training/analytics continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10.2 Beyond This Course 10-9
1
7
17 support.sas.com/bitraining continued...
1
8
18 support.sas.com/dmtraining continued...
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10-10 Chapter 10 Learning More
1
9
19 support.sas.com/admintraining
e-Learning
SAS e-Learning provides award-winning training when
and where you need it.
20 support.sas.com/elearn
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
10.2 Beyond This Course 10-11
Next Steps
After this course, you will have access to extended
learning resources that include the following:
links to technical papers
21
2
1
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.
Recommended SAS Titles
Creating Business Intelligence for Your Organization: Fast Track
Price
(U.S.
ISBN Title
Dollars)
SAS Press
978-1-59994-573-6 Basic Statistics Using SAS Enterprise Guide: A Primer $39.95
978-0-470-53968-2 SAS For Dummies , Second Edition $29.99
978-1-59994-726-6 The Little SAS Book for Enterprise Guide 4.2 $49.95
978-1-60764-833-8 Web Development with SAS by Example, Third Edition $49.95
SAS Documentation
978-1-59994-001-4 Base SAS 9.2 Guide to Information Maps $12.95
978-1-59047-106-7 Getting Started with SAS Enterprise Guide , Second Edition $16.95
978-1-59994-843-0 SAS Add-In 4.2 for Microsoft Office: Getting Started with Data Analysis $7.95
978-1-60764-777-5 SAS BI Dashboard 4.3: Users Guide $13.95
Notes
Prices are subject to change without notice.
To order, please visit support.sas.com/bookstore.
SAS documentation is available to search, browse, or print free online at: support.sas.com/documentation.
Copyright 2011, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED.