NetBatch Management Programming Manual
Event Messages
NetBatch Management Programming Manual—522462-003
6-4
Step 1: Decide on Scheduler Event Messages
After writing and compiling the filter, load its compiled object file into a distributor such
as the consumer distributor by using the EMS program EMSDIST. The filter then tests
the value of tokens in event messages and filters the specified messages. You can
write a filter to select scheduler event messages based on any token in the message.
This procedure describes how to write a filter to select specific NetBatch event
messages, including the steps to compile the filter object file and load the file into a
distributor. For more information, see the EMS Manual.
Step 1: Decide on Scheduler Event Messages
Decide which scheduler event messages you want the filter to select:
Decision:Select all event messages from all schedulers.
Step 2: Create EDIT Source File
Create an EDIT source file and enter the filter specifications using the EMF filter
language:
> EDIT FILTSRC !
CURRENT FILE IS $NB.TRASH.FILTSRC
∗
ADD
1 FILTER ZBATMSG;
2 BEGIN
3 IF ZSPI^TKN^SSID = SSID(ZBAT^VAL^EXTERNAL^SSID)
THEN
4 PASS
5 ELSE
6 FAIL;
7 END;
8 //
∗
EXIT
>
Step 3: Load TACL Definitions Into Memory
Load into memory from these files the standard TACL definitions for SPI, EMS, and
scheduler tokens:
•
$vol.ZSPIDEF.ZSPITACL
•
$vol.ZSPIDEF.ZEMSTACL
•
$vol.ZSPIDEF.ZBATTACL
> #PUSH X
> #LOAD /KEEP 1, LOADED X/ $vol.ZSPIDEF.ZBATTACL
> #LOAD /KEEP 1, LOADED X/ $vol.ZSPIDEF.ZEMSTACL
> #LOAD /KEEP 1, LOADED X/ $vol.ZSPIDEF.ZSPITACL
> #POP X
>