FTP client subcommand
PUT localfile [remotefile]
- localfile
- The name of a local library system file member, save file, document, or
other file.
- remotefile
- The name of the delivered file on the remote system. If you do not specify
the remote file name, the FTP server provides a default name. If a remote
file with the same name already exists, then the server replaces the contents
with the contents of the local file unless Store Unique (SUNIQUE) is on.
To send a file to the remote system, you must have a defined
current working directory with write privileges.
This example uses the
PUT subcommand to transfer a file member:
PUT MYLIB/MYFILE.MYMBR (NAMEFMT = 0)
This
sends member MYMBR of file MYFILE in library MYLIB to the remote system.
This
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)
Note: If
the remote file name requires apostrophes as part of the file name, then you
must 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'