The following procedure assumes that you have already
configured OpenSSH to allow sftp connections to mft.bmc.com.
- Use "TSO OMVS" to access the unix prompt.
- Use "ls -al /tmp" to confirm you have access to the tmp folder:
- lrwxrwxrwx 1 BPXROOT 1 12 Nov 6 2019 /tmp -> $SYSNAME/tmp
- Copy your z/OS mainframe dataset to the /tmp folder:
- cp "//'HLQ.DUMP.TRS'" /tmp/98765421.dump.trs
- Confirm that the copy was successful:
- ls -al /tmp/98765421.dump.trs
- -rw-r--r-- 1 HCACDD0 DBSW 1208154112 Feb 24 13:32 /tmp/98765421.dump.trs
- Use sftp command to login to mft.bmc.com:
- sftp name@company.com@bmc.com@mft.bmc.com 990
- FOTS1754 password
- FOTS1754 Enter password for name@company.com
- Password:
- Connected to mft.bmc.com.
- Create new directory using the case number and change to that directory:
- sftp> mkdir 98765421
- sftp> ls -al
- drwxrwxrwx 1 0 0 0 Feb 24 11:55 98765421
- sftp> cd 98765421
- Choose the mode for the file transfer:
- sftp> binary
- Sets the file transfer type to binary.
- Put the file from the /tmp directory to mft.bmc.com:
- sftp> put /tmp/98765421.dump.trs 98765421.dump.trs
- Uploading /tmp/98765421.dump.trs to 98765421.dump.trs
- /tmp/98765421.dump.trs 100% 1152MB 631.9KB/s 31:07
- Confirm the file was transferred successfuly:
- sftp> ls -al 98765421.dump.trs
- -rwxrwxrwx 1 0 0 1208154112 Feb 24 13:12 98765421.dump.trs