Execution environments

The FTP client can run in any of the following environments:
  • Interactive (under the TSO or the z/OS UNIX shell)
  • Batch (under TSO only)
  • REXX exec (under TSO)

When run interactively, you can redirect terminal I/O. When run under TSO, server responses and debug messages can be redirected to a file. For example, you can use the ftp 9.68.100.23 > 'USER27.FTPOUT' command to redirect output from a TSO command line to a data set. When run under the z/OS UNIX shell, both input and output can be redirected. To redirect input from the file /user27/ftpin and output to the file /user27/ftpout, issue the ftp 9.68.100.23 > /user27/ftpout < /user27/ftpin command.

Tip: When redirecting output under z/OS UNIX, nothing is displayed on the system console, not even command prompts, and it is difficult to know when input is requested. Consequently, use output redirection only when also using input redirection.