The IBM MQ for z/OS Generate MQSC Commands plugin for IBM Urban Code Deploy (UCD) allows users to deploy MQ queue and channel resources, represented in JSON form and held in a triplet of files in a Source Control Management (SCM) system, onto a target MQ for z/OS Queue Manager environment defined in UCD. The files consist of:
- base MQ resource definitions,
- override values per target deployment environment,
- properties values.
The following example, which uses a slightly simplified syntax for illustrative purposes, demonstrates the deployment of a local queue:
Notice how the maximum depth of local queue PAYQ varies depending on the target deployment environment. The local queue name and other queue attributes can, in a similar way, be varied based on the target environment. Detailed examples, with specific syntax, can be found in the white paper that accompanies the plugin.
The plugin is designed to be defined as a step in an IBM UCD process so that when the process is deployed against a target IBM MQ for z/OS Queue Manager environment, resources are automatically defined with the attribute values specified for the target environment. For example:
where, the first step downloads the triplet of files, that had previously been imported from the SCM system into the UCD repository, the second step converts the JSON form into the MQSC form, and the third step submits the IBM MQ CSQUTIL batch job to run the MQSC commands against the target IBM MQ for z/OS Queue Manager environment to define the MQ resources.
For full details about the plugin and the white paper, see: https://developer.ibm.com/urbancode/plugin/ibm-mq-for-zos/