Configure receive mode for files (IFS)

File types

The following table lists the different types of files that can be received on an IBM i system when using IFS.

Note The FRECFM possibilities for all FTYPE are: ‘V’, ‘F’, and ‘ ’ .
FTYPE Type of sent file
‘S’ Text
‘D’ , ‘ ’ Text
‘E’ Text
‘Z’ Binary
‘J’

Stream text is an alternative way to transfer a text file. Every line of a file must end with an LF or CR/LF. However, during a transfer the CR/LF are changed to LFs. This enables a quicker reading, and a faster transfer.

When using stream text (FTYPE=J), the sender and the receiver must both have the FTYPE set to J. Setting only the sender or receiver to FTYPE=J results in unexpected content for the transferred file.

Note This transfer mode is not available for native side transfers.

Key

If your partner sends a PF-SRC file to be received on IFS, the content is slightly different depending on if you use the FTYPE ‘S’ or ‘E’. With the FTYPE ‘E‘, the content of the file is only the original content of the PF-SRC file. When the FTYPE is ‘S’, the content is the original content of the PF-SRC file along with the record character in the header line.

When sending a file from the part of an IBM i machine in text mode, the file is expected to be a standard text file. This means that every line of the file to transfer is finished either by a LF, either by a CR/LF. If not, the file is considered to be binary and Transfer CFT cannot read it. Use the binary mode to allow it to be transferred.

Related Links