End of line (EOL) characters are dictated by underlying OS file system. For example: Linux/Unix platforms use a LF(x0a) to distinguish EOL where as Windows uses CRLF(x0d0a). Since each OS file system may support EOL characters/delimiters other then what the initiating system supports, XCOM removes the EOL characters before sending the data. It is up to the receiving platform to add the EOL characters it supports when it writes the data to disk. This is true for all transfers that specify the CODE_FLAG=ASCII/EBCDIC parameter.
Also all CODE_FLAG=ASCII/EBCDIC data translation is performed on the non-ebcdic XCOM platforms (Linux, Unix, Windows, ect). For example, transfers that are initiated by z/OS or OS/400 send the data in an EBCDIC format. If the receiving systems is a Linux/Unix/Windows (LUW) systems and the CODE_FLAG=ASCII, the data will be translated to ASCII. If CODE_FLAG=EBCDIC, then no translation and the data will be written as EBCDIC along with the proper EOL characters.
CODE_FLAG=BINARY transfers indicate that no translation or removal of EOL characters when sending and addition EOL characters when receiving/writing. The file is sent as is.
Transfers that specify a CODE_FLAG=UTFxx indicates a Unicode file, which is based on the UTFxx encoding system, is being transferred. When this option is set, the LOCAL_CHARSET/ REMOTE_CHARSET parameters are used to identify the character encoding of the input file and the required encoding for the output file