SSH

Handling Prematurely Ending File Transfers

By default, when a file transfer to Tectia Server for IBM z/OS ends prematurely, the allocated data set is kept.

To change this behavior, you can specify the --attribute=conddisp option with sft-server-g3 in the sshd2_config file:

subsystem-sftp   /opt/tectia/libexec/sft-server-g3 --attribute=conddisp:DELETE

The conddisp option can take values CATLG, UNCATLG, KEEP, and DELETE, and they have the following effects, depending on the file type (MVS or HFS):

  • CATLG (default): an MVS data set is retained and its name is cataloged. An HFS file is retained.

  • UNCATLG: the name of an MVS data set is removed from the catalog but the data set is retained. An HFS file is retained.

  • KEEP: an MVS data set is retained (if cataloged it will be still cataloged, if uncataloged it will be still uncataloged). An HFS file is retained.

  • DELETE: the name of an MVS data set is removed from the catalog and the space allocated for the data set is released. An HFS file is deleted.