Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Support for file systems in ASCII

&pagelevel(4)&pagelevel

File systems located on machines that normally use the ASCII character set instead of EBCDIC can also be mounted in the POSIX file system. To facilitate this interaction, an automatic conversion is performed for text files in the C library.

The following conditions must be satisfied for the automatic conversion to occur:

  • The file has been opened with fopen(), fdopen() or freopen() and is thus associated with a stream.

  • Mode "b" for binary must not be specified.

  • fstat() does not return the BS2000 file system bit.

  • The environment variable IO_CONVERSION has the value "YES".

The functions ascii_to_ebcdic() and ebcdic_to_ascii() are provided for cases in which no automatic conversion occurs.