Using Directory Transfer with Receive File

You can use a directory transfer with the MFT Platform Server for IBM i Receive File command to a remote MFT Platform Server for IBM i product's server program.

Procedure

  1. Enter token $(SDIR) in To File Name, a library name in To Library Name, and token $(RemoteFileName) in To Member Name.
  2. Enter the wildcard b* after the last slash in From File Name.

    The Remote MFT Platform Server for IBM i product's server program first scans the library: TESTLIB2. Then it selects and sends all file names starting with the lower case character “b” and all the file's member names starting with the lower case character “b” from the remote system location in the library: TESTLIB2 to the local system’s directory: TESTLIB.

    Using the same file names as the files that are on the remote system and replacing the token $(SDIR) value located on the local system in the To File Name field. And using the same file’s member names that are on the remote system and replacing the token $(RemoteFileName) value located on the local system in the To Member Name field.

    In the To File Library field, the special value *LIBL means the library list is used to locate the name of the local file. This special value is not valid in a directory transfer process. In the To File Member field, the default special value *FIRST means the first member in the local file is being received. This default special value is ignored in a directory transfer process. And in the To File Member field, the special value *ALL means all members in the local file are being received. This default special value is ignored in a directory transfer process. The From File field’s special value *TOFILE is not valid in a directory transfer process.

    All three, such as the From File, Library, and Member fields can be extended to the field’s maximum length of 50 characters by entering an ampersand (&) in the first position of the field followed by a blank and then pressing the Enter key. Repeat the steps until the length of 50 characters is displayed.

    Then the local MFT Platform Server for IBM i product’s server program creates all the files with all member names that do not exist on the local system. The scan the file member names process is done because the Scan Subdirectories field has a value equal to Y.



    Press the Page Down key to display the rest of the attributes.