Item(Index: Integer): IEtlPlainRecordSet;
Index - data source index.
The Item property returns the object that contains a flat data source.
Sub UserSub(Input: IEtlPlainRecordSets; Output: IEtlPlainRecordSets);
Var
RecordSetIn, RecordSetOut: IEtlPlainRecordSet;
i: Integer;
Begin
RecordSetIn:=Input.Item(0);
RecordSetOut:=Output.Item(0);
For i := 0 To RecordSetIn.Count - 1 Do
RecordSetOut.Add;
RecordSetOut.Item(i).Value(0):=RecordSetIn.Item(0).Value(0);
End For;
End Sub UserSub;
This example is a custom module macro that is used to transform data in ETL task. After executing the ETL task the first unchanged data source field corresponds to the first data consumer field.
See also: