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 » Neon math expressions

Post new topic  Reply to topic
 Neon math expressions « View previous topic :: View next topic » 
Author Message
sebastian
PostPosted: Thu Oct 14, 2004 6:42 am    Post subject: Neon math expressions Reply with quote

Centurion

Joined: 12 Nov 2003
Posts: 110
Location: Philadelphia

Neon Formatter 2.1

Our group is having some challenges with a math expression in an output format. The structure of the message is:


Compound_format_1
Flat_format_1(mandatory, not repeating)
Compound_format_2(mandatory, repeating)
Flat_format_2(mandatory, not repeating)
Compound_format_3(mandatory, not repeating)
Problem_Flat_format_3(mandatory, not repeating)
Flat_format_4(mandatory, not repeating)
Flat_format_5(mandatory, not repeating)
Flat_format_6(mandatory, not repeating)
Flat_format_7(mandatory, not repeating)
Compound_format_4(mandatory, not repeating)
Flat_format_8(mandatory, not repeating)
Flat_format_9(optional, repeating)

The Problem_Flat_format_3 segment contains fields that source both repeating and constant segments from the input format. For the constant data, we use ACCESS PARENT INSTANCE. For the repeating data we use ACCESS USING RELATIVE INDEX for access modes. These fields produce the expected result.

We defined one field that uses an ouput control which in turn uses a collection containing a math expression, LEFT_JUSTIFY, and a length definition of 15. The math expression multiplies two operands that are both input fields in the same input repeating segment.

So for 3 occurences of an input detail message, we expect the following:

FLDA(sub1) * FLDB(sub1) = result1
FLDA(sub2) * FLDB(sub2) = result2
FLDA(sub3) * FLDB(sub3) = result3

What we have found is that when the field with the output control calculation has an input field name of 'NONE', we get the result1 3 times. When the output control calculation has an input field name of FLDA, we get the the following:

FLDA(sub1) * FLDB(sub1) = result1
FLDA(sub2) * FLDB(sub1) = bad-result
FLDA(sub3) * FLDB(sub1) = bad-result

When the output control calculation has an input field name of FLDB, we get the the following:

FLDA(sub1) * FLDB(sub1) = result1
FLDA(sub1) * FLDB(sub2) = bad-result
FLDA(sub1) * FLDB(sub3) = bad-result

It is as if the defined input field is the only variable that is allowed the multiple array reference.

Has anyone encountered something similar to this and if so how how you resolved this problem?

Any help is greatly appreciated.

Sebastian
_________________
sebastian signature
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Neon math expressions
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.