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 » All elements delimited ,some elements fixed lent & other

Post new topic  Reply to topic
 All elements delimited ,some elements fixed lent & other « View previous topic :: View next topic » 
Author Message
itmen2k
PostPosted: Fri Feb 28, 2003 10:39 am    Post subject: All elements delimited ,some elements fixed lent & other Reply with quote

Newbie

Joined: 16 Sep 2002
Posts: 5

I need to develop an MRM MessageSet that should accept

All elements delimited
Some of the elements I need to specify length
Some elements I can't specify because It may shrink and grows.
I tried this in MRM with
Order set, All Elements delimited and with lenght.

Every things works fine but it is ignoring the length specified on each element. I tried to pad with SPACE or '0'. MQSI ignore this.

---------------
INSTID002,CUSIP,20011117093047,,USD,1111,BID,01234.01234,2345.2345,,1234.1234
INSTID003,CUSIP,20011217093047,,USD,1111,BID,0345.0345,2345.2345
---------------

In the above output, before USD ,, it is suppose to pad 5 space.

Is it possible to do this in MRM?
Should I use NEON for this?
Can some help me.
Back to top
View user's profile Send private message Yahoo Messenger
kirani
PostPosted: Sun Mar 02, 2003 8:54 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Try using a combination of All Elements Delimited and Variable Elements Delimited.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
itmen2k
PostPosted: Tue Mar 04, 2003 12:07 pm    Post subject: Dosen't work. Reply with quote

Newbie

Joined: 16 Sep 2002
Posts: 5

kirani wrote:
Try using a combination of All Elements Delimited and Variable Elements Delimited.



I tried, this time its ignoring the commas(delimiter) but it took length.
All elemnts delimited
INSTID001,CUSIP,20011217093047,,USD,1111,BID,01234.01234,2345.2345,1234.1234

Variable Length elemnts delimited
INSTID001 CUSIP 20011217093047 USD1111BID012
34.0123400000000002345.23450000000000001234.1234000000000000

Is there any other ways?
Back to top
View user's profile Send private message Yahoo Messenger
kirani
PostPosted: Tue Mar 04, 2003 9:25 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

I know I have done this before, but I don't remember it right now.
I will get back to you on this one.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
itmen2k
PostPosted: Thu Mar 06, 2003 8:29 am    Post subject: Reply with quote

Newbie

Joined: 16 Sep 2002
Posts: 5

kirani wrote:
I know I have done this before, but I don't remember it right now.
I will get back to you on this one.



PLEASE ITS VERY INDEED.




Thx in adv.
Back to top
View user's profile Send private message Yahoo Messenger
kirani
PostPosted: Thu Mar 06, 2003 6:33 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Here you go .... Let's say you have 5 elements.
F1,F2,F3,F4,F5
Here,
F4 and F5 have fixed length and , is your delimiter

First, create a compound type LEN_FIELD_TYPE and set following properties,
Type Composition: Ordered Set
Type Content: Closed

TDS Properties:
Data Element Separation: Variable Length Elements Delimited
Delimiter: ,

Add F4 and F5 to this compound type and set element level properties (length, etc).

Create an element of LEN_FIELD_TYPE, let's call it LEN_FIELD in our example.

Now create another compound type FIELD_TYPE.
Type Composition: Ordered Set
Type Content: Closed

TDS Properties:
Data Element Separation: All Elements Delimited
Delimiter: ,

Add F1, F2, F3 and LEN_FIELD into this compound type and then reorder them.

Create a messsage of of this type (FIELD_TYPE), write some ESQL code to assign value to these elements. If you don't get , in between then try setting Group Terminator property.

This should give you desired output.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

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 » All elements delimited ,some elements fixed lent & other
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.