Previous Topic: Stop Timing a File or Database RequestNext Topic: STOP_EVENT Function—Stop Timing the Event


Start Timing an Event

The START_EVENT function starts the recording of elapsed time for any generic event.

Pair the start event MEI request with the request to stop the timing of the event.

Use the following CICS command level program example to code this function:

....+....1....+....2....+....3....+....4....+....5....+....6||7..
DFHEISTG 	   DSECT ,
MEIC		   GSVCMEI GEN_COMMAREA,DSECT=NO

module   DFHEIENT

	MVC   MEIC_Function,=AL4(MEIC_StartEvent)	Function
	MVC   MEIC_F006_Name,=CL16'eventname'		name
	MVC   MEIC_F006_Type,=CL16'eventtype'		type

	EXEC CICS LINK PROGRAM('GSVCMEI')			  X
	     COMMAREA(MEIC)					  X
	     LENGTH(=AL2(MEIC_L))

	EXEC CICS RETURN

START_EVENT parameters:

eventname

Specify a 16-character event name. The event name must be the same as the event name used in the STOP_EVENT function call corresponding to the START_EVENT function call.

eventtype

Specify a 16-character event type.