Copying an administrative topic definition
We can copy a topic definition using the LIKE attribute on the DEFINE command.
For example:DEFINE TOPIC (MAGENTA.TOPIC) + LIKE (ORANGE.TOPIC)This command creates a topic, MAGENTA.TOPIC, with the same attributes as the original topic, ORANGE.TOPIC, rather than those of the system default administrative topic. Enter the name of the topic to be copied exactly as it was entered when you created the topic. If the name contains lowercase characters, enclose the name in single quotation marks.
We can also use this form of the DEFINE command to copy a topic definition, but make changes to the attributes of the original. For example:DEFINE TOPIC(BLUE.TOPIC) + TOPICSTR(BLUE) + LIKE(ORANGE.TOPIC)We can also copy the attributes of the topic BLUE.TOPIC to the topic GREEN.TOPIC and specify that when publications cannot be delivered to their correct subscriber queue they are not placed onto the dead-letter queue. For example:DEFINE TOPIC(GREEN.TOPIC) + TOPICSTR(GREEN) + LIKE(BLUE.TOPIC) + USEDLQ(NO)