You can make the CICS_EpiGetEvent call in a polling mode by specifying CICS_EPI_NOWAIT for the Wait parameter.
If no event is waiting to be collected an error code is immediately returned. Use this mechanism in a single-user single-threaded environment, where the application might alternately poll the keyboard for user activity and poll the EPI for event activity. This mechanism is not recommended.