You are on page 1of 53

m 

  

› Transformations
‡ Aggregator AGG_TransformationName
‡ Expression EXP_TransformationName
‡ Filter FIL_TransformationName
‡ Joiner JNR_TransformationName
‡ Lookup LKP_TransformationName
‡ Normalizer NRM_TransformationName
‡ Rank RNK_TransformationName
‡ Sequence Generator SEQ_TransformationName
‡ Stored Procedure SP_TransformationName
‡ Source Qualifier SQ_TransformationName
‡ Update Strategy UPD_TransformationName
m 
  


› Targets
‡ T_TARGETNAME
› Mappings
‡ m_MappingName
› Mapplets
‡ mplt_MappletName
› Sessions
‡ s_MappingName


 
› Ports
‡ To design the basic flow of data between source and
targets
‡ Types: input, output, variable
› Variable Ports
› For aggregator, expression and rank transformations
› Use variable to
‡ simplify complex expression
‡ store temporary data
‡ store values from prior rows

› Provides Wizards to create simple pass through


mappings/Slowly changing dimensions

 

› ^ow to create a Mapping?
‡ Open the Mapping designer workspace
‡ Choose Mappings > Create
‡ Give a proper name to the mapping

‡ Open the Sources from the navigator which you would


have created/imported using source analyzer
‡ Drag and drop the source table from navigator into the
workspace

 


 

‡ Choose Transformation > Create to create a
transformation object
‡ Select the type of transformation object you want to
create and give a proper name to it

 

‡ Drag and drop the required fields(ports) from Source
Qualifier to the transformation object

 

‡ Add new ports in the transformation object and define
them as variable ports to do complex transformation

 

‡ Open the Targets from the navigator which you would
have created/imported using Warehouse Designer
‡ Select the target table, drag and drop it into the designer
workspace

 

‡ Drag and drop the output ports from the last
transformation object to the corresponding ports in the
target

‡ Choose Repository > Save to store the mapping


‡ Check the output window for any errors



› Wizards help to create mappings quickly and easily
› Wizards designed to create mappings for loading and
maintaining star schemas
› Mappings created using wizards can be edited and
customized
› Getting Started Wizard
‡ Simple Pass Through
‡ mappings to load static fact and dimensions
‡ Use this when you want to drop all existing data from the
table before loading new data
‡ Slowly Growing Target
‡ mappings to load slowly growing dimension or fact tables
‡ Use this to load new data when existing data does not require
updates



› Slowly Changing Dimensions Wizard
‡ Type I Dimension Mapping
- Keep most recent values in target

m  
Emp id Name Email Emp id Name Email

1001 Shane Shane 1001 Shane Shane


@xyz.c @xyz.c
om om

m  
Emp id Name Email Emp id Name Email

1001 Shane Shane@ 1001 Shane Shane@ Shane@xyz.


abc.co.in abc.co.in com



› Slowly Changing Dimensions Wizard
‡ Type II Dimension Mapping
‰ Version Data Mapping
- insert new and changed dimensions with version number and
incremented primary key
- full history and progress of changes

m  PM_ Emp Name Email PM_V
PRIM id ERSI
Emp id Name Email ARY ON_
KEY NUM
BER
10 Shane Shane
1000 10 Shane Shan 0
@xyz.
e@xy
com z.co
m
9 
 



m 
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRI Emp Name Email PM_VERSION_N


MARYKE id UMBER
Y

1000 10 Shane Shane@ 0


xyz.com

1001 10 Shane Shane@ 1


abc.co.in


9 
 



m 
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_VERSION_N


MARYKE id UMBER
Y
 1000 10 Shane Shane@ 0
xyz.com

1001 10 Shane Shane@ 1


abc.co.in
1003 10 Shane Shane@ 2
abc.com



› Slowly Changing Dimensions Wizard
‡ Type II Dimension Mapping
‰ Flag Current Mapping
- insert new and changed dimensions with flags and incremented
primary key
- full history and flagging only current dimensions

m  PM_ Emp Name Email PM_CU
PRIM id RRENT
Emp id Name Email ARY _FLAG
KEY

10 Shane Shane
1000 10 Shane Shan 1
@xyz.
e@xy
com z.co
m
9 
 
  
m 
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRI Emp Name Email PM_CURRENT_F


MARYKE id LAG
Y

1000 10 Shane Shane@ N


xyz.com

1001 10 Shane Shane@ Y


abc.co.in


9 
 
  
m 
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_CURRENT_F


MARYKE id LAG
Y
 1000 10 Shane Shane@ N
xyz.com

1001 10 Shane Shane@ N


abc.co.in
1003 10 Shane Shane@ Y
abc.com



› Slowly Changing Dimensions Wizard
‡ Type II Dimension Mapping
‡ Effective Date Range Mapping
- insert new and changed dimensions with date range to define
current dimension data
- full history and tracking changes with an exact effective date
range

m 
PM_ Emp Name Email PM_B PM_E
Emp Name Email PRIM id EGIN ND_
id ARY _DAT DATE
KEY E
10 Shane Shane
@xyz.
1000 10 Shane Shan 01/0
com e@xy 1/00
z.co
m
9 
 


m 
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRIMA Emp id Name Email PM_BEGIN PM_END


RYKEY _DATE _DATE

1000 10 Shane Shane 01/01/00 03/01/00


@xyz.
com
1001 10 Shane Shane 03/01/00
@
abc.co
.in

9 
 


m 
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_BEGIN PM_END_


MARYKE id _DATE DATE
Y

1000 10 Shane Shane@ 01/01/00 03/01/00


xyz.com

1001 10 Shane Shane@ 03/01/00 05/02/00


abc.co.in
1003 10 Shane Shane@ 05/02/00
abc.com





› Slowly Changing Dimensions Wizard
‡ Type III Dimension Mapping
- insert new and update values in existing dimensions
- keep current and previous values (partial history)


PM_P Emp Name Email PM_P PM_E
m  RIMA id rev_ FFECT
RYKE Colu _DAT
Emp Name Email Y mnN E
id ame

10 Shane Shane 1 10 Shane Shane 01/01


@xyz. @xyz. /00
com com
9 
 

m 
Emp Name Email
id
10 Shane Shane@
abc.co.in

PM_PRIMA Emp id Name Email PM_Prev_ PM_EFFE


RYKEY ColumnNa CT_DATE
me

1 10 Shane Shane Shane@xy 01/02/00


@ z.com
abc.co
.in


9 
 

m 
Emp Name Email
id
10 Shane Shane@
abc.com

PM_PRI Emp Name Email PM_Prev_ PM_EFFEC


MARYKE id ColumnNa T_DATE
Y me

1 10 Shane Shane@ Shane@ 01/03/00


abc.com abc.co.in



 

› Mapplet
‡ Reusable object that reflect set of transformation
logic to use in multiple mappings
‡ Like a single transformation object
‡ Expands at run time

› Each Mapplet must include the following


‡ Exactly one input transformation or Source Qualifier
transformation
‡ At least one output transformation

› Rules for Objects in Mapplets


‡ Use only reusable Sequence Generators
‡ Do not use pre- or post-session stored procedures

 

› Rules for Objects in Mapplets


‡ Do not use the following in a mapplet
‰ Joiner
‰ Cobol Source definition
‰ Normalizer
‰ Target definitions

 
› ^ow to create a Mapplet?
‡ Open the Mapplet designer workspace
‡ Choose Mapplets > Create
‡ Give a name to the Mapplet

‡ Create an input transformation to define mapplet input


ports if the mapplet contains no sources



‡ Double click on the object to define the input ports




‡ Create the transformation objects to be used in the
mapplet
‡ One input transformation can be connected to only one
transformation, so to pass same values to two separate
data flows,connect the input transformation to another
transformation and then split the data flow
‡ Use Output transformation to create output ports, creating
one Output transformation for each mapplet output group

‡ Connect all the input ports, ports in transformation objects


and the output ports to complete the data flow



‡ Choose Repository > Save to store the mapplet


‡ Check the output window for validation status
‡ If mapplet is not valid,correct the problem and re-save the
mapplet
À

 

è 

 
     

 
   
è 
  
     
           
   
 
 

  

       


 
   

‡ In the Workflow Manager, you define a set of


instructions called a workflow to execute mappings you
build in the Designer.
‡ Generally, a workflow contains a session and any other
task you may want to perform when you execute a
session. Tasks can include a session, email notification,
or scheduling information. You connect each task with
links in the workflow.
‡ You can also create a worklet in the Workflow Manager.
A worklet is an object that groups a set of tasks
À

 

è
  

 



9 9

 



 
 

9

!
  
m

 
è !  

   


     


  

       


 " 

 
   


è     

 #

 m  
  #   
  

  

 
 $%    % 

 # 

 
  %   % 

 m 



 "  #$



 ¦

 
       
 
      
   
   
 ¦

 
  
A  
     
 
 

 
   
¦

è! m
    
&  !    %    
 
 !'()
'*)
  
 ¦


   
  
   


" #$
 

    


     
  

  


   
 
 
     
  


    


   
 
    !
Ú  
[Ú "


 

  
 
Ú "

   Ú # 
   

Ú 
 Ú # 
 
     $  
  
 %   m  
  
  
  
6      •  
    &  
 

 Ú # 
 
 %   '{   Ñ
x      •
  

  

  
  
 " [[$
 " #$
Ú 

 #  (   


 Ú 
  

  
     
  
Ú 

  
¦ 
    $   

Ú 

  #   # ¦
 
  
Ú 

        
!
m

  

#    

#    
 
" #$
9

  
 
  
     
    %   m
  

    
  
 
  
    
   
  

      

    


     

   



  
 
 
 
 
!
• 
 
9
" [[$
!
  

 •

  
 
  

  

    
m

 m


     
 %   m   %   m


 

    


  
 

 


m


0 

• 
  ) 
 

 

% 
   
   #  ( 
è 
 
   
 
  
 
‡ The Workflow Monitor is a tool that allows you to
monitor workflows and tasks.
‡ You can view details about a workflow or task in either
Gantt Chart view or Task view.
‡ You can run, stop, abort, and resume workflows from
the Workflow Monitor.
  
 

è       +  


 ! 
  
 
¬  * 
  
 
‡ Task View