Page 1 of 1
Find String
Posted: Wed Jul 02, 2008 11:40 am
by ppavani_km
I have the input coloumn data as 24100.500,I need to change this coloumn as 24100 i.e i need to get only the characters that are before . symbol.can any body tell me what string function do we need use to get this.
Posted: Wed Jul 02, 2008 1:20 pm
by Minhajuddin
The 'Field' function should be able to do this. I don't remember the syntax, But it has the delimiter, the field number and the input string as its arguments.
Field(ip.string,'.',1)
Posted: Wed Jul 02, 2008 1:34 pm
by rameshrr3
You can also use the
Function. you may need to handle the possibility of nulls in input field.
You can keep the output column as data type Integer.
You can also use a modify stage with conversion specification using
Re: Find String
Posted: Thu Jul 03, 2008 11:18 am
by ppavani_km
Thanks Minhajuddin it is working.
ppavani_km wrote:I have the input coloumn data as 24100.500,I need to change this coloumn as 24100 i.e i need to get only the characters that are before . symbol.can any body tell me what string function do we need use to get this.