Sie sind auf Seite 1von 10

BANGALORE TECHNICAL TRAININGS Onlinetrainingsbglr@gmail.

com +917411642061

Lab 8
NORMALIZER

Lab at a Glance................................................................2 Objectives..............................................................2 Summary................................................................2 Duration.................................................................2 Exercises..........................................................................3 Exercise 1: Create the Mapping.............................3 Exercise 2: Create and Run the Workflow..............8

PowerCenter 9.x Level I Developer Lab Guide

8-1

Lab 8. NORMALIZER

Lab at a Glance
The exercises in this lab are designed to walk the student through the process of using a Normalizer transformation.

Objectives
After completing the lab, the student will be able to use a Normalizer transformation.

Summary
The purpose of this lab is to load comma separated data flat file from flat file/Cobol Source. The data will be extracted from the STORE flat file. The data will be loaded into a target file called STORE_TGT. SOURCE: STORE TARGET: STORE_TGT The completed mapping should look as follows:

Duration
This lab should take approximately 30 minutes.

8- 2

PowerCenter 9.x Level I Developer Lab Guide

Lab 8. NORMALIZER

Exercises
Exercise 1: Create the Mapping
Step 1. Import the source Flat file. Clear the Source Analyzer workspace (right-click anywhere in the workspace and select Clear All). Continue to work in the assigned student folder and import the STORE flat file. The source should look as follows:

Step 2. Import the target. Clear the Warehouse Designer workspace (right-click anywhere in the workspace and select Clear All). Create the STORE_TGT file The target should look as follows:

Save the repository. Step 3. Creating a mapping. Create a mapping called m_NORMALIZER.

PowerCenter 9.x Level I Developer Lab Guide

8-3

Lab 8. NORMALIZER

Step 4. Add source and target. Add the STORE source definition with its respective Source Qualifier to the mapping:

Add the target definition STORE_TGT. Save the repository. Step 5. Create a Normalizer transformation. Create a Normalizer transformation named NRM_STORE_EXP. Create the two ports Store and Quarter(Repeats 4 times because we have data for 4 quarters The mapping should look as follows:

Mark the occurrence as 4 as we have the data for 4 quarters.

Port tab should look as follows.

8- 4

PowerCenter 9.x Level I Developer Lab Guide

Lab 8. NORMALIZER

Copy/Link the following columns and connect to Normalizer Transfirmation. Store Quarter1 Quarter2 Quarter3 Quarter4

The mapping should look as follows:

Save the repository.

PowerCenter 9.x Level I Developer Lab Guide

8-5

Lab 8. NORMALIZER

Step 6. Create a expression transformation. Click the Expression Transformation with exp_STORE. Copy/Link the following columns and connect to Expression Transfirmation. Store Quarter GK_QUARTER GCID_QUARTER

Rename the quarter column to Sales in Expression Click OK to close the Edit Transformations dialog box. Save the repository.

8- 6

PowerCenter 9.x Level I Developer Lab Guide

Lab 8. NORMALIZER

Step 7. Link the target definition.

Save the repository.

PowerCenter 9.x Level I Developer Lab Guide

8-7

Lab 8. NORMALIZER

Exercise 2: Create and Run the Workflow


Step 1. Create a workflow. Create a workflow called wf_Normalizer. Create a session task called s_m_NORMALIZER. Double-click on the session task. The Edit Tasks dialog box appears.

Select the Mapping tab. In the Navigator window, select the source SQ_STORE. Under Properties, TIME File Reader, Source filename, enter STORE.txt.

In the Navigator window, select the source STORE_TGT. Under Properties, TIME File Writer, Output enter STORE_TGT.txt.
filename,

Click OK to close the Edit Tasks dialog box.

Link Start to s_m_NORMALIZER:

Save, validate and start wf_Normalizer.

8- 8

PowerCenter 9.x Level I Developer Lab Guide

Lab 8. NORMALIZER

Monitor and review the results for s_m_NORMALIZER in the Workflow Monitor.

PowerCenter 9.x Level I Developer Lab Guide

8-9

Lab 8. NORMALIZER

8- 10

PowerCenter 9.x Level I Developer Lab Guide

Das könnte Ihnen auch gefallen