Step 2. Copy the file from the file system to a data set

Use the TSO/E OGET command with the BINARY option to copy the archive file into a sequential data set. See OGET for more information.
tso "OGET '/tmp/testpgm.pax' 'POSIX.TESTPGM.PAX' BINARY"
The OGET command copies the archive file into the specified MVS™ data set:
  • '/tmp/posix/testpgm.pax' is the absolute pathname for the archive file.
  • 'POSIX.TESTPGM.PAX' is the fully qualified data set name for the data set.
  • BINARY indicates that the data is binary.
The final step is to use ftp (or some other method) to send the file to the intended destination.