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