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 » FIXED LENGTH MESSAGE WITHOUT TAG

Post new topic  Reply to topic
 FIXED LENGTH MESSAGE WITHOUT TAG « View previous topic :: View next topic » 
Author Message
mb8_learner
PostPosted: Mon Jul 22, 2013 10:58 pm    Post subject: FIXED LENGTH MESSAGE WITHOUT TAG Reply with quote

Novice

Joined: 28 May 2013
Posts: 22

I want to parse a fixed length mesage with mrm messageset.

Message will have body(1...n) and trailer(1..1). Last record is the trailer. Record delimeter is CRLF. I tried creating messageset but it is taking all the records as body.

Message Structure
Body (2 fields)
Name String 3 charactes
Class String 2 characters
Trailer( 2 fields)
Grade String 1 charactes
Result String 4 characters

EG Input:
ABIMA
ANUBA
CPASS
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jul 22, 2013 11:09 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

There are LOTS of very similar requests here. Why don't you take a look at them and try a few things out. You will learn a lot more that way.

As you are using MRM, I take it that you are using a version pre 8.0.0.0.

for 8.0.0.0 and later it is recommended that you use DFDL for this type of work.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jul 23, 2013 12:58 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Your user name would suggest that you are using v8. In which case, DFDL is the best option.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
mb8_learner
PostPosted: Tue Jul 23, 2013 7:16 pm    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 22

I have tried in MRM and DFDL but its not taking the last record as Trailer. I need to create Messageset in MRM its my requirement
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Jul 23, 2013 9:29 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

mb8_learner wrote:
I need to create Messageset in MRM its my requirement


I beg to differ here.

Your requirement is to produce a model that will allow you to parse bitstream against it to produce a message tree OR to parse a message tree to produce a bitstream.

The OLD (pre V8 ) method was to use a message set. Whilst you can still do that, these days the recommended method is to create a DFDL model and use that instead.

Perhaps whoever gave you this assignment should attend the V8 training so that they can find out all about the nifty new things that people like Steve Hanson and Kimbert have been working on and put into the product?

DFDL is really the way forward.

I'd like to refer the OP to a thread in this forum titled, 'And the Requirement is'.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.


Last edited by smdavies99 on Tue Jul 23, 2013 10:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
dogorsy
PostPosted: Tue Jul 23, 2013 9:47 pm    Post subject: Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

I agree 100% with smdavies99. I have used DFDL in several customers, it is a lot easier and more powerful than MRM. If you cannot make it work, you are probably doing something wrong.
By the way, on the subject of DFDL, when are we going to get Input and OutputValueCalc ?
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jul 24, 2013 12:25 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I have tried in MRM and DFDL but its not taking the last record as Trailer.

- did you use the Test Parse facility to test your DFDL model?
- did you look at the DFDL Trace when trying to make your DFDL model work?

If you provide the following information:
- an example message ( simplify it if necessary )
- the DFDL xsd that you tried
- the DFDL trace that was produced by the parser
...then I can help you to get the model right.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 » FIXED LENGTH MESSAGE WITHOUT TAG
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.