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 » Message Set - Help

Post new topic  Reply to topic
 Message Set - Help « View previous topic :: View next topic » 
Author Message
vadivel
PostPosted: Fri Apr 11, 2008 7:48 am    Post subject: Message Set - Help Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,

I am using WMB 5 in my project and I have flat file to be parsed. The flat file is of fixed width format.
The file organisation is kind of complex. The first two characters of every record contain either 00 or 01 which indicate the event type. Every event can have one or more table type records which have different structures.
On a High-level, the file is something like this
Event0
FileType1
FileType2
FileType3
etc
Event1
FileType4
FileType5
...

All the Event records are identified by 00 in the first two characters and have similar structure (Event0&Event1 are similar in structure)
A record can be identified as a filetype by 01 being present in the first two characters but the type of file is identified by a 3 character value in the 8th position in 01 lines.
Any pointers on how to parse these type of records?
Thanks in Advance!!!

-Vadi
Back to top
View user's profile Send private message Yahoo Messenger
kimbert
PostPosted: Fri Apr 11, 2008 7:53 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

My standard reply:
- Post an example message
- Post the message tree structure that you want the TDS parser to produce
- Include details of repeating and optional structures

Quote:
the type of file is identified by a 3 character value in the 8th position in 01 lines.
I hope that positions 1..7 can be parsed without knowledge of that 3-character value. If not, we'll have to resort to data patterns.
Back to top
View user's profile Send private message
servi
PostPosted: Mon Apr 14, 2008 12:58 am    Post subject: Reply with quote

Novice

Joined: 19 Mar 2008
Posts: 22
Location: Madrid, España

First probably you must decide which FileType you are parsing:

IF (SUBSTRING(resp FROM 8 FOR 3) =
CAST (000 AS BLOB CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Enconding) THEN
SET OutputRoot.Properties.MessageDomain = 'MRM';
SET OutputRoot.Properties.MessageSet = 'MSGSET';
SET OutputRoot.Properties.MessageType= 'MSGIDFileType1';
ELSE
... ...
SET OutputRoot.Properties.MessageDomain = 'MRM';
SET OutputRoot.Properties.MessageSet = 'MSGSET';
SET OutputRoot.Properties.MessageType= 'MSGIDFileTypeN';
END IF;
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Apr 14, 2008 3:37 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

servi: It may be possible to do what vadivel requires using TDS and the Tagged Fixed Length format. Let's wait until vadivel posts all the information before proposing a solution.
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 » Message Set - Help
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.