You can use the sytem reply list for this – command is WRKRPYLE – Work with reply list entries. You may need to change the relevant job to INQMSGRPY(*SYSRPYL).
you can use system reply list for this, but you have to be aware that system reply lists are very basic devices. The only message properties you can specify are message ID and a comparison of the message data. Other message intrinsic or extrinsic properties (e.g., name of job) are beyond the scope of system reply lists.
If you have a need for more sophisticated responses to messages, there are a number of message management solutions on the market, including one from our company, CCSS.