on 10-11-2007 10:35 PM
Hi All,
I have a requirement to split the source field into two fields to pass two fields as a target eg., source field1 = '1000 PQ' target shld be field2 = '100' and field3 = 'PQ'
and another requirement is source field is '1000.00 USD' target field shloud be '1000.00'
Please let me know is there any standard function to aceive this or how can i get this. Thanks.
Kalpana
Kalpana,
Is this length of input data is fixed? I mean first 4 characters would be always number and last two character? if so then you can used substring where you can specify starting position and length.
If not then in your source value between two values i.e. 1000 and PQ there is space so than you can write an UDF to check space and take first n characters and last n characters base on space position using java.
You will find lot of java code online for this purpose...
Let us know if you do not find anything.
Hope this will help.
Nilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
you can use the following functions in the graphical mapping
source field>substring(length 14)-->target field1
source field>substring(67)-->target field2
and for second yo can use the formatNum function in the graphical mapping.
Thanks
Rinku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use substring or UDF function in the message mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.