Author |
Message
|
WBI_user |
Posted: Fri Aug 10, 2007 7:52 am Post subject: How to check results of Create ... Parse |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
I have a requirement to validate the incoming message against a number of message defintions (i.e. the incoming message can be one of the several definitions). My test flow is just a simple
MQINPUT --> Compute ---> MQOUTPUT
In the compute node, I am think of using the "create..parse" statement to parse the input message against my message defintion. Because I have a few message definition, I need to have multiple "cretae--parse". So if the Input message does not match the first message defintion. It will fall through to the next "create..parse" statement. I am not sure if this is the right way to do this. If it is, then I need to check the return code of the "create..parse" statement. But the info center does not say what is the return code of the "create..parse".
Any suggestion ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 10, 2007 9:01 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Maybe you can do things to allow the parser to identify the message for you, so you don't have to. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
WBI_user |
Posted: Fri Aug 10, 2007 9:25 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Hi jefflowrey, can you elaborate how I can get the parser to tell me ? Please excuse my ignorance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 10, 2007 9:49 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It depends.
If your data is XML, if you use MRM-XML then it will choose the message definition based on the the root tag.
Otherwise you can use a Message Identity. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Aug 10, 2007 11:32 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
If your data is XML, if you use MRM-XML then it will choose the message definition based on the the root tag. |
This is true. And it means that you do not need to use CREATE...PARSE to do the parsing - just leave Message Type empty in the Default page of the input node properties. |
|
Back to top |
|
 |
WBI_user |
Posted: Fri Aug 10, 2007 4:05 pm Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
These are all CWF messages described by cobol copy book. I am receiving them as BLOB and looking for a way to determine which message definition each belong to and then route it to the appropriate node for further processing. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Aug 10, 2007 4:15 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
If you have a field which can be used as a Message Identity then that might be the best approach. However, if the processing is very different for each message you might choose to keep the message set simple and use CREATE...PARSE or an RCD node on each branch/subflow. |
|
Back to top |
|
 |
|