2523 (09DB) (RC2523): MQRC_INVALID_SUBSCRIPTION
Explanation
An MQSUB call using MQSO_RESUME or MQSO_ALTER failed because the subscription named is not valid for use by applications. This can be for one of the following reasons:- The subscription is the SYSTEM.DEFAULT.SUB subscription, which is not a valid subscription and should only be used to specify the default values on DEFINE SUB commands.
- The subscription is a proxy type subscription, which is not a valid subscription for an application to resume and is only used to enable publications to be forwarded between queue managers.
- The subscription has expired and is no longer valid for use.
- The subscription is a JMS 2.0 shared subscription which is not a valid subscription for a non-JMS 2.0 application to resume or alter.
- The subscription is a JMS 2.0shared subscription which is not a valid subscription for a non-JMS 2.0 application to resume or alter.
Completion code
MQCC_FAILED
Programmer response
Ensure the subscription named in the SubName field is not one of the invalid ones listed. If we have a handle open to the subscription already it must have expired. Use MQCLOSE to close the handle and then if necessary create a new subscription.
Parent topic: API reason codes