Conditional dml

One Star

Conditional dml

How to read data from files using conditional dml ?
eg:
type input_type=
record
string("\x01") fname= NULL("");
string('\x01')record_type;
if((version=='12')||(ne_version=='M13'))
begin
if(record_type=='01')
record
string('|') time= NULL("");
string('\n') date= NULL("");
end ;

else if(record_type =='02')
record
string('\x01')record_number= NULL("");
string('\x01')record_status= NULL("");
end;
end
metadata type = input_type;
Community Manager

Re: Conditional dml

Hello guy
Generally, we read the data from file and filter them on another components, like tJava/tFilterRows/tMap.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Conditional dml

Hi,
I don't want to filter out the records, instead have to change the number of fields each row carries based on the condition.
i.e the output should have multiple records, each having different columns populated.