SAS® Information Maps enable business analysts and information architects to organize data in ways that are meaningful to business users, while shielding the end users from the complexities of underlying data structures. This sample shows you how to create a new information map in SAS Information Map Studio 4.2. This sample is appropriate for both new information map creators and for existing users who want to familiarize themselves with the latest version.
Note: For more information about the new features, see What's New in SAS Information Map Studio 4.2.
The two tables used in the sample are INVOICE and PRODUCT, which are both shipped with SAS. On Windows systems, these tables are located by default in C:\Program Files\SAS\SASFoundation\9.2\core\sample
. On UNIX systems, the default location is /usr/local/SAS/samples
.
In order for you to follow along, these tables must be registered in metadata and you must be authorized to access them.
After you start up SAS Information Map Studio, your first task is to select the tables that contain the data that you want to analyze in your reports. After you select the tables, they become the data sources for your information map.
About tables and data sources
The tables that you see listed on the Resources pane are metadata references to the underlying tables. The metadata consists of information about the tables such as column names and data types. Tables are accessed through a SAS Application Server. In this sample, the SAS Application Server is named SASApp. The tables that you select become data sources for the information map. Data sources do not store any actual data. |
Since you are using more than one data source, you must define a relationship between them so that they can be used together in your query. On the Relationships tab, click the PRODNAME column in the INVOICE data source and drag the mouse pointer to the PRODNAME column in the PRODUCT data source. A line is drawn between the two columns to show the relationship that you created. Click the Design tab when you are done.
Data source columns that you select to use in the information map are called "data items." To select data items, display the Design tab in the Selected Resources pane, and then double-click or use the arrow key to add the following data items to the Information Map Contents pane:
Here is what the Information Map Contents pane looks like after you select the data items.
One of the advantages of using information maps is that they hide obscure and complex data structures from the report creators and viewers. In this sample, you will give the data items more user-friendly names.
In the Information Map Contents pane, select Custname and notice that properties for this data item are displayed in the Properties pane to the right.
One way to change the name of a selected data item is to enter a new name in the Value field for the Data item name property. When you click in Value field, the entire property row is highlighted. To replace the existing name, just begin typing.
Rename the data items as shown in the following table.
Original Value | New Value |
---|---|
Custname | Customer Name |
Invnum | Invoice Number |
Invprice | Invoice Amount |
Prodname | Product |
Prodcost | Cost |
Prodlist | Retail Price |
About the multi-edit feature
Because you are changing the same property for both data items, you can use the multi-edit feature, which is new in SAS Information Map Studio 4.2. Notice that both Customer Name and Product are listed in the Selected Data Items box in the Data Item Properties dialog box. |
You will now create a new data item named Discount, so that your reports can include the discount percentage, if any, for each invoice.
Discount
as the name of the new data item.
(<<root.Prodlist>> - <<root.Invprice>>) / <<root.Invprice>>
|
You can type the expression, or you can construct the expression by selecting data items from the Business Data list (or the Physical Data list) on the Data Sources tab and clicking Add to Expression to insert the selected data item into the Expression Text box.
Note: The Physical Data list displays the data sources that are being used to create the information map. The Business Data list displays the data items contained in the information map. The Business Data list might include data items that only exist in the information map. For more information, see the SAS Information Map Studio Help.
The following screen capture shows Invoice Amount selected.
When you are done, your Classifications, Aggregations, Formats tab should look like this:
Product Filter
.At this point, the New Filter dialog box should look like this:
Prompt for Product
.Select one or more products to subset the query results
.The Prompt Type and Values tab should now look like this:
Here are the query results, which are subset to include just flippers and kayaks. Also notice that new Discount column shows which invoice amounts reflect a discount from the regular retail price.
Tip: Your administrator might have a preferred location for where to store resources such as information maps.
You are now ready to use this information map in applications such as SAS® BI Dashboard and SAS® Web Report Studio.
For more information about SAS Information Map Studio, see the SAS Information Map Studio documentation page.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Type: | Sample |
Topic: | Data Management ==> Data Sources ==> Information map Query and Reporting ==> Interactive Querying Query and Reporting |
Date Modified: | 2009-04-09 17:08:00 |
Date Created: | 2009-04-06 12:13:54 |
Product Family | Product | Host | Product Release | SAS Release | ||
Starting | Ending | Starting | Ending | |||
SAS System | SAS Information Map Studio | Microsoft® Windows® for x64 | 4.2 | 9.2 TS2M2 | ||
Microsoft Windows Server 2003 Datacenter Edition | 4.2 | 9.2 TS2M2 | ||||
Microsoft Windows Server 2003 Enterprise Edition | 4.2 | 9.2 TS2M2 | ||||
Microsoft Windows Server 2003 Standard Edition | 4.2 | 9.2 TS2M2 | ||||
Microsoft Windows XP Professional | 4.2 | 9.2 TS2M2 | ||||
Windows Vista | 4.2 | 9.2 TS2M2 |