Your browser does not allow storing cookies. We recommend enabling them.


Native z/OS FTP commands versus Tectia SFTP commands

Tectia client tools for z/OS convert the unsecured FTP subcommands to secure SFTP commands according to the following table:

Table 6.1. Comparison between native z/OS FTP subcommands and SFTP commands

z/OS FTP subcommandTectia SFTP commandDescription
asciiasciiChange the data transfer type to ASCII
binarybinaryChange the data transfer type to image
cd directorycd directoryChange the working directory or file group on the remote host:
cd /mydir/testcd /mydir/test- when the remote end is Unix
cd //- when the remote end is mainframe, go to MVS-level prefix.*
cd 'my.dataset.cntl'cd //'my.dataset.cntl'Define an absolute data set
cd my.dataset.cntlcd //my.dataset.cntlDefine a relative data set
delete foreign_filerm [options...] foreign_fileDelete the foreign_file (or a directory with the rm command)
delete your_file.txtrm your_file.txtDelete a file
rm yourdirDelete a directory
dir name (DISKlsView directory contents. See the options in the ls command
lcd directorylcd directoryChange the current working directory on the local host
lcd 'my.dataset.cntl'cd //'my.dataset.cntl'Define an absolute data set
lcd my.dataset.cntlcd //my.dataset.cntlDefine a relative data set
lmkdir directory (LIKE remote_directorylmkdir directoryMake a directory on the remote host
lmkdir examplelmkdir exampleWhen the local dir is MVSUSER.FTP. then MVSUSER.FTP.EXAMPLE is created
locsite parameters...lsite parameters...Define parameters for controlling the file transfer. Many of the parameters are the same. See the manual.
ls name (DISK ls [-R] [-l] [-S] [-r] [-p] [-z|+z] [file...]List only the names of a set of remote files, file group, or directory
ls bartls bart
ls //'USER1.TEST.PS.'List all MVS data sets with prefix USER1.TEST.PS
ls //__USER1.TEST.PS.List all MVS data sets with prefix USER1.TEST.PS (for a client that does not send the / character)
ls -lExtended list command
ls bart (DISK SFTP has no option to store the output
get srcfile dstfile (REPLACEsget [options...] srcfile [dstfile]
get myfilesget myfile
mget foreign_file (REPLACEmget [options...] fileCopy multiple files from a remote host to your local host, and create a corresponding number of local files. For SFTP 'replace' is the default!
mget foreign_filemget --overwrite=no foreign_fileNote: The defaults are different!
mkdir directory (LIKE local_directory)mkdir directory Create a directory on the remote host
mkdir 'MY.TEST.PDS'mkdir //'MY.TEST.PDS' Create a partitioned data set on the remote host
mput local_data_setmget [options...] fileCopy multiple data sets from your local host to the remote host. For SFTP 'replace' is the default!
mget foreign_filemput --overwrite=no foreign_file Note: The defaults are different!
open hostname portnumberopen hostname | -lOpen a connection to the given host, or to local host: open -l
open remhostopen REMUSER@remhostOpen a connection to a remote host
put srcfile dstfile (REPLACEsput [options...] srcfile [dstfile]
put 'myfile.dataset.cnt' c:\bart.txtsput //'myfile.dataset.cnt' c:\bart.txtThe mainframe data set specification syntax can be different per client
sput /ftadv:P=TEXT/__DATASET.TXT file.txtWhen advice is used, the preferred data set specification is different
rename oldfile newfilerename oldfile newfileRename a file

IBM z/OS: For MVS data sets, if the data set that is specified by the newfile value already exists, the server rejects the rename request.

For z/OS UNIX files and named pipes, if the file that is specified by the newfile value already exists, the existing file is replaced.

Tectia: Tries to rename the oldfile to newfile. If the new file already exists, the files are left intact.

sendsitenot applicableToggle the automatic sending of the SITE commands when sending a data set to a foreign host.
byebyeThe same as quit.




What to read next:

  • Reduce Secure Shell risk. Get to know the NIST 7966.

    The NISTIR 7966 guideline from the Computer Security Division of NIST is a direct call to action for organizations regardless of industry and is a mandate for the US Federal government.
    Download now
  • ISACA Practitioner Guide for SSH

    With contributions from practitioners, specialists and SSH.COM experts, the ISACA “SSH: Practitioner Considerations” guide is vital best practice from the compliance and audit community.
    Download now