Beruflich Dokumente
Kultur Dokumente
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
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
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.
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:
8- 4
Lab 8. NORMALIZER
Copy/Link the following columns and connect to Normalizer Transfirmation. Store Quarter1 Quarter2 Quarter3 Quarter4
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
Lab 8. NORMALIZER
8-7
Lab 8. NORMALIZER
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,
8- 8
Lab 8. NORMALIZER
Monitor and review the results for s_m_NORMALIZER in the Workflow Monitor.
8-9
Lab 8. NORMALIZER
8- 10