#1 2012-04-09 19:08:37

skatpally
New member
Registered: 2011-09-16
Posts: 6

substring function

Hi Guys,
            I have a question regarding substring function. I am trying to extract first 3 characters from column.

Following is the function i am using. StringHandling.substr(DSLink3.col1,1,3). I am getting error.

Thanks for help

Offline

#2 2012-04-10 16:54:13

vgalopin
Talend team
Registered: 2009-04-15
Posts: 440
Website

Re: substring function

Hi skatpally,

You can do the following:
DSLink3.col1.substring(0,3).

In Java, the index of the first character is 0, not 1.


Vincent Galopin
US Pre-Sales Consultant
Talend US

Offline

Board footer

Powered by FluxBB