By default, when a file transfer to Tectia server on z/OS end prematurely, the allocated dataset 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 of
the file type (MVS or HFS):
CATLG
(default): an MVS dataset is retained and its
name is cataloged. An HFS file is retained.
UNCATLG
: the name of an MVS dataset is removed from
the catalog but it is retained. An HFS file is retained.
KEEP
: an MVS dataset 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 dataset is removed from
the catalog and the space allocated for it is released. An HFS file is
deleted.