![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
tibemsMsgConsumer tibemsMsgConsumer,
pConsole has usage pointer.Before this call, you must set the entry to the MVS break function.
In COBOL, use this tibems_MVS_BreakFunction function address. Programs in single-threaded environments (such as COBOL) need a way to interrupt blocking receive calls (such as tibemsMsgConsumer_Receive).After registering this function in COBOL, a console stop or shut command causes the receive call to return with a status code TIBEMS_USER_INTR (54).
pConsole and pConsole-Msg have usage pointer.
When the return status code is non-zero, the function stores an error message in this location. C programs define this callback function to receive the results of MVS console commands.Some consumer application programs wait indefinitely for messages to arrive. You can use this function in conjunction with tibems_MVS_BreakFunction to arrange console input to such programs, in order to interrupt them from waiting to receive a message, so they can exit cleanly (see tibx_MVSConsole_SetConsumer() on page 532).C programs can receive console command results through a callback function. COBOL programs cannot receive console command results, but can react to the MVS stop and shut commands.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |