Author |
Message
|
cra1gl1 |
Posted: Wed May 02, 2018 4:40 pm Post subject: Does Define ql(QUEUE1) REPLACE clear the messages in a queue |
|
|
Apprentice
Joined: 25 Apr 2018 Posts: 30
|
Hello,
Shouldn't the runmqsc command "DEFINE QL(QUEUE1) REPLACE" define a new queue called QUEUE1 and if there's already a QUEUE1, replace it?
I tried it by creating a queue, put some msgs in it with amqsput and then defining the same queue again with "REPLACE",. and I noticed that the queue still had the curdepth(> 0). Could someone tell if this how it works or if I'm missing something? Thanks.
Last edited by cra1gl1 on Wed May 02, 2018 5:34 pm; edited 1 time in total |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed May 02, 2018 4:52 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Everything in MQ is case-sensitive. So, 'QUEUE1' and 'queue1' are different queues. If you want to keep mixed case, make sure to surround the name with apostrophes. If you don't enclose in apostrophes, the name will be folded into UPPER-CASE.
DEFINE with REPLACE will Not delete messages _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Last edited by bruce2359 on Wed May 02, 2018 6:51 pm; edited 1 time in total |
|
Back to top |
|
 |
cra1gl1 |
Posted: Wed May 02, 2018 5:16 pm Post subject: |
|
|
Apprentice
Joined: 25 Apr 2018 Posts: 30
|
I edited the first post. I did use upper case both the times. The queue name's QUEUE1. |
|
Back to top |
|
 |
cra1gl1 |
Posted: Wed May 02, 2018 5:25 pm Post subject: |
|
|
Apprentice
Joined: 25 Apr 2018 Posts: 30
|
bruce2359 wrote: |
DEFINE with REPLACE will Not delete message[/b]s. |
I tried this, but it didn't fail. Command ran successfully and I still see the messages. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed May 02, 2018 5:58 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
The DEFINE REPLACE works to change/replace object attributes. It does NOT delete messages from queues. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri May 04, 2018 12:48 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
The.MQSC CLEAR command will delete messages from a local queue. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
exerk |
Posted: Sat May 05, 2018 2:08 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
bruce2359 wrote: |
The.MQSC CLEAR command will delete messages from a local queue. |
Caveat: Provided there are no open handles on it. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat May 05, 2018 2:48 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Caviar: a delicacy consisting of salt-cured roe of the Acipenseridae family. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|