Maintaining Information Marts |
Overview |
This example creates an Information Mart Item that displays a percentage chart of sale promotion types generated from the ODD Promotions.
Note: The following explanations describe the metadata and methods used to achieve the desired results. It is assumed that the appropriate Data Warehouse Environment, Data Warehouse, Subject, Information Mart, and ODD already exist.
Define Information Mart Item Properties |
In the SAS/Warehouse Administrator Explorer, position the cursor on the Information Mart (for example, InfoMart for Toy Sales), click the right mouse button, select Add Item, and then Information Mart Item. In the Explorer window, a new Information Mart Item is added under the Information Mart as follows:
To update the default metadata for the item, position the cursor on its icon, click the right mouse button, and select Properties. The Info Mart Item Properties window displays for you to enter the appropriate information.
Define Process Editor Job |
In the Process Editor Job, the Information Mart Item Percent of Promotion Types is specified as the output target and the ODD Promotions is specified as the input source. The following Process Editor window displays the Process Flow for the Job:
The Load process defined in the Job is summarized next. Note that there is not a Mapping process. The Information Mart Item is generated by running source code against the specified data.
Load Step Process |
The source code is user written and stored as a SAS catalog entry. |
To enter the source code or to display it, click . The user-written source code is as follows:
For more information about Process Editor Jobs, see Maintaining Jobs. For more information about processes, see Maintaining Processes.
Display Output |
First, you must execute the Job, which executes the user-written code specified in the Load process, generates the output, and stores it in the specified catalog entry. Then, to display the output, open the Info Mart Item Properties window and click .
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.