Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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;
Labels (2)
2 Replies
Anonymous
Not applicable
Author

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

shong
Anonymous
Not applicable
Author

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.