The PUT i5/OS® FTP client subcommand copies a local file member to the remote system.
PUT localfile [remotefile]
To send a file to the remote system, have a defined current working directory with write privileges.
The following example uses the PUT subcommand to transfer a file member:
PUT MYLIB/MYFILE.MYMBR (NAMEFMT = 0)
The previous example sends member MYMBR of file MYFILE in library MYLIB to the remote system.
The following example sends the document PCSMENU.EXE of folder QIWSOS2 in the document library services file system to the remote system.
PUT /QDLS/QIWSOS2/PCSMENU.EXE (NAMEFMT = 1)
If the remote file name requires apostrophes as part of the file name, then enclose the file name within two more sets of apostrophes. The following example sends 'MEMBER.ONE' as the file name to the remote host.
PUT LIBRARY/FILE.MEMBER 'MEMBER.ONE'