Posted: Wed Nov 21, 2007 5:11 am
Using the appropriate functions in a Modify stage or a Transformer stage.
ray.wurlod wrote:Using the appropriate functions in a Modify stage or a Transformer stage. ...
lokesh_vee wrote:If you want to execute the substring operation through transformer then below is an example what you can refer.
Input1 - column name
expression in the transformer stage expression editor.
Input1[1,3]
note: 1 is the starting position and 3 is the string length.
if your Input1 data is "SUBSTRING". After passing through the transformer it will result as "SUB".
Hope this helps......
Simply use Input1[1,3]:' ':Input1[4,LEN(Input1)-3]abhay10 wrote:lokesh_vee wrote:If you want to execute the substring operation through transformer then below is an example what you can refer.
Input1 - column name
expression in the transformer stage expression editor.
Input1[1,3]
note: 1 is the starting position and 3 is the string length.
if your Input1 data is "SUBSTRING". After passing through the transformer it will result as "SUB".
Hope this helps......
i want it as SUB STRING(ie space in between) and not only SUB
That's if your input data is to be ALWAYS split with 3 characters in the first word followed by a space and rest of the characters.NickH wrote: Simply use Input1[1,3]:' ':Input1[4,LEN(Input1)-3]
The criteria was implied that the split happened between the 3rd and 4th character.gateleys wrote:That's if your input data is to be ALWAYS split with 3 characters in the first word followed by a space and rest of the characters.NickH wrote: Simply use Input1[1,3]:' ':Input1[4,LEN(Input1)-3]
What is your criteria for splitting a word into 2?
Me too... like this one -NickH wrote: I prefer simple as its easier to maintain in the long run
Code: Select all
Fmt(Arg1,"L#3 #":Len(Arg1)-3)
DSguru2B wrote:Guys, lets not carried away, both EREPLACE() and FMT() do not exist in px. Lets wait for the OP to come back with a rule.