PUT Remote File (PUTRMTF) command:

The command that allows a file to be transferred between AS/400's using FTP is called PUTRMTF.

This command supports "native" LFS (Library File System) or IFS (Integrated File System) types of files. This command sends the file from the local machine to a remote one.

An example of an AS/400 (LFS) to AS/400 transfer looks like the following:

                            PUT Remote File (PUTRMTF)

 Type choices, press Enter.

 Remote user profile  . . . . . .   YOURSELF      Name, *CURRENT
 Remote user password . . . . . .                 Character value
 Remote system  . . . . . . . . .   SAPTEST_____________________________________
________________________________________________________________________________
________________________________________________________________________________
____________________________________________________
 From file type (AS/400 / IFS)  .   *AS400        *AS400, *IFS
 To file type (AS/400 / IFS)  . .   *AS400        *AS400, *IFS
 From file (local system) . . . .   YOURFILE      Name
   Library  . . . . . . . . . . .     DTATST      Name, *LIBL, *CURLIB
   Member . . . . . . . . . . . .     *FIRST      Name, *FIRST, *ALL
 To file (remote system)  . . . .   *FROMFILE_    Name, *FROMFILE
   Library  . . . . . . . . . . .     DTALIB      Name, *CURLIB, *FROMFILE
   Member . . . . . . . . . . . .     *FROMFILE_  Name, *FROMFILE
 Replace file data  . . . . . . .   *YES          *YES, *NO

                                                                         Bottom
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display
 F24=More keys

An example of an AS/400 (LFS) to IFS transfer looks like the following:

                            PUT Remote File (PUTRMTF)

 Type choices, press Enter.

 Remote user profile  . . . . . .   YOURSELF      Name, *CURRENT
 Remote user password . . . . . .                 Character value
 Remote system  . . . . . . . . .   SAPTEST_____________________________________
________________________________________________________________________________
________________________________________________________________________________
____________________________________________________
 From file type (AS/400 / IFS)  .   *AS400        *AS400, *IFS
 To file type (AS/400 / IFS)  . .   *IFS          *AS400, *IFS
 From file (local system) . . . .   YOURFILE      Name
   Library  . . . . . . . . . . .     *LIBL       Name, *LIBL, *CURLIB
   Member . . . . . . . . . . . .     *FIRST      Name, *FIRST, *ALL
 To file (remote system)  . . . .   '/usr/data/in/filename'_____________________
____________________________________
 Replace file data  . . . . . . .   *YES          *YES, *NO

                                                                         Bottom
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display
 F24=More keys

If the file on the local system is an AS/400 save file and the target is an AS/400, the program will execute the appropriate commands on the target system automatically to create the save file.

You can also specify *NO to not allow the target file data to be replaced if it already exists.