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.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download