Put or GET Files using FTP (FTPFILE)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

Parameters

Keyword Description Choices Notes
RMTSYS Remote IP or FTP server Character value Required, Positional 1
USER Remote FTP User ID Character value, *CURRENT Optional, Positional 9
PWD Remote FTP Password Character value, *USER Optional, Positional 10
PUTGET Send or Receive (Put or Get) *PUT, *GET, PUT, GET, *SEND, *RECV Required, Positional 2
LCLFILE Local file Single values: *STMF, *NONE
Other values: Qualified object name
Required, Positional 3
Qualifier 1: Local file Generic name, name, *ALL
Qualifier 2: Library Name, *LIBL
LCLMBR Local member Generic name, name, *FILE, *FIRST, *LAST, *ALL Optional, Positional 4
RMTFILE Remote file Qualified object name Optional, Positional 5
Qualifier 1: Remote file Generic name, name, *LCLFILE, *ALL
Qualifier 2: Library Name, *LCLLIB
RMTMBR Remote member Name, *LCLMBR, *LCLFILE, *RMTFILE Optional, Positional 6
OBJTYPE Object Type (file suffix) Name, *AUTO, *SAVF, *FILE, *USRSPC Optional, Positional 7
REPLACE Replace data on target system *YES, *NO Optional, Positional 8
LCLSTMF Local Stream file Path name, *NONE, *RMTSTMF Optional, Positional 19
RMTSTMF Remote Stream file Path name, *NONE, *LCLSTMF Optional, Positional 20
SECCNN Secure connection *DFT, *NONE, *SSL, *IMPLICIT, *KERBEROS Optional, Positional 11
MODE Transfer mode *AUTO, *BINARY, *ASCII, *EBCDIC, *TEXT, *IMAGE, AUTO, BINARY, ASCII, EBCDIC, TEXT, AS400, *AS400 Optional, Positional 12
PASV Passive mode *AUTO, *ACTIVE, *PASV, *EPASV, *NONE, NONE, *NO Optional, Positional 13
SRCFILE Src file to receive FTP script Qualified object name Optional, Positional 14
Qualifier 1: Src file to receive FTP script Name, QFTPSRC
Qualifier 2: Library Name, QTEMP, *LIBL
SRCMBR Script source member Name, *LCLMBR, *GEN Optional, Positional 15
LOG FTP log output Single values: *, *STDOUT, *NONE, *SRCFILE
Other values: Qualified object name
Optional, Positional 16
Qualifier 1: FTP log output Name, QFTPLOG
Qualifier 2: Library Name, QTEMP, *LIBL
LOGMBR Log member Name, *LCLMBR, *SRCMBR, *SCRIPT, *GEN Optional, Positional 17
DSPLOG Display FTPLOG after transfer *YES, *NO Optional, Positional 18
LCMD FTP cmd to run before transfer Character value Optional, Positional 21
RCMD Remote cmd to run after xfer Command string Optional, Positional 22
FTPOPT FTP Options *NONE, *SCRIPTONLY Optional, Positional 23
Top

Examples

None
Top

Error messages

Unknown
Top