Standard Files

When using the UTF support, the default standard input and output files stdin, stdout, and stderr have some special processing done for them by the runtime. Since a program using UTF support contains data in UTF-8 and the standard files interact with the screen and spool files, there is a potential mismatch in data. The screen and spool file functions are provided by the operating system and thus expect EBCDIC. For stdout and stderr, the runtime will automatically convert UTF-8 data to EBCDIC. For stdin, the runtime will automatically convert the incoming EBCDIC to UTF-8 data.