Managing the import and export of connection objects
To import IBM MQ objects
- Expand the connection to the required IBM MQ queue manager in the Navigation Panel.
- Select Import/Export from the Navigation Panel.
- In the displayed Import/Export Object Definitions screen, select the Import Action.
- From the list of Available Connections, select the relevant connection(s) and click < (or click << to Add All). The selected connections are listed in the Selected Connections box.
Select the file format from XML or MQSC, and then click Select File to browse to the relevant file.
- In the Object Tagging section, select from one of the following:
- Do Not Tag Imported Objects: Select this option (it is selected by default) if you do not want to tag any of the imported objects.
- Tag Imported Objects Using: Select this option to display a drop-down list of available tags that you can tag the imported objects with. Select the relevant tag. Note that you can also enter a new tag name into the field to assign the objects to that new tag.
- Click the Next icon in the Import/Export Object Definitions toolbar.
- In the displayed confirmation screen, review the details of the file you imported and then click the Execute icon to import the file to the specified queue manager, or click the calendar icon to schedule the import for a later time (repeated imports can be automatically scheduled as required). See Scheduling-tasks for further information on scheduling.
- The Action Results screen is displayed, indicating the result of the actions you reviewed in Step 8.
To export IBM MQ objects to a file
- In the displayed Import/Export Object Definitions screen, select the Export Action.
- Select from one of the following:
- Connection: If you want to export objects from (or by) a connection, select Connection and then select the relevant connection from the drop-down list. By default, the current connection is selected.
- Tag: If you want to select objects from (or by) a specific tag to export, select Tag and then select the relevant tag from the drop-down list.
In the To drop-down list, select File. This option enables you to export objects into a downloadable file. To export objects to a connection, see the following procedure.
- In the Objects section, select the output format as XML or MQSC.
- Select the objects to be exported by selecting the relevant checkboxes and entering a Name Pattern. Note that you can only use character strings followed by an asterisk * ; for example ABC*.
- You can also select Include System Objects, but selecting it alone is not enough to apply the definition. A specific object type from the generic objects list is also required. For example, select Include System Objects and Subscriptions.
In addition, you can select the Include Authority Records checkbox to collect the authority records for any objects you select in the Object Types list. The Authority Records checkbox located in the Object Types list, when selected, will gather authority records for all object types. - Click the Next icon in the Import/Export toolbar.
- In the displayed confirmation screen, review the details of the objects you want to export and then click the Execute icon to export the file, or click the calendar icon to schedule the export for a later time (repeated exports can be automatically scheduled as required). See Scheduling-tasks for further information on scheduling. Note that you can also click the Back arrow icon to return to the previous export screen or click the Cancel icon to exit the export process.
- The Action Results screen is displayed, indicating the result of the actions you reviewed in Step 8.
To export IBM MQ objects to a connection
- In the Import/Export Object Definitions screen, select the Export Action.
- Select from one of the following:
- Connection: If you want to export objects from (or by) a connection, select Connection and then select the relevant connection from the drop-down list.
- Tag: If you want to select objects from (or by) a specific tag to export, select Tag and then select the relevant tag from the drop-down list.
- In the To drop-down list, select Connection(s). The Selected Connections and Available Connections list boxes are displayed. If you selected Tag in the previous step, an additional connection list box is displayed, from which you must select the relevant connection referenced by the tag.
- Repeat Steps 4 - 9 from the above procedure for exporting objects to a file.
You can also define whether or not to tag the exported objects by selecting the relevant option from the Object Tagging section:- Do Not Tag Imported Objects: Select this option (it is selected by default) if you do not want to tag any of the imported objects.
- Tag Imported Objects Using: Select this option to display a drop-down list of available tags that you can tag the imported objects with. Select the relevant tag. Note that you can also enter a new tag name into the field to assign the objects to that new tag.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*