Showing posts with label Informatica Sequence Numbers without Sequence Generator.. Show all posts
Showing posts with label Informatica Sequence Numbers without Sequence Generator.. Show all posts

Tuesday, June 18, 2013

Generate sequence numbers in Informatica without using sequence generator transformation.




Mapping:

Create sequence numbers without using sequence generator transformation.

Business Requirement:

This is Informatica PowerCenter mapping example to generate sequence number without using sequence generator tranform, the logic is implemented using unconnected look-up tranformation and expression transformation.


Implementation Guidelines:








In the expression transformation create a variable port for impelemting the logic:-


iif
(isnull(v_EMP_KEY) or v_EMP_KEY = 0,iif
(isnull(:LKP.lkp_TGT_EMP_DIM_MAX_SK(-1)) ,0, :LKP.lkp_TGT_EMP_DIM_MAX_SK
(-1)),v_EMP_KEY) + 1



Link foward the EMP_KEY to the target instance as shown in figure 1.


Informatica Expression Code: Chr(10): Line Feed character  Chr(13): Carriage Return character.  Chr(12): Form Feed Expression Code to...