State

State() as Integer

or

State() as CclEPIStates

Returns a value which indicates the state of the EPI. Possible values are:
cclActive
Initialized
cclDiscon
Terminated
cclError
Error. Refer to CICS Transaction Gateway: Programming Guide.

Constants are available in the type library. Use the Visual Basic Object Browser to view them.