Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Arpita,
Unfortunately the query is vague but my understanding is that you are trying to split the incoming data after "discount 29" where "discount 29" will be static and the data after that string is dynamic (may or may not exist). I assume the first part of data will be coming in the same format i.e. the length will be static.
I got the output like above after the data split in tmap using below expressions.
For data1 -> StringHandling.LEFT(row1.data,11)
For data2 -> StringHandling.RIGHT(row1.data,row1.data.length()-11)
Note:- Please handle NULL by adding additional NULL check conditions based on your need.
Warm Regards,
Nikhil Thampi
Hi Arpita,
Unfortunately the query is vague but my understanding is that you are trying to split the incoming data after "discount 29" where "discount 29" will be static and the data after that string is dynamic (may or may not exist). I assume the first part of data will be coming in the same format i.e. the length will be static.
I got the output like above after the data split in tmap using below expressions.
For data1 -> StringHandling.LEFT(row1.data,11)
For data2 -> StringHandling.RIGHT(row1.data,row1.data.length()-11)
Note:- Please handle NULL by adding additional NULL check conditions based on your need.
Warm Regards,
Nikhil Thampi