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 create a new function in WTX ? Is it possible with Java langauge?

    Posted 03/12/12 08:40 AM

    Originally posted by: Sidhumohan


    Hi,

    I am facing an issue in WTX.
    I want to send file name and line number as parameters to the function and the function has to return the content of the particular line. I wrote the code in java but i am not able to call it since i dont have access to dtx.ini file in installation folder. Is there any other way to do it. While i am trying to create a new function it is generating a .c file and the code is in C. I dont know how to do it in the code.

    Any help is appreciated.

    Regards,
    Sidhu.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: How to create a new function in WTX ? Is it possible with Java langauge?

    Posted 03/15/12 10:19 AM

    Originally posted by: SystemAdmin


    This looks like something esay to do in a mapping rule : get the N^th^ word (N = line number) from a string ( TEXT(inputfile) ) where <NL> is the word separator.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: How to create a new function in WTX ? Is it possible with Java langauge?

    Posted 03/21/12 07:15 PM

    Originally posted by: anthcorr


    Hi,

    If you want to use the JEXIT function and you can't modify the dtx.ini, you have also the possibility to change the system classpath (http://publib.boulder.ibm.com/infocenter/wtxdoc/v8r3m0/index.jsp?topic=%2Fcom.ibm.websphere.dtx.funcexp.doc%2Freferences%2Fr_funcs_express_jexit.htm).

    However, it is possible to do what you want by using only native WTX functions. You should have a look at the INDEX function (http://publib.boulder.ibm.com/infocenter/wtxdoc/v8r3m0/index.jsp?topic=%2Fcom.ibm.websphere.dtx.funcexp.doc%2Freferences%2Fr_funcs_express_INDEX.htm).

    Regards,
    --Tony
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender