Transformer Stage Functions

If you have Numerical+Characters data in the source, how will you load only Character data to the target? Which functions will you use in Transformer stage?

Questions by greek143

Showing Answers 1 - 27 of 27 Answers

Hi,
Use following function in derivation of the transformer:

convert("123456789","         ",StringName)

Please note that the second argument contains nine spaces.Here,StringName is the string for which the numerical values are to be removed.

Hence,if your string's value is "Test1234"(StringName),it will be converted to "Test".In this way,only character data will be loaded to the target.

Nikhil Anshuman

  Was this answer useful?  Yes

soum

  • Oct 3rd, 2011
 

Hi,

Use following function in derivation of the transformer:

convert("123456789","",StringName)
T12e5st --> Test (desired rlt)esu


convert("123456789"," ",StringName)
T12e5st --> T e st (space will appear in place of digits)

Thanks,
Soum

  Was this answer useful?  Yes

Guru

  • Oct 25th, 2011
 

we have so many ways to resolve it.In transformer take two links . for one link you use Num() .for ur target link enable otherwise condition.

  Was this answer useful?  Yes

take 2 output links in transformer stage for one target set
in constraint: num()=0 and in another target
set num()<>0
then in target 1 youll get all numeric values in target youll get all characters.....
try this i hope you understand

  Was this answer useful?  Yes

datastg

  • Jun 27th, 2012
 

Can use the below func Convert("0123456789","",YourString)

  Was this answer useful?  Yes

Vijay

  • Sep 1st, 2012
 

Use Isnum() function in Transformer stage it picks only numeric values.

  Was this answer useful?  Yes

Vinay Sharma

  • Oct 4th, 2012
 

use alpha function.
Exp-->alpha(123vinay567)
Ans-->vinay

i thing this is your requeriment..

  Was this answer useful?  Yes

raj

  • Nov 8th, 2012
 

Example : raje123ndh456ar

Code
  1. convert(0123456789,,raje123ndh456ar) = rajendhar


now it is converted to character string and we can load only character.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions