Page 1 of 1

replace logic in ETL

Posted: Wed Jul 25, 2012 10:52 am
by pavan_test
I have input data coming in as below. can someone please tell me how do i replace Customer with Yamaha without changing rest of the data in the input.

input data:
Customer PIN Number


Desired outputdata:

Yamaha PIN Number

Thanks
Pavan

Posted: Wed Jul 25, 2012 10:54 am
by chulett
Search for the version of PXEReplace() posted here.

Replace ETL Logic

Posted: Wed Jul 25, 2012 2:16 pm
by pavan_test
is there any alternate approach convert and index functions?

can someone please let me know.

Thanks
pavan

Posted: Wed Jul 25, 2012 3:03 pm
by jwiles
You could use Index() and concatenate substrings together...fairly simple if you're expecting only one instance of your target in the string, but difficult if you may encounter the target multiple times and need to replace more than the first occurrence.

Regards,