EMS FastStart Manual
Building Your Application for Event Generation
EMS FastStart Manual–133701
6-13
Application Modifications
however, it is likely that a value of 4 might be passed to the field-value. Therefore, 4
would not be a wise choice as a default value for that field type.
Application Modifications
In order for EGEN to work with your application, certain application modifications must
be made. These modifications are grouped into three parts: global program
modifications, event-specific modifications, and compilation. Figure 6-1 shows these
phases.
Example 6-7. EGEN Default Values
!--------------------------------------------------------------------
!
! Constants used by Egen to define the default values of a field
!
LITERAL EMSFS^DEFAULT^INT = 32767;
LITERAL EMSFS^DEFAULT^INT2 = 2147483647D;
LITERAL EMSFS^DEFAULT^INT4 = 9223372036854775807F;
LITERAL EMSFS^DEFAULT^UINT = %177777;
LITERAL EMSFS^DEFAULT^ENUM = 32767;
LITERAL EMSFS^DEFAULT^TRANSID = 9223372036854775807F;
LITERAL EMSFS^DEFAULT^TMESTAMP = 9223372036854775807F;
Figure 6-1. Application Modification Phases
Add Search Directive
Global Program
Modifications
Event Specific
Modifications
Add New Variables
Specify Event Type
Specify Event Subject
Pass Record
Structure to EGEN
Event Handling
and Return Codes
Insert COPY Statement
Compilation
Compile Application
Define
Runtime Parameters
Run Application
006