|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Removing leading zeros |
« View previous topic :: View next topic » |
Author |
Message
|
brgmo |
Posted: Wed Dec 12, 2007 6:36 am Post subject: Removing leading zeros |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
Hi All,
I have to remove leading zeros from the incoming value. So,if the incoming integer is 00978727823, the new value should be 978727823. So,zeros should be removed. I searched for an esql function,but couldn't find. Can someone suggest me as how to do this.
Regards
brgmo. |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Dec 12, 2007 8:04 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi brgmo,
If you are sure the value is only numbers, do a cast to int...that should ignore the zeros i guess...
Regards. |
|
Back to top |
|
 |
brgmo |
Posted: Wed Dec 12, 2007 8:14 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
yes,that was my first guess.but a more way is use the trim function with LEADING as one of the arguments to remove the leading 0's or any other character.
Regards
brgmo. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|