Transfer multiple files from a Connect:Direct node
We can transfer multiple files from a Connect:Direct node to a Managed File Transfer Agent by using the Connect:Direct bridge. We can specify a Connect:Direct node as the source of the multiple file transfer by specifying the Connect:Direct bridge agent as the source agent and specifying one or more source specifications in the form connect_direct_node_name:file_path.
Before starting
Before transferring a file, we must configure the Connect:Direct bridge, which is a component of Managed File Transfer. See Configure the Connect:Direct bridge.About this task
In this example, the Connect:Direct bridge agent is called CD_BRIDGE. The destination agent is called FTE_Z, and is running on a z/OS system. The source Connect:Direct node is called CD_NODE1. The files to be transferred are located at the file paths /in/file1, /in/file2, and /in/file3 on the system where CD_NODE1 is located. The files are transferred to the partitioned data set //OBJECT.LIB on the system where FTE_Z is running.Procedure
Use the fteCreateTransfer command with the values for the source specifications in the form connect_direct_node_name:file_path and the value of the -sa parameter specified as the name of the Connect:Direct bridge agent. Note: The Connect:Direct node specified by connect_direct_node_name is the node that we want the files to be transferred from, not the Connect:Direct node that operates as part of the Connect:Direct bridge.fteCreateTransfer -sa CD_BRIDGE -da FTE_Z -dp //'OBJECT.LIB' CD_NODE1:/in/file1 CD_NODE1:/in/file2 CD_NODE1:/in/file3For more information, see fteCreateTransfer: start a new file transfer.
Results
The Connect:Direct bridge agent CD_BRIDGE requests the first file from the Connect:Direct node CD_NODE1. The Connect:Direct node sends the file to the Connect:Direct bridge. While the file is being transferred from the Connect:Direct node, the Connect:Direct bridge stores the file temporarily in the location defined by the cdTmpDir agent property. When the file has finished transferring from the Connect:Direct node to the Connect:Direct bridge, the Connect:Direct bridge sends the file to the destination agent FTE_Z and then deletes the file from the temporary location. This process is repeated for each specified source file. Parent topic: The Connect:Direct bridgeRelated concepts
Related information