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 » Issue with Pattern Matching in Message set

Post new topic  Reply to topic
 Issue with Pattern Matching in Message set « View previous topic :: View next topic » 
Author Message
mahesh2069
PostPosted: Fri May 16, 2014 3:37 am    Post subject: Issue with Pattern Matching in Message set Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi All,

I have a message like bellow
Code:

0092370339Oab 123 erff
0092370339Pbn 786 rteg
0092370339Pbn 786 rteg
0093376039Skl 879 retx
0092370339Oab 123 erff
0092370339Pbn 786 rteg
0092370339Pbn 786 rteg



In one O_P_S_RECORD message , conatin first type as O-type ,1 to many occurence of P-type, 0 to many occurence of S-type message are possible to come.

This O_P_S_RECORD message will be repeated.

O-type record 11 th element is O,
P-type record 11 th element is P,
S-type record 11th element is S

My idea is using data pattern we can find the which type of message either
O-type , P-type or S-type.

My problem is pattern matching Regular Expression
Can you help me to suggest the Regular expression to know 11th character is O,P or S.

I tried with expression [\d{10}+S{1}] but this is not working.Please help me to resolve this issue.
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri May 16, 2014 4:12 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I assume you are on v7? Otherwise, DFDL would be a much easier route to a solution.
_________________
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
kimbert
PostPosted: Fri May 16, 2014 4:23 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Is this problem the same as this? http://www.mqseries.net/phpBB2/viewtopic.php?t=67404
_________________
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
mahesh2069
PostPosted: Fri May 16, 2014 4:55 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi kimbert,
Yes Kimbert, I want to create message set using pattern matching.So I want to know 11th Character ,So can you help me to suggest valid Regular Expression.
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
mahesh2069
PostPosted: Fri May 16, 2014 4:57 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi kimbert,

I am using IIB9.Using data pattern to find the which type of message is recommend???
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri May 16, 2014 5:51 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please do not double-post. It makes it hard for future readers to understand and benefit from the advice given.

If you are using IIB v9 then why are you not using DFDL for this?
_________________
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 » Issue with Pattern Matching in Message set
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.