MBSENDEOL statement (FTP client and server) statement
Use the MBSENDEOL statement to tell the FTP client or server what end-of-line (EOL) sequence to use when ENCODING is MBCS, Type is ASCII, Mode is Stream, and file transfer is outbound. You can also use the SIte and LOCSIte subcommands to set this keyword.
- Server
- When ENCODING is MBCS, data Type is ASCII, Mode is Stream, and files are sent from the server, this statement instructs the server which EOL sequence to append to each line of text.
- Client
- When ENCODING is MBCS, data type is ASCII, Mode is Stream, and files are sent from the client, this statement instructs the client which EOL sequence to append to each line of text.
Syntax
Parameters
- CRLF
- When translating multi-byte data to ASCII, append a carriage return (x'0D') and line feed (x'0A') to each line of text. This is the default and the standard EOL sequence defined by RFC 959. The z/OS® server and client can receive ASCII data in this format only.
- CR
- When translating multi-byte data to ASCII, append only a carriage return (x'0D') to each line of text.
- LF
- When translating multi-byte data to ASCII, append only a line feed (x'0A') to each line of text.
- NONE
- When translating multi-byte data to ASCII, append no EOL sequence.
Results:
- This statement applies only to the end-of-line sequence used on the data connection. The control connection end-of-line sequence is not affected.
- SBCS, DBCS, and UCS-2 translations are not affected by this setting. UTF-8 and UTF-16 translations are affected by this setting
Rule: The MBSENDEOL setting CRLF is appropriate
for most file transfers. Do not use an alternate MBSENDEOL setting
unless you have verified that the recipient FTP can handle the alternate
value.
- Client
- Do not code an alternate MBSENDEOL value if your server is a z/OS FTP server. The z/OS FTP server does not support alternate MBSENDEOL values for inbound file transfer.
- Server
- Do not code an alternate MBSENDEOL value if your client is a z/OS FTP client. The z/OS FTP client does not support alternate MBSENDEOL values for inbound file transfer.
Examples
Use LF as the EOL sequence when
ENCODING is MBCS, Type is ASCII, and data transfer is outbound. Code
as follows:
MBSENDEOL LF