IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
#Supplychain
 View Only
  • 1.  Mutliple output cards in one map

    Posted 06/14/12 07:03 AM

    Originally posted by: ManojBansal


    Hi,

    I have a scenario where 2 output cards needs to be used inorder to populate different root elements in XML based on a condition.

    If the Status code on input side = "100", then "Message.mtt" data which has message as root element,

    else populate "order.mtt" data which has order as root element.

    I tried writing the rule but not able to reference the second card details in first card :(

    Can some one please let me know what can be done in this scenario. I am using WTX 8.3 version.

    Thanks in advance!
    Manoj
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Mutliple output cards in one map

    Posted 06/16/12 11:16 AM

    Originally posted by: richlee


    It's not possible to take items from a later output card and use them in an earlier one, as they are processed sequentially.

    You will need to insert another output card before the current first - process any data needed for the (current) first and second cards in the new one, then use the results in the later cards.

    Regards
    Richard.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: Mutliple output cards in one map

    Posted 06/18/12 01:35 AM

    Originally posted by: ManojBansal


    Thanks Richard for your reply!

    I did that and now I'm getting 2 output files (One blank and other with data), in other words, one output file for one card.

    Is it possible to have only one output file though 2 output cards are used. If yes, then please help in doing that.

    I tried giving the same output file name for both the cards but in that case its overwriting the first output card file with the second one output file.

    Thanks!
    Manoj
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Mutliple output cards in one map

    Posted 06/18/12 05:47 AM

    Originally posted by: richlee


    Hi,

    To write both cards to the one file, set the second Output Card transaction to OnSuccess=Append.

    However, you will find it easier to debug if you keep separate files until you find the reason for the blank one.

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


  • 5.  Re: Mutliple output cards in one map

    Posted 06/18/12 05:55 AM

    Originally posted by: ManojBansal


    Thanks Richard!

    My issue got resolved now. Thanks Again!
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender