IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Using index in functional map call

    Posted Sun July 12, 2015 11:31 PM

    Originally posted by: Karthik12r


    I have two input cards with group occuring S times. I need to pass these groups to group in output card which is also s times.

    Say for example, I have 10 names in input #1  and  10 marks in input # 2, i need to get output like a marksheet ,  Name = Mark. For this my functional map should run 10 times. But if i pass input 1 and 2 as arguements to fun map, it runs 10*10 100 times. how do i get this done using indexing or other technique. Request suggestion.
     


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Using index in functional map cal

    Posted Tue July 14, 2015 05:06 AM
      |   view attached

    Originally posted by: paul.brett


    For a marksheet (table) output, you only need to alter the syntax of the delimiters:

    001aaa | 001bbb | 001ccc | 001ddd | 001eee | 001fff | 001ggg | 001hhh | 001iii | 001jjj
    002aaa | 002bbb | 002ccc | 002ddd | 002eee | 002fff | 002ggg | 002hhh | 002iii | 002jjj
    003aaa | 003bbb | 003ccc | 003ddd | 003eee | 003fff | 003ggg | 003hhh | 003iii | 003jjj
    004aaa | 004bbb | 004ccc | 004ddd | 004eee | 004fff | 004ggg | 004hhh | 004iii | 004jjj
    005aaa | 005bbb | 005ccc | 005ddd | 005eee | 005fff | 005ggg | 005hhh | 005iii | 005jjj
    006aaa | 006bbb | 006ccc | 006ddd | 006eee | 006fff | 006ggg | 006hhh | 006iii | 006jjj
    007aaa | 007bbb | 007ccc | 007ddd | 007eee | 007fff | 007ggg | 007hhh | 007iii | 007jjj
    008aaa | 008bbb | 008ccc | 008ddd | 008eee | 008fff | 008ggg | 008hhh | 008iii | 008jjj
    009aaa | 009bbb | 009ccc | 009ddd | 009eee | 009fff | 009ggg | 009hhh | 009iii | 009jjj
    010aaa | 010bbb | 010ccc | 010ddd | 010eee | 010fff | 010ggg | 010hhh | 010iii | 010jjj
    

    ...and yes, the map does have embedded functional maps, and you will see 100 iterations (for 2 lots of 10 inputs).

    Perhaps I have misunderstood the requirement.  Could you alter the enclosed inputs and tell us what you're expecting as the output?

    Thank-you.

    Paul

    Follow me on Twitter


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender

    Attachment(s)

    zip
    Marksheet.zip   10 KB 1 version


  • 3.  Re: Using index in functional map cal

    Posted Tue July 14, 2015 03:21 PM
      |   view attached

    Originally posted by: DeM0n


    I guess that this is what you want to do...Please see the attached example...


    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender

    Attachment(s)

    zip
    Marksheet.zip   6 KB 1 version


  • 4.  Re: Using index in functional map cal

    Posted Tue July 14, 2015 11:50 PM

    Originally posted by: Karthik12r


    Great,  this is what i was looking for. This satisfies my requirement. I will take it from here for my requirements... thank you so much for the help.


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 5.  Re: Using index in functional map cal

    Posted Wed July 15, 2015 10:59 AM

    Originally posted by: DeM0n


    Even this rule will work. This is more efficient that the one I provided earlier......

     

    =F_Input1(LOOKUP(TextItem:In1,INDEX(TextItem:In1)=INDEX(TextItem:In2)),TextItem:In2)

     

    Also, you can use INDEXABS instead of INDEX...depends on your requirement.....


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange