EMS FastStart Manual

Building Your Application for Event Generation
EMS FastStart Manual133701
6-21
Define Run-time Parameters
Using TACL to Set up and Change DEFINEs
To add the DEFINEs to your application, use the following TACL macro. Example 6-16
shows how to add DEFINE values for =_EMS_COLLECTOR and
=_EGEN_ADD_EVENT_TEXT.
Example 6-16. TACL Macro File
==
==
?TACL MACRO
==
#OUTPUT Adding the =_EMS_COLLECTOR define.
==
==
== The define =_EMS_COLLECTOR is used to specify the location of the
== collector to EGEN. (The default collector is $0). If a filename
== is entered which has a file code of 843 (EMS event log files,
== type) EGEN will write formatted event messages to that file.
== As an aid in testing the functionality of an application using
== EGEN, those messages can be printed from this file by using a
== standard EMS distributor (EMSDIST).
==
SET DEFMODE ON
SET DEFINE CLASS MAP
SET DEFINE FILE $0
ADD DEFINE =_EMS_COLLECTOR
#OUTPUT
INFO DEFINE (=_EMS_COLLECTOR)
#OUTPUT Adding the =_EGEN_ADD_EVENT_TEXT define.
==
==
== The define =_EGEN_ADD_EVENT_TEXT is used to specify that EGEN
== should add the EVENT-TEXT field to the event buffer. The
== following values are valid: $YES and $NO.
==
SET DEFINE CLASS MAP
SET DEFINE FILE $YES
ADD DEFINE =_EGEN_ADD_EVENT_TEXT
#OUTPUT
INFO DEFINE (=_EGEN_ADD_EVENT_TEXT)
#OUTPUT
#OUTPUT Starting $DATA.ATM.ATM1PROG.
#OUTPUT
RUN $DATA.ATM.ATM1PROG