Skip to Content
author's profile photo Former Member
Former Member


Hi Experts,

i have a customer name which is of 30 charecters

i need to move my Customer name in name1 column(length: 10 char).

customer name: sachin ramesh tendulkar

It should be like:

name1: sachin

name2: ramesh

name3: tendulkar

it should not be like:

name1: sachin ram

name2: esh tendul

name3: kar



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 27, 2016 at 12:12 PM

    Hi Krishna,

    Use. word_ext(). Function

    1st parameter will be your input

    2ND parameter will position of your output

    3Rd will be delimited in your case it will be space

    Name 1 :word_ext(‘sachin ramesh tendulkar’,1,' ')

    Result: sachin

    Name 2 :word_ext(‘sachin ramesh tendulkar',2,’ ')

    Result: ramesh

    Name 3:word_ext(‘sachin ramesh tendulkar',3,’ ')




    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 28, 2016 at 02:08 PM

    Hello Krishna,

    Can you try in this way once.

    Use the below script in the script level and when it comes to mapping the fields just use substr() function like below

    if((instr('sachin ramesh tendulkar',' ',1,2)+1)>15)


    $gv_string=word_ext('sachin ramesh tendulkar',1,' ');


    For Name1 mapping level: substr($gv_string,1,length($gv_string)

    if((instr('sachin ramesh tendulkar',' ',1,2))=<15)


    $gv_name2=word_ext('sachin rameshjgkyfi tendulkar',1,' ')||' '||word_ext('sachin ramesh tendulkar',2,' ');


    For Name2 mapping level: substr($gv_name2,1,length($gv_name2)

    If you are trying to use this logic on table level i am not sure its going to work out,as we don't know is same type of data format is going come or not.

    Like examples:

    Sachinrameshtendulkar S T

    S Sachin Tendulkar Ramesh R



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.