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 » Help w/ repeating group of fixed & variable length struc

Post new topic  Reply to topic
 Help w/ repeating group of fixed & variable length struc « View previous topic :: View next topic » 
Author Message
bradhack
PostPosted: Fri Aug 13, 2004 11:20 am    Post subject: Help w/ repeating group of fixed & variable length struc Reply with quote

Newbie

Joined: 28 May 2002
Posts: 7

I have to format a message on output consisting of the following three fields which, as a group, may repeat 0 to n times:

1. Length (4 byte field which is a calculation of the sum of the lengths of all three fields in the group)
2. Code (6 byte field which describes the field)
3. Value (Variable length field which contains the actual value)

So, for example, if I had a field code called 900010 which had a value of 63 the complete structure would look as follows (I've separated the 3 fields with spaces for readability:

0012 900010 63

The 0012 is obtained by adding the 6 byte Code + the 2 byte Value + the 4 bytes to account for the length field itself.

These 3 fields can then repeat as a group multiple times with different Codes and different Values of course:

0015020003OWNER
0018010820NEW YORK
001901042613,831.38

I've tried creating messages using both CWF and TDS physical formats, but haven't found the right combination yet. I know you can reference a field to calculate a field length, but this calculation is based on multiple fields.

I'd appreciate any suggestions. Thanks.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 13, 2004 12:37 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Is the group delimited in any way - like by a line ending in your example?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wooda
PostPosted: Mon Aug 16, 2004 7:45 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Hi bradhack,

This is very very similar to TDS Tagged Encoded Length. However in TEL the tag and the encoded length are the other way around.

I have racked my brains and I am quite confident there is currently no way you can model this message in TDS (and certainly not CWF).

I suggest you raise a requirement with IBM to expand support for TDS Tagged Encoded Length.

This leaves you the following options:
Parse this in a plugin parser/node.
Write ESQL to parse this in the BLOB domain.
Or manipulate this enough in ESQL to make it parsable in TDS.
(ie iterate through the message swaping the length and code fields around)
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 » Help w/ repeating group of fixed & variable length struc
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.