ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Removing leading zeros

Post new topic  Reply to topic
 Removing leading zeros « View previous topic :: View next topic » 
Author Message
brgmo
PostPosted: Wed Dec 12, 2007 6:36 am    Post subject: Removing leading zeros Reply with quote

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
View user's profile Send private message
elvis_gn
PostPosted: Wed Dec 12, 2007 8:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
brgmo
PostPosted: Wed Dec 12, 2007 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Removing leading zeros
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.