EMS FastStart Manual
Preparing the Application Configuration File
EMS FastStart Manual–133701
4-10
Example
Once the fields are initialized, information needed for each specific event must be
moved into the fields, replacing the default values. Table 4-2 shows the ATM-ACCT-
INSUF-FUNDS event generated by the ATM COBOL85 example. This shows all the
fields values after event-specific information was moved into three fields: ATM-NAME,
ATM-LOCATION, and ATM-ACCOUNT-NUM. These fields are shown in boldface
type below.
The application now calls EGEN. EGEN looks at the contents of the field-value and
compares it with the EGEN default values. Only those fields whose contents differ from
the default values are added to the event buffer. In the example above, only those fields
which are shown in bold type will be added to the event buffer. Note that if the field
value is not modified, and the default value is used, nothing is added to the event buffer.
Should this happen, you may find some variable data missing from the events you
generate.
To change the default field values, generate your application and modify the xxxxTAL
(for example, ATM1TAL for our sample) DDL file (Example 4-3
). Enter the new default
values. Then re-compile the EGEN module with the new TAL DDL and re-bind this new
ATM-HW-SUBCOMPONENT ZSPI-DDL-CHAR24 24 spaces
ATM-SERIAL-NUMBER ZSPI-DDL-INT2 2147483647
ATM-SENSE-STATUS ZSPI-DDL-INT2 2147483647
Note. For character fields such as ZSPI-DDL-CHAR8 and ZSPI-DDL-CHAR24, the default
value is 8 and 24 spaces respectively.
Table 4-2. ATM COBOL85 Example
FIELD-NAME FIELD-TYPE FIELD-VALUE
ATM-NAME ZSPI-DDL-CHAR8 OAKWEST1
ATM-LOCATION ZSPI-DDL-CHAR24 245 Oak St., Oakland
ATM-ACCOUNT-NUM ZSPI-DDL-INT2 34503933
ATM-RETRY-LIMIT ZSPI-DDL-INT 32767
ATM-HW-COMPONENT ZSPI-DDL-CHAR24 24 spaces
ATM-HW-SUBCOMPONENT ZSPI-DDL-CHAR24 24 spaces
ATM-SERIAL-NUMBER ZSPI-DDL-INT2 2147483647
ATM-SENSE-STATUS ZSPI-DDL-INT2 2147483647
Note. The term “default” is used to mean a standard value to which other values are
compared. The default value is one that is not expected so that when the user-supplied value
does not equal the default, the user-supplied value is added to the event buffer.
Table 4-1. Field Content After Call to Initialize^egen^record Procedure (page 2
of 2)
FIELD-NAME FIELD-TYPE FIELD-VALUE