Step 4. Copy the tar file to z/OS UNIX tarball directory
Use an FTP client such as WS_FTP or FileZilla to copy the downloaded .tar file to your mainframe z/OS UNIX tarball subdirectory created by the JCL in Step-3-Create-z-OS-UNIX-directory-and-file-structure. The example in the following figure uses FileZilla, a free FTP client, to drag- and-drop the .tar file into the tarball folder.
Copying Tar File to Tarball Folder

Alternate transfer method
As an alternative to using an FTP client to transfer the .tar file to z/OS UNIX Storage, you can create and update the following two files and execute them from Windows. File script.bat initiates the FTP transfer to the mainframe. File data.txt contains the control statements to perform the FTP upload.
script.bat
Create the script.bat file in the same directory where the tar file has been downloaded. Copy and paste the following command into the file:
ftp -s:ftpdata.txt mainframe_ip_address_or_lpar_name- Change mainframe_ip_address_or_lpar_name to the address of your mainframe.
- (Optional) Add a second line with command PAUSE so you can review the FTP output before the output display closes.
data.txt
Create file data.txt in the same directory where the tar file has been downloaded. Copy and paste the following into the file:
z/OS_UNIX_UID
pwd
cd ..
cd destination_path
quote type i
quote mode s
put tarfile_name
quit- Change z/OS_UNIX_UID to your userid.
- Change pwd to your password.
- Change destination_path to the directory you want to store the tar file into.
- Change tarfile_name to the name of your tar file.
- Once both files have been created and updated, double-click the script.bat file to execute it.