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;
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.