Tectia client tools for z/OS convert the unsecured FTP subcommands to secure SFTP commands according to the following matrix:
Table 6.1. Comparison between native z/OS FTP subcommands and SFTP commands
z/OS FTP subcommand | Tectia SFTP command | Description | ||
---|---|---|---|---|
ascii | ascii | Change the data transfer type to ASCII | ||
binary | binary | Change the data transfer type to image | ||
cd directory | cd directory | Change the working directory or file group on the remote host: | ||
cd /mydir/test | cd /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 dataset | ||
cd my.dataset.cntl | cd //my.dataset.cntl | Define a relative dataset | ||
delete foreign_file | rm [options...] foreign_file | Delete the foreign_file (or a directory with the rm command) | ||
delete your_file.txt | rm your_file.txt | Delete a file | ||
rm yourdir | Delete a directory | |||
dir name (DISK | ls | View directory contents. See the options in the ls command | ||
lcd directory | lcd directory | Change the current working directory on the local host | ||
lcd 'my.dataset.cntl' | cd //'my.dataset.cntl' | Define an absolute dataset | ||
lcd my.dataset.cntl | cd //my.dataset.cntl | Define a relative dataset | ||
lmkdir directory (LIKE remote_directory | lmkdir directory | Make a directory on the remote host | ||
lmkdir example | lmkdir example | When 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 bart | ls bart | |||
ls //'USER1.TEST.PS.' | List all MVS datasets with prefix USER1.TEST.PS | |||
ls //__USER1.TEST.PS. | List all MVS datasets with prefix USER1.TEST.PS (for a client that does not send the / character) | |||
ls -l | Extended list command | |||
ls bart (DISK | SFTP has no option to store the output | |||
get srcfile dstfile (REPLACE | sget [options...] srcfile [dstfile ] | |||
get myfile | sget myfile | |||
mget foreign_file (REPLACE | mget [options...] file | Copy 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_file | mget --overwrite=no foreign_file | Note: The defaults are different! | ||
mkdir directory (LIKE local_directory ) | mkdir directory | Make a directory on the remote host | ||
mput local_data_set | mget [options...] file | Copy multiple datasets from your local host to the remote host. For SFTP 'replace' is the default! | ||
mget foreign_file | mput --overwrite=no foreign_file | Note: The defaults are different! | ||
open hostname portnumber | open hostname | -l | Open a connection to the given host, or to local host: open -l | ||
open remhost | open REMUSER@remhost | Open a connection to a remote host | ||
put srcfile dstfile (REPLACE | sput [options...] srcfile [dstfile ] | |||
put 'myfile.dataset.cnt' c:\bart.txt | sput //'myfile.dataset.cnt' c:\bart.txt | The mainframe dataset specification syntax can be different per client | ||
sput /ftadv:P=TEXT/__DATASET.TXT file.txt | When advice is used, the preferred dataset specification is different | |||
rename oldfile newfile | rename oldfile newfile | Rename a file | ||
IBM z/OS:
Tectia: Tries to rename the
| ||||
sendsite | not applicable | Toggle the automatic sending of the SITE commands when sending a dataset to a foreign host. | ||
quit | quit | |||
bye | bye | The same as quit. |