Page 1 of 1

Need to Generate below output using transformer stage.

Posted: Sun Oct 13, 2013 6:18 am
by ramakrishna459
TRACKID OFFSET EDIDATA
10 010 010 010 005 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
10 010 010 004 BBBBBBBBBBBBBBBBBBBBBB
10 010 010 010 010 005 SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
20 010 010 002 CCCCCCCCCCCCCCCCCCCC
20 010 007 ZZZZZZZZZZZZZZZZZ



O/P:

For the track id having similar trackid the offsets' should be conactenated and the EDIDATA should be concatenated.
When the Offset length reaches greater than 20 or the EDIDATA length reaches the length of 50 the 0/p should be
written to the new row.

TRACKID OFFSET EDIDATA
10 010 010 010 005 010 010 004 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBB
10 010 010 010 010 005 SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
20 010 010 002 010 007 CCCCCCCCCCCCCCCCCCCCZZZZZZZZZZZZZZZZZ

Posted: Sun Oct 13, 2013 1:36 pm
by ray.wurlod
Off you go then. You'll need some stage variables, sorted data partitioned on TRACKID, and possible use of looping within the Transformer stage (depending on how you plan to implement the 50 characters limit).

Posted: Wed Oct 16, 2013 5:22 am
by ramakrishna459
With the help of stage variables and looping and data sorted we acomplished.