hi,
I have a varchar field of lenght 11 and I need to find the characters from 6th to 9th position, in transformer stage.Plz help.
Regards
Arnab.
Simple query
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
In the Modify Stage you use the substring function, in the Transformer stage you treat the field as an array and simply used inputfieldname[6,4] as shown by Arnab. You can also check the length of the field first if it's not always 11 characters.
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: