Originally posted by: SystemAdmin
Hi,
I have two maps that pass 5 files from one to the other, with the second watching a directory for the last file written from the first map.
This works ok, but I suspect writing and reading 5 files for each transaction is slowing it up and I would like to combined the files into 1, saving file io and reducing file counts in watching directories.
The issue I have is each of the 5 files is a different type of data, 2 xml and 3 txt files and I knocked together a quick type tree and from map 1 packaged all 5 bits of data into 1 file.
In the receiving map I then moved all the 5 input cards as output cards and I then wanted to "unpackage" the 5 components from the new input card into the individual output cards before processing them.
However the receiving map is whinging about "Output argument of rules does not match output type".
So I am after some advice to deal with this.
The options that I see are either
1. Trick the output card to accept the portion of the input card, as a blob of data, and trust me it does match the type tree, but I don't know hoe to do that.
or
2. Build a new combined type tree and "inherit" the 5 component trees, but with enough detail just to allow the mapping to to the 5 output cards to take place and again I am hoping there is a way of merging trees together?
The underlying reason for doing, this is that after I get the map to pass a single file between them, I hope then to pass that data using MQ, hopefully for a further performance improvement, but before I can do that, I need to get the data all together into a single message.
Any advice would be greatly appreciated.
Thanks
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender