Originally posted by: SystemAdmin
I wouldn't CLONE the file as this might use way too much memory. Just cloning a single character would create a file that you could use.
This file would form the basis of a dummy input to get the right number of loops.
first step use a LEFT() to get the beginning of the file, append this to output
loop around Y times, getting a MID() each time, append a <NL> and this to the output file. (or any other row delimiter you like)
On the last loop get all the data, then use a LEFT() to remove the trailer.
lastly use a RIGHT() to grab the last bit of the file.
STart by making each step a map, and then when it's all working as you would expect, try to chain them all together.
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange