Beruflich Dokumente
Kultur Dokumente
January 5, 2009
Second Edition
About interface - development.com is the source for data integration expertise that provides customers valuable, convenient and relevant experiences through a diversity of products and services. The main orientation of the project is to respond to the increased demand for applications and services to help successfully building data integration solutions and deliver the results developer and organization expects. Matthias Urech, founder of interface - development.com, has a proven track record of applying data integration solutions for several companies across the industry. He played a key role to implement projects in the area of data integration, data migration, data consolidation and data warehousing. Matthias contributed several articles about data integration best practices for Informatica Technology Network, resulting in nomination as member of Developer Wall of Fame and receiving an award as Contributor of the Year in 2008.
Copyright Copyright 2005 - 2009 interface - development.com. All Rights Reserved. No parts 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 author.
Limit of Liability / Disclaimer of Warranty While every precaution has been taken in the preparation of this article, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.
Trademarks Designations used by companies to distinguish their products are often claimed as trademarks or registered trademarks. In all instances in which interface-development.com, the author or publisher is aware of claim, the product names appear in initial capital or all capitall letters. Readers, however, should contact the appropriate companies for more complete information regarding trademarks and registration.
Table of Contents About this Article ......................................................................................................................................... 1 Introduction ................................................................................................................................................ 1 How the Normalizer works .......................................................................................................................... 1 Example 1: Error Logging 2 Example 2: Dynamic Parameter Files 3
ii
Introduction
What comes to your mind when thinking about a Normalizer transformation? COBOL Mainframe I dont know, I have never used it normalizing data Almost, but the Normalizer can do more than that. Once, you see its full potential you dont want to miss it in your interfaces.
Example 1: Error Logging Lets say you want to log errors for several reasons (data quality, monitoring, etc.). An Expression transformation has two attributes for error logging (ERROR_DATE, ERROR_MESSAGE). The attributes are marked as (O)utput ports and have the following logic: ERROR_DATE: ERROR_MESSAGE: IIF(ISNULL(i_WORK_DATE), TO_CHAR(SYSDATE, 'MM/DD/YYYY'), NULL) IIF(ISNULL(i_WORK_DATE), 'Error - Mandatory field WORK_DATE is null!', NULL)
Dependent on value of attribute WORK_DATE, both ports will generate data as outlined in figure 2:
Example 2: Dynamic Parameter Files You can use two parameter file types with Informatica PowerCenter: Static Parameter Files Dynamic Parameter Files
Static Parameter Files are created once and are changed manually from time to time (i.e. once a month). Basically, you are using a tool (i.e. Parameter File Wizard) or text editor to modify the parameters and variables. Dynamic Parameter Files are changing permanently, so you cant or dont want to change them continuously (i.e. date values). This example describes how you can generate a dynamic parameter file that provides date values for file names. We use a Source File as specified in figure 4: