Maybe add -n?
C:\>ftp /?
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer]
[-r:recvbuffer] [-b:asyncbuffers] [-w:windowsize] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
-r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
-b:async count Overrides the default async count of 3
-w:windowsize Overrides the default transfer buffer size of 65535.
host Specifies the host name or IP address of the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
C:\>
On Fri, Jun 1, 2018 at 5:31 PM, Kevin Merkley <[email protected]> wrote:
> I'm normally a VM guy but I'm trying to do some work on z/OS 2.2, and I
> could use some help.
> I'm trying to use Windows FTP to transfer a downloaded tersed file from
> Windows to z/OS 2.2.
>
> Previously, with Windows 7, I invoked FTP with this command: ftp <
> ftpscript.txt
> The ftpscript file normally has quite a few more statements but to verify
> the problem I condensed it to contain these statements:
> -------------------------------
> verbose
> open nnn.nnn.nnn.nnn
> myuser
> binary
> put file.trs 'MYUSER.FILE.TRS'
> quit
> -------------------------------
> The verbose statement allowed FTP to prompt for a password, in order to
> avoid having the password in the text file.
>
> Recently, I grudgingly had to upgrade to Windows 10. This process no
> longer works. In trying to diagnose the problem, I used the FTP -d option
> and discovered a difference between FTP on Windows 10 and FTP on Windows 7.
> The Windows 10 FTP client connects to the z/OS FTP server and immediately
> issues the command: OPTS UTF8 ON
> and receives this message:
> 501 command OPTS aborted -- no options supported for UTF8
>
> It accepts the userid but then processes the binary statement as the
> password, and of course that fails.
>
> In the manual "z/OS Communications Server: IP Configuration Reference" I
> found the EXTENSIONS statement to enable FTP to support FTP extensions. The
> description of EXTENSIONS UTF8 states: "Enables the FTP server to respond
> to the LANG command, and to use UTF–8 encoding of pathnames on the control
> connection." So I added EXTENSIONS UTF8 in the TCPIP.FTP.DATA dataset. I
> cycled the FTP daemon started task, and the TCPIP started task, and even
> reIPLed the z/OS system. This has not made any difference.
>
> I'm hoping to find the way for z/OS to accept the OPTS UTF8 ON command.
> (Or for Windows 10 FTP to not issue the command.)
>
> Can someone please give me some guidance on this? I'm at a loss. I've done
> lots of internet searches and haven't been able to find any solution.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN