OSI/MHS Management Programming Manual
Examples
OSI/MHS Management Programming Manual—424824-001
C-28
3. Compile the EMS Template Source
3. Compile the EMS Template Source
You compile the EMS template source using the template compiler, TEMPL, as follows:
templ/in xtmpl/otmpl
This command creates an EMS object template file. The compiled file is input to the
next step.
4. Create EMS Template File
You can create a complete EMS template file that includes all templates of any
subsystem you want to display, using an event distributor.
The following is an example of a file that shows how to combine multiple templates into
a single file. This file adds only EMS, CMK, MHS, and replaces the accounting events.
You can add any other templates from other subsystems. The program TEMPLI creates
two files—one for resident templates and one for nonresident templates. The event
distributor uses the nonresident template file.
purge nres
purge res
#set #inlineprefix +
templi/inline/ res,nres
+ file $system.ztempl.zemstmpl
+ file $system.ztempl.zcmktmpl
+ file $system.ztempl.zmhstmpl
+ file otmpl
+ exit
5. Start EMS Printing Distributor
The final step is to start an EMS printing distributor that uses the nonresident template
file.
The following is a TACL macro file that uses a DEFINE for the EMS templates and a
basic filter to select all MHS events. You need to specify a date as a parameter.
?tacl macro
==
== This starts a EMSDIST process from the collector and
== uses a filter to select on MHS events.
==
delete define =_ems_templates
add define =_ems_templates , file nres
emsdist/name/collect $0, type printing, time %*%, &
textout [#myterm], &
filter fltrmhso
You can replace the EMS collector $0 with the name of the alternate EMS collector, if
required.
Note. The complete set of EMS templates released with OSI/MHS are included before the
newly created templates. This ensures that the new templates replace the skeleton templates
that exist in ZMHSTMPL.