The BINARY i5/OS® FTP client subcommand sets the file transfer type to BINARY format.
Binary
There are two basic file types you can use when transferring files with FTP: ASCII and BINARY. ASCII files are plain text files. They can have extensions like .txt or have no extension at all. BINARY files are programs or other non-text files saved in the file format of the application that created them or archived or compressed file formats.
If you are transferring binary data to an existing i5/OS file, the record length is the record length of the existing i5/OS file. For example, the existing file size should accommodate the new data. If the file does not exist on the system, FTP chooses a record length for you.
Certain files, such as save files, require binary image transfer. If TYPE is not binary when attempting to transfer such files, you receive a message that tells you to use binary.
Related concepts
Data transfer methods