Author |
Message
|
qrfc |
Posted: Fri Jun 14, 2002 12:52 am Post subject: MQSI need |
|
|
Novice
Joined: 29 May 2002 Posts: 19 Location: Paris, France
|
Hello,
I have a message which come from an IMS transaction and there is 4 bytes ( first 4 bytes of the message ) that I want to erase. I'm a newbie in MQSI, can someone have an example of a flow to do this ?
I really apreciate some help since I'll catch a training course.
Cyril |
|
Back to top |
|
 |
hopfe_de |
Posted: Fri Jun 14, 2002 1:13 am Post subject: Re: MQSI need |
|
|
 Acolyte
Joined: 03 Mar 2002 Posts: 58 Location: Frankfurt, Germany
|
qrfc wrote: |
I have a message which come from an IMS transaction and there is 4 bytes ( first 4 bytes of the message ) that I want to erase. |
first you have do define the input message, and the output message.
then you only need to create a compute node in your message-flow.
there you can copy all needed information from the input to the output message. |
|
Back to top |
|
 |
CodeCraft |
Posted: Fri Jun 14, 2002 5:13 am Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
If you need a more specific response than this, you'll need to most more detail about the transaction, the layout, and what part you need to get rid of, versus what part you need to keep. |
|
Back to top |
|
 |
kirani |
Posted: Fri Jun 14, 2002 9:37 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Cyril,
In your MQInput node read your input message as BLOB. Connect a Compute node to the out terminal of MQInput node. Setup your compute node to copy message headers only. Use following ESQL to get rid of first 4 bytes of the message body.
Code: |
SET OutputRoot."BLOB"."BLOB" = SUBSTRING(InputRoot."BLOB"."BLOB" FROM 5); |
Now you will get modified output message (first 4 bytes truncated) on the out terminal of compute node. Add further nodes to do your processing on this message. _________________ 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 |
|
 |
CodeCraft |
Posted: Sun Jun 16, 2002 1:48 pm Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
Another way often used to do this is to simple define a CWF message with a four character throw away field at the start.
Depends on how and when you wish to parse the remainder of the message, but, since it's originating on IMS it's likely a CWF message definition may be required at some point. |
|
Back to top |
|
 |
qrfc |
Posted: Sun Jun 16, 2002 10:55 pm Post subject: |
|
|
Novice
Joined: 29 May 2002 Posts: 19 Location: Paris, France
|
Very Very Very thanks.
It works well and it's ok to deploy on our application.
I Understood now a little more of MQSI .
Cyril |
|
Back to top |
|
 |
|