Hello
I have read through the FAQ on the forum however have we can implement a named message handler for a particular job.
Lets say I create a message handler which has two rules.
I would now like that this message handler be used as the default handler for a specific job(instead of adding the two rules manually in the "Edit local runtime handler" option), how would I do this.
Thnx in advance
Message Handler for specific Job
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Once you have named message handler(s) - files with names ending in ".msh" in the MessageHandlers directory - you get an extra option in the dialog for handling a message, and the drop down list of named message handlers becomes available. Choose one from there.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hi,
You can do this by adding the warning (or the rule) to an existing or a new Message Handler, from the director. THere is an option called - "Add Rule to chosen Message Handler" - when selected you will get a drop down of existing named handlers. You can either chose one to add your warning, or create a new handler for your warning.
Regards
The Bird.
You can do this by adding the warning (or the rule) to an existing or a new Message Handler, from the director. THere is an option called - "Add Rule to chosen Message Handler" - when selected you will get a drop down of existing named handlers. You can either chose one to add your warning, or create a new handler for your warning.
Regards
The Bird.
Yes I do see the named message handler added.ray.wurlod wrote:Once you have named message handler(s) - files with names ending in ".msh" in the MessageHandlers directory - you get an extra option in the dialog for handling a message, and the drop down list of named message handlers becomes available. Choose one from there.
However it always seems to taking the local message handler instead of the named one.
Messages handled:
Message handler: Local
1 message(s) suppressed: TOIX000163 Sequential_File_0,0: Import complete; 2 records imported successfully, 0 rejected.
This is what I did, please let me know where I'm going wrong:
> Opened the director log for the job :J_PxExample.
> Right clicked on the following message and clicked on the "add rule to chosen message handler" ... clicked on new in the MessageHandler dialog box ... and then Add Rule ... provided the name MsgHandlerDemo.
1. Sequential_File_0,0: Import complete; 2 records imported successfully, 0 rejected.
>right clicked on the following second message and added it to the named message handler MsgHandlerDemo
> Added the following rules to a named message handler called "MsgHandlerDemo"
2.main_program: The open files limit is 2000; raising to 2147483647.
Also I added the rule
______________________
Sequential_File_0,0: Import complete; 2 records imported successfully, 0 rejected.
> to the local message handler by right clicking on the message -> add rule to message handler and then selecting "Add Rule to Local runtime handler for Job J_PxExample..."
Now how do i ensure that the handler used for handling the messages for this job is "MsgHandlerDemo" and not the local one.
Thanks in advance
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: