Clear;
The Clear method clears flat records set added as a result of the execution of custom algorithm.
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(i).Value(0);
End For;
RecordSetOut.Clear;
End Sub UserSub;
This example is a custom module macro, used to transform data in ETL task. After execution of ETL task, first there will be created as many records in a data consumer as there are in a source, then all added records will be deleted.
See also: