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 » Deleting "0" in left of valor... How I Can Do ?

Post new topic  Reply to topic
 Deleting "0" in left of valor... How I Can Do ? « View previous topic :: View next topic » 
Author Message
jesieltrevisan
PostPosted: Sat Jun 10, 2006 12:18 pm    Post subject: Deleting "0" in left of valor... How I Can Do ? Reply with quote

Novice

Joined: 21 Mar 2006
Posts: 13

Hello
For exemple, i have this valor : 0000005849 in a Field on iDOC XML, from SAP.

My file out is TXT TaggedDelimited

I Need Deleting the "0" on left valor, all "0"... and get only the Valor...in this example is 5849.

I Need to know how I can do this in ESQL by WSQI 2.1 Control Center.
What's the function that i can use to do this ?

Tks's
_________________
Analista de Sistemas.
J2EE, WebSphere MQSI Skill´s
----------------------------------------------------
Brazil [<O>]
Back to top
View user's profile Send private message MSN Messenger
fjb_saper
PostPosted: Sat Jun 10, 2006 2:05 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you looked into the text functions ?
Have you thought about switching the type of the value and moving it back to a char field ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
shalabh1976
PostPosted: Sun Jun 11, 2006 10:54 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Hi,
If your field is of type CHAR then you can use:
TRIM(LEADING '0' FROM <Fieldname>)
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Deleting "0" in left of valor... How I Can Do ?
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.