z/OS MVS Programming: Callable Services for High-Level Languages
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example

z/OS MVS Programming: Callable Services for High-Level Languages
SA23-1377-02

In the C code example, the caller issues a call to retrieve any outstanding event data, waiting forever until an event occurs.
HWI_DIAGAREA_TYPE DiagArea;
HWI_DELIVERYTOKEN_TYPE DeliveryToken;
char *Buffer[HWIUSS_MAX_GETBUFFER_SIZE];
int BufSize = HWIUSS_MAX_GETBUFFER_SIZE;
int Timeout = HWIUSS_TIMEOUT_INFINITE;
int BytesReturned;
int localRC;

localRC = HWIGetEvent(&DiagArea, DeliveryToken, &Buffer, BufSize, 
                      Timeout, &BytesReturned)

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014