Copying a local subscription definition

You can copy a subscription definition using the LIKE attribute on the DEFINE command.

Before you begin

Note: The examples in this task require you to run MQSC commands. How you do this varies by platform. See Administering IBM® MQ using MQSC commands.

Example

DEFINE SUB(BLUE) +
       LIKE(ORANGE)
You can also copy the attributes of the sub REAL to the sub THIRD.SUB, and specify that the correlID of delivered publications is THIRD, rather than the publishers correlID. For example:
DEFINE SUB(THIRD.SUB) +
       LIKE(BLUE) +
       DESTCORL(ORANGE)