Work with file transfer templates
We can use file transfer templates to store common file transfer settings for repeated or complex transfers. Either create a transfer template from the command line by using the fteCreateTemplate command or use the IBM MQ Explorer to create a transfer template by using the Create New Template for Managed File Transfer wizard, or save a template while we are creating a file transfer by selecting the Save transfer settings as a template check box. The Transfer Templates window displays all of the transfer templates that we have created in your Managed File Transfer network.
About this task
To create a transfer template from the command line, use the fteCreateTemplate command. Then when we want to submit a transfer template that you created on the command line, click Submit in IBM MQ Explorer.
To view transfer templates in the IBM MQ Explorer, use the following steps:
Procedure
- Expand Managed File Transfer in the Navigator view. Managed File Transfer Central is displayed in the Content view.
- All of our coordination queue managers are listed in the Navigator view. Expand the name of the coordination queue manager that we have used for the scheduled transfer. To change which coordination queue manager we are connected to, right-click the name of the coordination queue manager we want to use in Navigator view and click Connect.
- Click Transfer Templates. The Transfer Templates window is displayed in the Content view.
- The Transfer Templates window lists the following details about your file transfers:
- Name The name of our file transfer template.
- Source The name of the agent used to transfer the file from the source system.
- Source File The name of the file to be transferred on its host system. Expand the transfer template information to view this field.
- Destination The name of the agent used to receive the file at the destination system.
- Destination File The name of the file after it is transferred to the destination system. Expand t the transfer template information to view this field.
- Scheduled Start (selected time zone) The time and date that the file transfer is scheduled to start in the time zone used by the administrator. To change the time zone displayed, click Window > Preferences > IBM MQ Explorer > Managed File Transfer and select an alternative time zone from the Time zone: list. Click OK.
- Trigger Events The type of event that triggers the file transfer to start. The type can be one of the following values: exists, does not exist, or exceeds.
Results
To refresh what is displayed in the Transfer Templates window, click the Refresh button on the Content view toolbar.
To submit a transfer template and start the transfer defined in the template, right-click the template name and click Submit.
To change a transfer template, right-click the template name and click Edit. All files included in the original template are listed as part of a transfer group, even if they were not included as part of a group in the original template. To remove a file from the template we must select the file specification from the group and click Remove selected. To add new file specifications to the template use the fields in the template panel and click the Add to group button. When you have made your edits, we are prompted to give the edited template a new name.
To create a file transfer from a transfer template, right-click the template name and click Edit as New Transfer.
To create a duplicate copy of a transfer template, right-click the template name and click Duplicate. The duplicate transfer template is automatically saved with the same name as the original template, appended with
(copy).To delete a transfer template, right-click the template name and click Delete.
- Create a file transfer template using IBM MQ Explorer
We can create a file transfer template from IBM MQ Explorer or from the command line. We can then use that template to create new file transfers using the template details or submit the template to start the file transfer.- Backing up a file transfer template definition
File transfer templates contain an XML document that defines the source and destination file specifications for the transfer. We can use this XML file as input to the fteCreateTemplate command to recreate a file transfer template.Parent topic: Administer Managed File Transfer
Related tasks
Related information