• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » How to substring data from a multivalue column?

#1 2012-04-30 06:33:10

ectl_mun
Member
Registered: 2012-04-10
Posts: 16

How to substring data from a multivalue column?

Hello All,

I need help to extract the data from a multivalue column which are in Pipe delimeter.

My files are semicolon delimiter, and i have 1 column which having multivalue is with Pipe delimeter. Example:


545990;C545990;545990;Name-1;|||N||8100|W1|1|50-01-00-00-00-00-00|;545990;
545990;C545990;545990;Name-1;|||||3114|J1|63|50-15-60-63-00-00-00|;545990;
545990;C545990;545990;Name-1;|||Yes||3860|P1|63|50-15-60-63-00-00-00|N;545990;
545990;C545990;545990;Name-1;|||No||8130|W1|71|50-15-70-71-00-00-00|545990;


I want to extract the 8100, 3114,3860, 8130  from the multivalue column. Can i scan the "|" and get the value after the 5th "|" delimeter?

Please help!!

Thanks!

Offline

#2 2012-04-30 13:30:40

walkerca
Member
Company: Bekwam, Inc.
Registered: 2011-01-12
Posts: 253
Website

Re: How to substring data from a multivalue column?

Hi,

Try tNormalize.  This blog post links to a video that shows an Excel example that can be modified for your text file.

http://bekwam.blogspot.com/2011/01/tuto … -with.html


Visit bekwam.blogspot.com for Talend topics and tutorials.  Twitter @bekwaminc for updates.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » How to substring data from a multivalue column?

Board footer

Powered by FluxBB