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 » I need some help with the syntax for a CARDINALITY array

Post new topic  Reply to topic Goto page Previous  1, 2
 I need some help with the syntax for a CARDINALITY array « View previous topic :: View next topic » 
Author Message
jrsetters
PostPosted: Thu Feb 28, 2013 8:22 am    Post subject: Reply with quote

Acolyte

Joined: 24 Aug 2011
Posts: 72
Location: Cincinnati, OH

adubya wrote:
Cool.

Lots of our production flows have "unresolvable field reference" warnings


I learn something new every year.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Thu Feb 28, 2013 7:11 pm    Post subject: Re: I need some help with the syntax for a CARDINALITY array Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

mqjeff wrote:
You should never write your own code that uses CARDINALITY unless you actually need to know the literal count and use that as a specific individual value.

You should always write any kind of loop in ESQL using a reference variable and MOVE and LASTMOVE to confirm you should continue iterating.

It's an immense improvement in performance, and is the recommended practice.

Maybe that's overstated a bit. Sometimes, the performance improvement is not all that immense.

The often overlooked FOR statement may be better suited for iterating through an array; the reference variable, MOVE, and LASTMOVE are built-in. (Although the "correlation_name AS field_reference" syntax seems a bit backward, compared to how "AS" works elsewhere.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » I need some help with the syntax for a CARDINALITY array
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.