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 » eSQL

Post new topic  Reply to topic
 eSQL « View previous topic :: View next topic » 
Author Message
madi
PostPosted: Fri Feb 24, 2006 7:58 am    Post subject: eSQL Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Hi All

I am using the following code to do some transformation.

Code:
WHILE I <= 100 DO
         SET cur = 'BAR_CODE_PRIMARY_FLAG_' || CAST(I as CHAR);
         SET text = 'BAR_CODE_NUMBER_' || CAST(I AS CHAR);
         IF ism."cur" = 'Y' THEN
            SET product.UPC = FIELDVALUE(ism."text");
            SET I = 101;
         ELSE SET I = I + 1;   END IF;
      END WHILE;

in the IF statement when i say ism."cur", I want it to point ism.BAR_CODE_PRIMARY_FLAG_I. Is it doing that?? I also tried without the "".

I am not getting anything in the output message. If I am doing it wrong plz correct me.

ALso is there a way to BREAK out of the loop instead of setting I = 101!!

plz help
madi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 24, 2006 8:04 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

No, you can't interpret text as message tree references that way.

There is an operator {} that will do that.

PLEASE read the documentation.

It will also tell you about loop structures, including how to break out of them.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Fri Feb 24, 2006 8:04 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
ALso is there a way to BREAK out of the loop instead of setting I = 101!!

LEAVE
Back to top
View user's profile Send private message
madi
PostPosted: Fri Feb 24, 2006 8:11 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Thanks guys.

The help in the broker has i think a really bad serach engine. I tried for like 1/2 hr to find this but couldnt. Part of the problem is also that I dont know what keywords to use for a particular thing.

--madi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 24, 2006 8:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

When I have questions about ESQL, I usually start in the Reference section on ESQL.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak04860_.htm

But you should take some time to re-read the ESQL Overview section.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak00990_.htm

There are equivalent sections for this in the Broker v5 documentation, although the ESQL Overview is in the Concepts section.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Fri Feb 24, 2006 8:26 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
the problem is also that I dont know what keywords to use for a particular thing.

I searched for 'while loop', and found the LEAVE statement.
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 » eSQL
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.