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.  xml trace file - unique name parameter?

    Posted 08/20/07 08:24 AM

    Originally posted by: thorstenhirsch


    Hi,

    one of my mappings must be able to run massively parallel, so I'm specifying unique audit and unique work files like this:

    VALID(
    RUN(
    map,
    "-ADEU -WU -F21 -TI " +
    HANDLEIN(1,xml)
    ),
    "ERROR: whatever"
    )

    However, xerces xml trace files always have the name <map>_log.xml, so it's not unique. Is there a way to specify the file name or some mysterious -TIU parameter? Of course it's not "U", I already tried to use it, but the command server fails with "Invalid 'T' command line option".

    Another question: how can I know the unique file name in the main mapping (which is doing the RUN() command)? I need to know the unique file name, because I want to read the <DetailedStatusMessage>interesting error message</DetailedStatusMessage>.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 2.  Re: xml trace file - unique name parameter?

    Posted 08/20/07 01:02 PM

    Originally posted by: LewS


    Hi,

    You can specify the name of the trace file using -TI=<filename>

    In your RUN command, you could use -TI=[i]unique_filename[/i], but somehow in your mapping, you would have to create the unique_filename value.

    If you input data has something unique in it (a control # or something) you could use that, or perhaps base it on the name of the input file if that's unique (using -TI=" + GETFILENAME(cardName) + ".trc"). This method would link the name of the trace file with the name of the RUN map's trace file. If the RUN map gets executed several times in the top map, add in the INDEX function for which iteration of the RUN map it is...

    This method can also be used for the -A option.

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