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.  Embed a RUN map inside the parent map

    Posted 07/09/15 05:38 AM

    Originally posted by: paul.brett


    Did you know that you can embed a map inside a map?

    Let's say you have a requirement to use a RUN() map, but for some reason, you don't want to distribute that map onto the target platform.  At runtime, you want to create the target map, use it and then delete it afterward.

    All you need to do is build the map for the target platform, and then using the enclosed 'ASCII_HEX_ENCAPS' map, it will convert that map (I used Child.mmc in my example') to a rule (in Rule.txt) like this:

    =PUT("FILE","Child.mmc","<<4D>><<45>>...{sequence shortened}...<<02>><<00>><<02>><<00>><<00>>")

    You put this rule into your map in an output card prior to your RUN() call, and then (optionally) you can use the Batch/Shell Script adapter in a later card, to delete the temporary map.

    Using this technique, any binary file can be embedded into a map.   (One reason you should not run maps from unknown sources!!)

    I hope you find this information useful.

    Thank-you.

    Paul

    Follow me on Twitter to get more great tips and mapping techniques.


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


  • 2.  Re: Embed a RUN map inside the parent map

    Posted 07/13/15 04:11 PM

    Originally posted by: DeM0n


    Great Info Paul....I never could have thought that something like this is possible in WTX....

     

    I have a question....what if I do this and loose the original map source (temp.mms in your example) from where I created Rule.txt....Can I create the source map back from Rule.txt.....

    As far as I understand is that if I loose the source map then I am left only with the mmc that I can create using Rule.txt.....but I can not get back the source map from the .mmc file.

     

    Please suggest !!!

     

    Thanks

    Dhruv


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


  • 3.  Re: Embed a RUN map inside the parent map

    Posted 07/14/15 04:51 AM

    Originally posted by: paul.brett


    It is not currently possible to reverse engineer (decompile) a compiled map.

    Thank-you.

    Paul

    Follow me on Twitter


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