The calls we present on the following pages are implemented only on IBM mainframe platforms.Set code pages for string conversion on EBCDIC platforms (when non-default code pages are required).tibems_status tibems_SetCodePages(
Set this code page as the native (EBCDIC) character encoding for the host computer. String ConversionEMS software uses the operating system’s iconv() call to automatically convert strings within messages. Conversion occurs only as needed:
● Programs running in EBCDIC environments represent all strings using an EBCDIC code page (called the host code page). Before sending a message, the EMS client library converts its strings to an ASCII or UTF-8 character set (the network code page).
● Conversely, when a message arrives from the network, the EMS client library converts its strings to the EBCDIC host code page before presenting the message to the program.Call this function when the system code pages differ from the EMS default code pages (see the table of Default Code Pages). Throughout an enterprise, all sending and receiving programs must use the same code pages.Both arguments are string names of code pages. To determine valid code page names for your operating system, see documentation from the operating system vendor.Programs may call this function at most once. The call must precede the first call to any message function, and the arrival of the first message from the network.Default Code PagesTo use a default code page, programs may supply NULL for either parameter. Using the default code pages in both parameter positions has the same effect as not calling this function at all.
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 531).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.