When accessing POSIX file systems in BS2000 in EBCDIC code, the following points must be borne in mind:
No measures are necessary when accessing from BS2000.
When accessing from UNIX systems, files must first be converted, e.g. by means of the POSIX command iconv (see the "POSIX Commands" [1] manual).
When accessing POSIX file systems in BS2000 in ASCII code, the following points must be borne in mind:
Access from BS2000:
Versions of CRTE onwards offer automatic conversion to EBCDIC code, albeit with the following restrictions:
The associated file system must not be tagged as “generated by POSIX”
(see “Definition of the POSIX file system” (Install POSIX subsystem)).The file must be opened by means of the fopen call.
The file must not be opened in binary mode.
The IO-CONVERSION environment variable does not exist or has the value YES.
In addition, versions of CRTE as of V2.0A offer explicit conversion by means of the ascii_to_ebcdic and ebcdic_to_ascii library functions.
No measures are necessary when accessing from UNIX systems.