AS / 400 uses EBCDIC as a character set, not a DOS or Unix ASCII character set. On Unix, lines of text files usually end with ASCII '\n' , while on DOS lines usually end with ASCII '\r\n' .
When using FTP, if you are using EBCDIC transfer type, not bin or ASCII ; ftp should translate these characters for you.
The EBCDIC carriage return is 0x0D, as is ASCII.
EBCDIC linear feed is 0x25, unlike ASCII 0x0A.
AS / 400 EBCDIC new-line has 0x15 - NEL (NExt Line).
For more information about ending a line, see this Wikipedia article .
source share