Answered Questions

  • Datastage Real time scenario

    source table name A A B B B C C D In source table data like this but I want traget table like this name count A 1 A 2 B 1 B 2 B 3 C 1 C 2 D 1 pls any one one solve this........

    sachin kumar

    • Jun 11th, 2024

    Seq----transformer---seq.
    Go to the stage variable properties create two staging variables first is s1 and second is s2 .
    s2 = if inputcolumn = s1 then s2 +1 else 1
    s1= inputcolumn
    create new column is count.
    s2= count

    Rams

    • Jul 10th, 2021

    Seqfile---Sort----Trans-seqfile
    Sort Stage---KeyChange column true
    Transfor- in advance tab set mode-Sequence
    Create one stage Variable: Stagevar= if KeyChangecol=1 then 1 else Stagevar+1
    Create on extracolumn in output give Stagevar=Newcolname