Previous Topic: Record Non CICS Program UsageNext Topic: Stop Timing a File or Database Request


Start Timing a File or Database Request

Many CICS transactions make file or database requests that are not performed using CICS functions.

The start clock function request does the following:

Pair this start clock MEI request with the stop clock request to stop the timing of the request.

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_StartClock)	Function
	MVC   MEIC_F003_Request,=AL4(MEIC_F003_Read)	Request
	MVC   MEIC_F003_File,=CL08'filename'		File name

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

	EXEC CICS RETURN