Previous Topic: Start Timing an EventNext Topic: Set Field Data Value for User ID


STOP_EVENT Function—Stop Timing the Event

The STOP_EVENT function stops the recording of elapsed time for any generic event.

Pair this STOP_EVENT request with the START_EVENT 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_StopEvent)	Function
	MVC   MEIC_F007_Name,=CL16'eventname'		name
	MVC   MEIC_F007_Type,=CL16'eventtype'		type

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

	EXEC CICS RETURN

STOP_EVENT parameters:

eventname

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

eventtype

Specify a 16-character event type.