Originally posted by: repanzer
What version are you running?
There used to be a tutorial that was part of 7.5, but as of 8.X and up, IBM removed it. I hate them for it also.
Anyway, there is a chapter:
Chapter 13 - Mapping Multiple Files to One File
If you have access to the tutorial, I suggest you use it, for it is very helpful.
Other then that, it depends on your circumstances.
If you have two inputs, each with records that correspond to records in the other file, for example, the following files have matching "Purchase order numbers";
File1
REC1*DATETIME*PurchaseOrderNumber*Invoice_Number
REC2*DATETIME*PurchaseOrderNumber*Invoice_Number
REC3*DATETIME*PurchaseOrderNumber*Invoice_Number
File2
REC1*DATETIME*PurchaseOrderNumber*Billing_Number
REC2*DATETIME*PurchaseOrderNumber*Billing_Number
REC3*DATETIME*PurchaseOrderNumber*Billing_Number
And in your output, you want this record;
REC1*DATETIME*PurchaseOrderNumber*Billing_Number*Invoice_Number
REC2*DATETIME*PurchaseOrderNumber*Billing_Number*Invoice_Number
REC3*DATETIME*PurchaseOrderNumber*Billing_Number*Invoice_Number
Buil
d the map just like you would if there were one input, but your functional map would look like this;
F_Map(Record:File1, EXTRACT(Record:File2, PurchaseOrderNumber:Record:File2= PurchaseOrderNumber:Record:File1))
But if each record in each file should create a record in your output, for example, you have 3 records in the first input file and 3 records in the second input file, and you want 6 records in the output file, your functional map would look like this;
F_Map(Record:File1, Record:File2)
Hope that helps.
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender