Working 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 you 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.
To create a transfer template from the command line, use the fteCreateTemplate command. Then when you 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 your 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. If you want to change which coordination queue manager you are connected to, right-click the name of the coordination queue manager you 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 your 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. If you want to remove a file from the template you must select the file specification from the group and click Remove selected. If you want to add new file specifications to the template use the fields in the template panel and click the Add to group button. When we have made your edits, you 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.