__ae_thread_setmode() — set character mode: ASCII or EBCDIC
Standards
Standards/Extensions | C or C++ | Dependencies |
---|---|---|
Language Environment | both | z/OS V1R2 or later |
Syntax
#include <ctype.h>
void __ae_thread_setmode(int aemode);
General description
The __ae_thread_setmode() function sets the current thread's character
mode to ASCII or EBCDIC based on the value of the argument aemode:
- __AE_ASCII_MODE - set thread character mode to ASCII
- __AE_EBCDIC_MODE - set thread character mode to EBCDIC
If the value for aemode is other than the values shown above, the thread's ASCII/EBCDIC mode will remain unchanged.
The TCP/IP resolver is reinitialized, if already initialized, in the new character mode. This function or __ae_thread_swapmode() must be used before and after calls between EBCDIC and ASCII portions of an application.
Return values
If successful, __ae_thread_setmode() changes the character mode.
If unsuccessful, __ae_thread_setmode() will terminate with either message EDC6254 or EDC6255.
There are no documented errnos for this function.