November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Verify queue deletion operation in WebSphere MQ.

Delete local queue – DELETE command

Delete the local queue QL.A on the runmqsc command interface (error case).

Delete ql (QL.A)
1: delete ql (QL.A)
AMQ 8143: WebSphere MQ queue not empty.

In the case of
Delete ql (QL.A)
1: delete ql (QL.A)
AMQ 8143: WebSphere MQ queue not empty.

Message that QL.A has a message that it can not be deleted. Empty the message in QL.A with the CLEAR command and delete again.

Clear ql (QL.A)
2: clear ql (QL.A)
AMQ 8022: WebSphere MQ queue cleared.
Delete ql (QL.A)
3: delete ql (QL.A)
AMQ 800: WebSphere MQ queue deleted.
In the case of
Clear ql (QL.A)
2: clear ql (QL.A)
AMQ 8022: WebSphere MQ queue cleared.
Delete ql (QL.A)
3: delete ql (QL.A)
AMQ 800: WebSphere MQ queue deleted.

By adding the purge option of the delete command, even if a message is in the queue, it can be deleted as it is.

Dis ql (QL.B) curdepth
1: dis ql (QL.B) curdepth
AMQ 8409: Display Queue details.
QUEUE (QL.B) TYPE (QLOCAL)
CURDEPTH (1)
Delete ql (QL.B) purge
2: delete ql (QL.B) purge
AMQ 800: WebSphere MQ queue deleted.

In the case of
Dis ql (QL.B) curdepth
1: dis ql (QL.B) curdepth
AMQ 8409: Display Queue details.
QUEUE (QL.B) TYPE (QLOCAL)
CURDEPTH (1)
Delete ql (QL.B) purge
2: delete ql (QL.B) purge
AMQ 800: WebSphere MQ queue deleted.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>