Split String based on the char length

Four Stars

Split String based on the char length

Hi,
My target system is having the character limitation at the attribute level and if the value is reaching the limitation then we need to populate the rest of the value in other field and it should be complete.

For Ex:-

Input String:- abc@gmail.com;acf@gmail.com;nhju@gmail.com;123@gmail.com;989@gmail.com;asdads@gmail.com
Output / Target attribute Email can accommodate only 30 chars, so in this example Email can hold "abc@gmail.com;acf@gmail.com;n" and we shouldn't be leaving the half email, so Email target attribute should be having only "abc@gmail.com;acf@gmail.com;" and the remaining value in the other field i.e CcEmail.
Could you please help me to achieve this.

Moderator

Re: Split String based on the char length

Hi,
Here is a TalendHelpCenter:tSplitRow which is used to split one input row into several output rows. Could you please take a look at this component to see if it is what you are looking for?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

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 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog