Generating sequence numbers without using Sequence Generator transformation

  1. Create a target table with a field name SEQ_NO for sequence number.
  2. Design the Mapping as shown above.
  3. In the Expression transformation create a variable port and increment it by 1.
    • V_Count=V_Count+1
  4. In the Expression transformation create a output port and assign variable port to it.
    • O_Count=V_Count
  5. Connect O_Count to SEQ_NO.

9 comments :

  1. Hi
    I can't execute the above mapping, it is giving parse error when assigning the output port

    Thanks
    l

    ReplyDelete
    Replies
    1. Hi,

      Sorry for the late. Verify the data types of the variables.

      Delete
  2. I am William..
    I just browsing through some blogs and came across yours!
    Excellent blog, good to see someone actually uses for quality posts.
    Your site kept me on for a few minutes unlike the rest :)
    Keep up the good work!Thanks for sharing a important information informatica

    ReplyDelete
  3. Iam really satisfy by your information.
    It's well-written, to the point, and relative to what I do.
    I like it very much for giving information on
    Excellent Informatica Online Training
    .

    ReplyDelete
  4. This is really informative blog to share with all informatica blog.
    Thanks


    Datastage Online Training

    ReplyDelete
  5. I tried using the Logic for generating a sequence for a Flat file but the O/P is giving ont only zeroes as sequence for all the rows.

    Does the logic follow suit for tables and flat file alike?

    Thanks
    Neo

    ReplyDelete
  6. HOW TO DO THIS USING UNCONNECTED LOOKUP

    ReplyDelete

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger