EMS Manual
Generating Standard Events
EMS Manual—426909-005
10-27
Task 10. Code and Test Your Event Generation
Code
assign the DDL definitions of your enumerations to these tokens so the standard
templates can display them.
4. If you defined your own enumerations with 89 enumeration clauses to tokens from
other subsystems, assign the DDL definitions of your enumerations to those tokens
so they can be incorporated into the display by templates defined by you or by
those other subsystems.
5. If you defined displays for your standard events different from those of the standard
templates, define templates for these displays:
a. Copy the standard template from EMS (defined in ZSPIDEF.SEMSTMPL) that
describes your standard event to your template file.
b. Modify the template that is by standard type to a template by event-number by
replacing the statement:
MSG: ZEMS-TKN-CONTENT-STANDARD, ZEMS-VAL-eventtype-name
with
MSG: ZEMS-TKN-EVENTNUMBER,ss-VAL-eventnumber-name
c. Modify the display of any tokens in your template. To display additional tokens,
add the tokens to the end of your template if possible. Do not delete any
tokens from the standard template.
6. If you defined your own private events, you must provide one event-number
template for each of your private events. Follow one of the standard templates in
designing the template for your private event so the display for all your event
messages looks similar to the operators. Use Step 5 to create the templates for
your private events.
7. Compile your EMS templates. Follow the established build procedure in your
company.
Task 10. Code and Test Your Event Generation
Code
Encode and send your events to an EMS collector, and test your event generation
code.
Task 10.1: Define the EMS Collector for Your Events
In general, EMS events that are for operations management (all standard events) and
EMS events intended for a large audience to the primary collector ($0); otherwise,
send your EMS events to an alternate collector. If you send events to an alternate
collector, let the operator specify the collector name.
Note. You must provide one event-number template for each standard event for which
you want to customize the display.