Previous Topic: Set User DataNext Topic: Return Codes from MEI


Get User Data

The GET_USERDATA function retrieves data values associated with an executing transaction.

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_GetUserData)   Function
	MVC   MEIC_F010_Name,=CL32'dataelementname'

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

	EXEC CICS RETURN