EMS FastStart Manual
Testing Program and Filter
EMS FastStart Manual–133701
7-4
Using the Filter Program with a Printing Distributor
Using the Filter Program with a Printing
Distributor
This section shows how to display the event messages generated by the EMS FastStart
testing program. Please refer to the Event Management Service Manual for a detailed
explanation of how to start and configure an EMS distributor (EMSDIST).
The following command syntax starts a printing distributor that reads events from the
collector $0 and prints them to the terminal named $term31.
TACL> EMSDIST /NAME $mydist/TYPE p, COLLECTOR $0, TEXTOUT
$term31, FILTER $data.atm.atm1emfo , TIME 11:00
The filter object file $data.atm.atm1emfo is used by the printing distributor to select the
events generated by the ATM1PROG (EMS FastStart testing program) after 11:00 (the
specified time). Example 7-2 shows the screen output of the EMSDIST program.
Filtering on Specific Tokens
Each of the applications fields you define in the ACF will have a token identifier
associated with them. These tokens are created by EMS FastStart during the generation
process and are defined in the DDL file. You can then write a filter that will be used by
an EMS Distributor to print specific events. This filter could be used to verify the
existence of a specific token in your event messages or compare the value of a specific
field. The name of each of these tokens is built according to these rules:
•
Each field name you define in the ACF will have two prefixes added to them. The
TAL/TACL syntax is used to describe the token names here since this is the same
syntax used by the filter compiler language.
•
The first prefix added is “^TKN^”.
•
The second prefix added is the USER-VARIABLES-PREFIX parameter (for
example, ATM).
Example 7-2. Screen Output of the EMSDIST Program
89-11-20 14:21:14 \MTL.02,171 CUSTOMER.1.J00 000004 Program:
MYPROG of application: PAYROLL, BATCH RUN
started
89-11-20 14:21:44 \MTL.02,171 CUSTOMER.1.J00 000100 Please mount
tape (BA5277) on $TAPE1 for the PAYROLL
batch run
89-11-20 14:22:07 \MTL.02,171 CUSTOMER.1.J00 000100 Tape (BA5277)
accepted on $TAPE1, PAYROLL batch
continuing ...
89-11-20 14:38:10 \MTL.02,171 CUSTOMER.1.12345 000100 This is a
test event generated by ATM1PROG