replace logic in ETL

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

replace logic in ETL

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Search for the version of PXEReplace() posted here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

Replace ETL Logic

Post by pavan_test »

is there any alternate approach convert and index functions?

can someone please let me know.

Thanks
pavan
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post 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,
- james wiles


All generalizations are false, including this one - Mark Twain.
Post Reply