File transfer from Unix to a mainframe partitioned dataset member using an advice string for defining the ASCII/EBCDIC conversion. The filename is defined with quotes so a full DSN (dataset name) is used.
sftp> put testfile /ftadv:D=IBM-1047,C=ISO8859-1/___user.test.file/mem1
File transfer from Unix to a mainframe sequential dataset using a file transfer profile for defining the ASCII/EBCDIC conversion. The filename is defined without quotes so the DSN prefix is added to the filename.
On the mainframe host, create the file transfer profile configuration file ($HOME/.ssh2/ssh_ftadv_config) that contains a filename-matching profile:
After the file transfer profile configuration file is set, the file can be transferred with the following commands: