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