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 » unexpected output

Post new topic  Reply to topic
 unexpected output « View previous topic :: View next topic » 
Author Message
dipankar
PostPosted: Mon Apr 25, 2005 3:01 am    Post subject: unexpected output Reply with quote

Disciple

Joined: 03 Feb 2005
Posts: 171

Please see the following code-
IF ' ' = '' THEN
SET OutputRoot.XML.Empname = 'dipu';
ELSE
SET OutputRoot.XML.Empname = 'rajesh';
END IF;
I think it should return 'rajesh' as Empname in output.

But I get the reverse i.e.
<Empname>dipu</Empname>

Can anyone explain this?
Back to top
View user's profile Send private message
PGoodhart
PostPosted: Mon Apr 25, 2005 3:57 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2004
Posts: 278
Location: Harrisburg PA

sorry
_________________
Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin


Last edited by PGoodhart on Mon Apr 25, 2005 4:09 am; edited 1 time in total
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Apr 25, 2005 4:06 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

In ESQL the expression 'FRED' = 'FRED ' evaluates to TRUE, as trailing blanks are not treated as significant for comparison purposes.


Therefore, you are getting the correct answer.
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
dipankar
PostPosted: Mon Apr 25, 2005 4:35 am    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2005
Posts: 171

Hi mgk,
you are absolutely right. I got your point.
Leading blanks are significant for comparison, not trailing blanks.

Thank you very much for your reply. I got some confusion which is now removed after getting your reply.
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 » unexpected output
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.