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.  how to increment ST*02 count

    Posted 10/30/07 12:01 PM

    Originally posted by: SystemAdmin


    I am trying to clone an edi file with a single transaction set(ST/SE) to one with multiple trans sets with diffn control nos for each ST*02
    using the clone func.

    any suggestions on incrementing the index of each ST*02
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 2.  Re: how to increment ST*02 count

    Posted 10/30/07 12:05 PM

    Originally posted by: john.gibby


    The only way I know to do such things is to do the clone first in one output card. Then in a following output card, copy the cloned output card, setting the control number as you cycle through the cloned ST*02's.

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


  • 3.  Re: how to increment ST*02 count

    Posted 11/01/07 02:23 PM

    Originally posted by: jvanboga


    Make sure each transaction is a f_map. Pass in an index as an input card then try this rule in st02

    =IF(SIZE(NUMBERTOTEXT(STCtlNo )) < 4,
    RIGHT("0000" + NUMBERTOTEXT(STCtlNo ) ,4),
    NUMBERTOTEXT(STCtlNo) )

    STCtlNo is actually the index($) value.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: how to increment ST*02 count

    Posted 10/30/07 12:33 PM

    Originally posted by: janhess


    I once did something like this by running a second map that ran itself. I think I did a run on the second map passing the data to duplicate and the number of copies required. This mapped the input to the output doing any data changes required and appended it to a file. The second output card called the same map and decremented the number of copies. The rule tested for number of copies to be greater than 0 before running the map. I think if the number of itterations was too high it caused the map to crash but that was at vn 6.5 so you might be ok at 8.1
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 5.  Re: how to increment ST*02 count

    Posted 10/31/07 10:54 AM

    Originally posted by: SystemAdmin


    Well, maybe there's something going on with the whole cloning thing, but anytime I'm building X12 output, I use the "GETANDSET() function. Build an input card with one input, numeric, set it to 0, use the GETANDSET on it, (value=value + 1), then reset it at the end of the map through another output card so it is 0 everytime the map runs.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 6.  Re: how to increment ST*02 count

    Posted 10/31/07 04:38 PM

    Originally posted by: SystemAdmin


    i did use the getandset(), but in a slightly different way & it did work ok....
    thanks all of u for ur suggestions..
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender