Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

LEARNING SUTRAS

Sep. 20

Iterate each row as per requirement using TALEND

In Talend, We can iterate same row ‘N’ number of times as per our requirement.
Below is the sample business use case:

Source:

ID NAME Count
100 A 4
200 B 2
300 C 5

Target:

ID Name
100 A
100 A
100 A
100 A
200 B
200 B
300 C
300 C
300 C
300 C
300 C

As per the Count column in the table, I am iterating the ID and Name Columns.
Example: For ID 100, count is 4, so the target will contain 4 rows for ID 100.

Find the complete Job below-

Job

LEARNING SUTRAS | www.learningsutras.net


LEARNING SUTRAS
Sep. 20

TFILEINPUTDELIMIT

Text file as source

TFLOWTOITERATE

To iterate each row

LEARNING SUTRAS | www.learningsutras.net


LEARNING SUTRAS
Sep. 20

TJAVAFLEX

Looping the each row as per count details

LEARNING SUTRAS | www.learningsutras.net

You might also like