How to use FTP to transfer DBUTLTY backup files from one mainframe or LPAR to another

Document ID : KB000024392
Last Modified Date : 14/02/2018
Show Technical Document Details


DBUTLTY database backup files are typically created in Variable-Blocked (VB) format, and requires special FTP commands to ensure the target file is the same as the source file when transferring the Backup file from one mainframe to another.


The key to a successful mainframe-to-mainframe FTP transfer is found in two mainframe subcommands: MODE B (or BLock) and TYPE E (or EBcdic).

These subcommands will allow you to transfer files quickly and in the proper format between mainframe LPARs.

Here are the subcommand descriptions from the IBM manual “z/OS V2R2.0 Communications Server: IP User's Guide and Commands.” The first pair are the BLOCK and MODE B subcommands.

  • BLock subcommand—Set the block data transfer mode

Use the BLock subcommand to set the data transfer mode to block mode. This is equivalent to specifying the MOde B subcommand. See “MOde subcommand—Set the data transfer mode” on page 251 for more information.

  • MOde subcommand—Set the data transfer mode

Use the MOde subcommand to define how bits of data are to be transmitted.

. . .


B Sets the block mode. In block mode, data is transmitted as a series of data blocks, preceded by one or more header bytes. Block mode preserves the logical record boundaries of the data set or file. When MOde is set to B, the data transfer type must be EBCDIC.

Specifying MOde B is equivalent to specifying the BLock subcommand.

The next pair are the EBCDIC and TYPE E subcommands.

  • EBcdic subcommand—Change the data transfer type to EBCDIC

The EBcdic subcommand enables you to change the data transfer type to EBCDIC.


Use the EBcdic subcommand to direct FTP to transfer data with no translation.

  • TYpe subcommand—Set the data transfer type

Use the TYpe subcommand to set the data transfer type for the client and server simultaneously with one command.

. . .


. . .

E Sets the transfer type as EBCDIC. Specifying the EBCDIC transfer type has the same effect as using the EBcdic subcommand. The EBCDIC transfer type is intended for efficient transfer between hosts that use EBCDIC for their internal character representation.

Using these commands, your SYSIN might look something like this:

//SYSIN     DD *          name/IP address of other system
userid                        your username/login
password                      your password
ebcdic                        EBCDIC Subcommand for mainframe transfer
block                         BLOCK Subcommand for blocked transfer mode
site storclass=tso            Other FTP remote site commands
site cy pri=50 sec=10         Other FTP remote site commands
put //DD:INFILE1 +            Put the file from DD INFILE1
      'TGTSYS.FILE.NAME'          to this remote file name
quit                          End the FTP program

Additional Information:

For more information about these FTP subcommands, please refer to the following Guides:

IBM z/OS V2R2.0 Communications Server: IP User's Guide and Commands (SC27-3662-01)

IBM z/OS V2R1.0 Communications Server: IP User's Guide and Commands (SC27-3662-00)

As always, please contact CA Technologies support for CA Datacom if you have further questions.