IBM Support

Transfer a PTF binary (.bin) file from your PC to an MVS system

Question & Answer


Question

This document explains how to transfer a PTF binary (.bin) file from your PC to an MVS™ system.

Answer

To transfer a PTF .bin file from your PC to an MVS system:

  1. Log on to your MVS system and allocate (ISPF 3.2) a file with the same name as the file you want to transfer.
    Example: MPTF8740.bin
  2. Define the file attributes as: FB, LRECL 1024, BLKSIZE 27648
  3. Invoke a DOS prompt from your PC. To get a DOS prompt, click Start --> Run and type CMD
  4. Issue the commands (in blue text below) to copy the tersed binary file to your MVS file.
  5. Change to the directory where your file resides. For this example, PTF is the name of the source folder on your PC.
    Example: C:\>cd PTF
  6. Perform the FTP transfer to your MVS system. For this example, the MVS system is MVS1.IBM.COM.
    Example: C:\PTF>ftp mvs1.ibm.com
  7. After you receive the messages below, you will be prompted to enter your user ID, then password.

    Connected to mvs1.ibm.com.
    220-FTPD1 IBM FTP CS V1R2 at MVS1.IBM.COM, 21:10:47 on 2002-02-01
    220 Connection will close if idle for more than 60 minutes.
    User (stlmvs1.stl.ibm.com:(none)):
    USERID
    331 Send password please.
    Password:
     XXXXXX
    230 USERID is logged on.  Working directory is "USERID".
  8. After the logon is complete, type binary to ensure the transfer occurs in binary mode.
    Example: ftp> binary
    200 Representation type is Image
  9. Specify the PUT command and source file name to invoke the transfer.
    Example: ftp> put mptf8740.bin
  10. A message should appear, stating the transfer has been completed successfully.

    200 Port request OK.
    125 Storing data set USERID.MPTF8740.BIN
    250 Transfer completed successfully.
    5120 bytes sent in 0.00 seconds (5120000.00 Kbytes/sec)

  11. To exit FTP and the DOS prompt, use the bye and exit commands.
    Example: ftp> bye
    221 Quit command received. Goodbye.
    Example: C:\PTF>exit
  12. Use the MVS program PGM=TRSMAIN,PARM='UNPACK' through JCL or ISPF panels to unterse the file.

[{"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF035","label":"z\/OS"},{"code":"PF033","label":"Windows"}],"Version":"1.1.0;2.1.0;3.1.0;4.1.0;6.1.0;7.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021

UID

swg21049027