Page 1 of 1

Message Handler for specific Job

Posted: Fri Nov 24, 2006 11:32 pm
by dwblore
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

Posted: Sat Nov 25, 2006 1:05 pm
by ray.wurlod
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.

Posted: Sat Nov 25, 2006 1:09 pm
by thebird
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.

Posted: Sun Nov 26, 2006 10:40 am
by dwblore
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.
Yes I do see the named message handler added.

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

Posted: Sun Nov 26, 2006 10:45 am
by dwblore
Hello "TheBird"

We didnt have any success at this seemingly simple task of using a named message handler for a particular job. have included the steps we followed ... where could we be going wrong ?

thanks in advance

Posted: Sun Nov 26, 2006 5:45 pm
by ray.wurlod
What - precisely - did you attempt?

Which of the three option buttons did you select?

Posted: Sun Nov 26, 2006 6:23 pm
by dwblore
ray.wurlod wrote:What - precisely - did you attempt?

Which of the three option buttons did you select?
Hello

We selected the "Add rule to Chosen Message Handler" option to create the new message handler and add the rule to it.

Posted: Sun Nov 26, 2006 7:30 pm
by ray.wurlod
View that message handler file (in the MessageHandlers directory) to see whether the particular event ID is stored therein as you requested.