ASPLMQ User Guide v 1.00
© 2026 Bassem W. Jamaleddine


2-3

   Grouping Class for IBM MQ Channel Attributes


This section explains how to use ASPL to detect changes in IBM MQ channel attributes. The scripting provided here enables visual comparisons that contrast channel attribute modifications, whether they occur within the same queue manager or across distributed queue managers in a cloud environment.

ASPL scripting requires the following prerequisites:
  • Define the Element Grouping Class: Create the IBMMQ_CHANNELS_GROUP class to describe the channel attributes.
  • Code the Global Grouping Function: Code the ggqmgrchann() function to return the GADg pointer to a queue manager's channel group.
  • Create the Workspace: Establish the ACME_CHANNELS workspace to save group variables pointing to the baseline channel configurations of a queue manager.
  • Prepare the Initial Set Variables: Configure the initial set variables in the acme_channels.aspl script; these parameters are interrogated as differential group variables to expose configuration changes across the queue managers.
  • This section is not included in the SAMPLE PREVIEW.

    ■ Displaying the Channels: channelsdisp.pl

    Analyzing and comparing channels across distributed queue managers involves generating set variables dynamically inside the temporary TRANSIENT namedspace. Operating under the IBMMQ_CHANNELS_GROUP element grouping class, this transient workspace serves as a volatile memory space that ASPL automatically destroys with all runtime variables once the script exits.

    The channelsdisp.pl script displays the channel configurations for various queue managers running across a cloud environment. For the complete source code of channelsdisp.pl, refer to Appendix Script to Display IBM MQ Channels: channelsdisp.pl. To view the usage syntax for channelsdisp.pl, run the script without arguments at the shell prompt, as shown in Figure 2.3.9.
    full view

    Image File

     Fig. 2.3.1   [Usage of channelsdisp.pl]
    ASPLMQ 2026 by Bassem Jamaleddine
    This section is not included in the SAMPLE PREVIEW.

     

    ■ Comparing the Channels: channelscompare.pl


    The channelscompare.pl script compares the channel configurations of multiple queue managers running across a cloud environment. For the complete source code of channelscompare.pl, refer to Appendix Script to Compare IBM MQ Channels: channelscompare.pl. To view the usage syntax for channelscompare.pl, run the script without arguments at the shell prompt, as shown in Figure 2.3.12.

    full view

    Image File

     Fig. 2.3.2   [Usage of channelscompare.pl]
    ASPLMQ 2026 by Bassem Jamaleddine
    This section is not included in the SAMPLE PREVIEW.