Discussion:
Dummy out a queue...
Coombs, Lawrence
2014-09-11 16:53:50 UTC
Permalink
Has anyone else ever had a need to "dummy" out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Bob Juch
2014-09-11 17:28:54 UTC
Permalink
Not yet, but how would that even be possible to do?

On Thu, Sep 11, 2014 at 9:53 AM, Coombs, Lawrence <
Has anyone else ever had a need to “dummy” out a queue like you would a
dataset on z/OS? It might sound strange, but when running a stress test,
that might come in handy.
This message, including any attachments, is the property of Sears
Holdings Corporation and/or one of its subsidiaries. It is confidential and
may contain proprietary or legally privileged information. If you are not
the intended recipient, please delete it without reading the contents.
Thank you.
------------------------------
List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage
Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>
To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Tuben, Gregg
2014-09-11 17:45:54 UTC
Permalink
you could create an application that does a destructive MQGET of zero length in a loop – either start before your test or trigger it. not exactly what you want but if create a queue called DUMMY and alias the applications queue to it you would be real close.



From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of Bob Juch
Sent: Thursday, September 11, 2014 10:29 AM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: Dummy out a queue...

Not yet, but how would that even be possible to do?

On Thu, Sep 11, 2014 at 9:53 AM, Coombs, Lawrence <***@searshc.com<mailto:***@searshc.com>> wrote:
Has anyone else ever had a need to “dummy” out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.
This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Jefferson Lowrey
2014-09-11 17:42:33 UTC
Permalink
Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?


Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <***@SEARSHC.COM>
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <***@LISTSERV.MEDUNIWIEN.AC.AT>



Has anyone else ever had a need to “dummy” out a queue like you would a
dataset on z/OS? It might sound strange, but when running a stress test,
that might come in handy.
This message, including any attachments, is the property of Sears Holdings
Corporation and/or one of its subsidiaries. It is confidential and may
contain proprietary or legally privileged information. If you are not the
intended recipient, please delete it without reading the contents. Thank
you.


List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com


To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Potkay, Peter M (CTO Architecture + Engineering)
2014-09-11 18:14:41 UTC
Permalink
Or allow a queue to be a black hole where you can dump messages (because the app can’t change the messages to have an Expiry of “1”).



Peter Potkay

From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of Jefferson Lowrey
Sent: Thursday, September 11, 2014 1:43 PM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: Dummy out a queue...

Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?


Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <***@SEARSHC.COM<mailto:***@SEARSHC.COM>>
To: ***@LISTSERV.MEDUNIWIEN.AC.AT<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT>
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <***@LISTSERV.MEDUNIWIEN.AC.AT<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT>>
________________________________



Has anyone else ever had a need to “dummy” out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************


To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Coombs, Lawrence
2014-09-11 18:25:48 UTC
Permalink
I would like it to work exactly like z/OS where you can just send the data a black hole as Petr said. It would work like /dev/null in UNIX.

From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Thursday, September 11, 2014 1:15 PM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: Dummy out a queue...

Or allow a queue to be a black hole where you can dump messages (because the app can’t change the messages to have an Expiry of “1”).



Peter Potkay

From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of Jefferson Lowrey
Sent: Thursday, September 11, 2014 1:43 PM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT>
Subject: Re: Dummy out a queue...

Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?


Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <***@SEARSHC.COM<mailto:***@SEARSHC.COM>>
To: ***@LISTSERV.MEDUNIWIEN.AC.AT<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT>
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <***@LISTSERV.MEDUNIWIEN.AC.AT<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT>>
________________________________



Has anyone else ever had a need to “dummy” out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.


To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Jefferson Lowrey
2014-09-11 18:46:46 UTC
Permalink
Ok. Then Gregg Tuben's suggestion is the only way to do it - set up a
consumer that reads messages continually, and has a buffer length of maybe
1 and ACCEPT_TRUNCATED_MSG set so that it will pull messages of any size.

I wasn't familiar with the zOS dataset meaning of 'dummy', sorry.

Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <***@SEARSHC.COM>
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Date: 09/11/2014 01:26 PM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <***@LISTSERV.MEDUNIWIEN.AC.AT>



I would like it to work exactly like z/OS where you can just send the data
a black hole as Petr said. It would work like /dev/null in UNIX.

From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf
Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Thursday, September 11, 2014 1:15 PM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: Dummy out a queue...

Or allow a queue to be a black hole where you can dump messages (because
the app can’t change the messages to have an Expiry of “1”).



Peter Potkay

From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf
Of Jefferson Lowrey
Sent: Thursday, September 11, 2014 1:43 PM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: Dummy out a queue...

Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?


Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <***@SEARSHC.COM>
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <***@LISTSERV.MEDUNIWIEN.AC.AT>




Has anyone else ever had a need to “dummy” out a queue like you would a
dataset on z/OS? It might sound strange, but when running a stress test,
that might come in handy.
This message, including any attachments, is the property of Sears Holdings
Corporation and/or one of its subsidiaries. It is confidential and may
contain proprietary or legally privileged information. If you are not the
intended recipient, please delete it without reading the contents. Thank
you.

List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com


List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************


List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
This message, including any attachments, is the property of Sears Holdings
Corporation and/or one of its subsidiaries. It is confidential and may
contain proprietary or legally privileged information. If you are not the
intended recipient, please delete it without reading the contents. Thank
you.


List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com


To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Neil Casey
2014-09-11 22:52:32 UTC
Permalink
Hi listers,

actually there is another way to do this. No consumer is required.

Create a topic (TopicName). Don’t create any subscribers to it. Give it a topic string that isn’t going to match something that an application would have a generic subscription on.
Instead of putting to a local queue, create a QAlias, with targtype(topic) and target(TopicName).

Your PUTs will complete beautifully, and MQ will publish the message to the topic. Since there are no subscribers, the message is just discarded. Your putting application is completely unaware of any difference.

And now for the really nice thing… if someone now decides that they need to run a test where that discarded output has to be captured, you can just run a program that subscribes to the topic, or create an administrative subscription and copy the messages into a queue of your choice.

Now, if only pub/sub didn’t screw up the message ids, we’d have a really useful system. <Sigh/>

Regards,


Neil
--
Neil Casey
Senior Consultant | Syntegrity Solutions

+61 414 615 334 neil.casey-VLLIzlmz+***@public.gmane.org
Syntegrity Solutions Pty Ltd | Level 23 | 40 City Road | Southgate | VIC 3006
Analyse >> Integrate >> Secure >> Educate
Ok. Then Gregg Tuben's suggestion is the only way to do it - set up a consumer that reads messages continually, and has a buffer length of maybe 1 and ACCEPT_TRUNCATED_MSG set so that it will pull messages of any size.
I wasn't familiar with the zOS dataset meaning of 'dummy', sorry.
Thank you,
Jeff Lowrey
Date: 09/11/2014 01:26 PM
Subject: Re: [MQSERIES] Dummy out a queue...
I would like it to work exactly like z/OS where you can just send the data a black hole as Petr said. It would work like /dev/null in UNIX.
Sent: Thursday, September 11, 2014 1:15 PM
Subject: Re: Dummy out a queue...
Or allow a queue to be a black hole where you can dump messages (because the app can’t change the messages to have an Expiry of “1”).
Peter Potkay
Sent: Thursday, September 11, 2014 1:43 PM
Subject: Re: Dummy out a queue...
Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?
Thank you,
Jeff Lowrey
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Has anyone else ever had a need to “dummy” out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.
This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Coombs, Lawrence
2014-09-12 01:30:22 UTC
Permalink
I like this suggestion. I have used this pattern, but not discarded the messages. I appreciate the feedback.

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Thursday, September 11, 2014 5:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Dummy out a queue...

Hi listers,

actually there is another way to do this. No consumer is required.

Create a topic (TopicName). Don't create any subscribers to it. Give it a topic string that isn't going to match something that an application would have a generic subscription on.
Instead of putting to a local queue, create a QAlias, with targtype(topic) and target(TopicName).

Your PUTs will complete beautifully, and MQ will publish the message to the topic. Since there are no subscribers, the message is just discarded. Your putting application is completely unaware of any difference.

And now for the really nice thing... if someone now decides that they need to run a test where that discarded output has to be captured, you can just run a program that subscribes to the topic, or create an administrative subscription and copy the messages into a queue of your choice.

Now, if only pub/sub didn't screw up the message ids, we'd have a really useful system. <Sigh/>

Regards,


Neil


--
Neil Casey
Senior Consultant | Syntegrity Solutions

[cid:image001.jpg-+***@public.gmane.org] +61 414 615 334<tel:+61%20414%20615%20334>[cid:image002.jpg-+***@public.gmane.org] neil.casey-VLLIzlmz+***@public.gmane.org <mailto:neil.casey-VLLIzlmz+***@public.gmane.org>
Syntegrity Solutions Pty Ltd<http://www.syntegrity.com.au/> | Level 23 | 40 City Road | Southgate | VIC 3006
Analyse >> Integrate >> Secure >> Educate

[cid:image003.png-+***@public.gmane.org]

On 12 Sep 2014, at 4:46 am, Jefferson Lowrey <jlowrey-rIXRsD/***@public.gmane.org<mailto:jlowrey-rIXRsD/***@public.gmane.org>> wrote:


Ok. Then Gregg Tuben's suggestion is the only way to do it - set up a consumer that reads messages continually, and has a buffer length of maybe 1 and ACCEPT_TRUNCATED_MSG set so that it will pull messages of any size.

I wasn't familiar with the zOS dataset meaning of 'dummy', sorry.

Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <Lawrence.Coombs-***@public.gmane.org<mailto:Lawrence.Coombs-***@public.gmane.org>>
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd8hNtF/***@public.gmane.orgNIWIEN.AC.AT>
Date: 09/11/2014 01:26 PM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>>
________________________________



I would like it to work exactly like z/OS where you can just send the data a black hole as Petr said. It would work like /dev/null in UNIX.

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Thursday, September 11, 2014 1:15 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Dummy out a queue...

Or allow a queue to be a black hole where you can dump messages (because the app can't change the messages to have an Expiry of "1").



Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Jefferson Lowrey
Sent: Thursday, September 11, 2014 1:43 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Dummy out a queue...

Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?


Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <Lawrence.Coombs-***@public.gmane.org<mailto:Lawrence.Coombs-***@public.gmane.org>>
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd8hNtF/***@public.gmane.orgNIWIEN.AC.AT>
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>>
________________________________




Has anyone else ever had a need to "dummy" out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

________________________________

List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________

List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************


________________________________

List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Tuben, Gregg
2014-09-12 01:55:26 UTC
Permalink
Neil,
very nice solution!
Gregg

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Neil Casey
Sent: Thursday, September 11, 2014 3:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Dummy out a queue...

Hi listers,

actually there is another way to do this. No consumer is required.

Create a topic (TopicName). Don't create any subscribers to it. Give it a topic string that isn't going to match something that an application would have a generic subscription on.
Instead of putting to a local queue, create a QAlias, with targtype(topic) and target(TopicName).

Your PUTs will complete beautifully, and MQ will publish the message to the topic. Since there are no subscribers, the message is just discarded. Your putting application is completely unaware of any difference.

And now for the really nice thing... if someone now decides that they need to run a test where that discarded output has to be captured, you can just run a program that subscribes to the topic, or create an administrative subscription and copy the messages into a queue of your choice.

Now, if only pub/sub didn't screw up the message ids, we'd have a really useful system. <Sigh/>

Regards,


Neil


--
Neil Casey
Senior Consultant | Syntegrity Solutions

[cid:image001.jpg-JlZNj7M5gna21kHQ4+***@public.gmane.org] +61 414 615 334<tel:+61%20414%20615%20334>[cid:image002.jpg-JlZNj7M5gna21kHQ4+***@public.gmane.org] neil.casey-VLLIzlmz+***@public.gmane.org <mailto:neil.casey-VLLIzlmz+***@public.gmane.org>
Syntegrity Solutions Pty Ltd<http://www.syntegrity.com.au/> | Level 23 | 40 City Road | Southgate | VIC 3006
Analyse >> Integrate >> Secure >> Educate

[cid:image003.png-JlZNj7M5gna21kHQ4+***@public.gmane.org]

On 12 Sep 2014, at 4:46 am, Jefferson Lowrey <jlowrey-rIXRsD/***@public.gmane.org<mailto:jlowrey-rIXRsD/***@public.gmane.org>> wrote:


Ok. Then Gregg Tuben's suggestion is the only way to do it - set up a consumer that reads messages continually, and has a buffer length of maybe 1 and ACCEPT_TRUNCATED_MSG set so that it will pull messages of any size.

I wasn't familiar with the zOS dataset meaning of 'dummy', sorry.

Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <Lawrence.Coombs-***@public.gmane.org<mailto:Lawrence.Coombs-***@public.gmane.org>>
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd8hNtF/***@public.gmane.orgNIWIEN.AC.AT>
Date: 09/11/2014 01:26 PM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>>
________________________________



I would like it to work exactly like z/OS where you can just send the data a black hole as Petr said. It would work like /dev/null in UNIX.

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO Architecture + Engineering)
Sent: Thursday, September 11, 2014 1:15 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Dummy out a queue...

Or allow a queue to be a black hole where you can dump messages (because the app can't change the messages to have an Expiry of "1").



Peter Potkay

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Jefferson Lowrey
Sent: Thursday, September 11, 2014 1:43 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Dummy out a queue...

Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?


Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <Lawrence.Coombs-***@public.gmane.org<mailto:Lawrence.Coombs-***@public.gmane.org>>
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd8hNtF/***@public.gmane.orgNIWIEN.AC.AT>
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>>
________________________________




Has anyone else ever had a need to "dummy" out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

________________________________

List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________

List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************


________________________________

List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>


________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Neil Casey
2014-09-12 01:57:10 UTC
Permalink
Thanks Gregg,

glad you like it.


Neil
--
Neil Casey
Senior Consultant | Syntegrity Solutions

+61 414 615 334 neil.casey-VLLIzlmz+***@public.gmane.org
Syntegrity Solutions Pty Ltd | Level 23 | 40 City Road | Southgate | VIC 3006
Analyse >> Integrate >> Secure >> Educate
Post by Tuben, Gregg
Neil,
very nice solution!
Gregg
Sent: Thursday, September 11, 2014 3:53 PM
Subject: Re: Dummy out a queue...
Hi listers,
actually there is another way to do this. No consumer is required.
Create a topic (TopicName). Don’t create any subscribers to it. Give it a topic string that isn’t going to match something that an application would have a generic subscription on.
Instead of putting to a local queue, create a QAlias, with targtype(topic) and target(TopicName).
Your PUTs will complete beautifully, and MQ will publish the message to the topic. Since there are no subscribers, the message is just discarded. Your putting application is completely unaware of any difference.
And now for the really nice thing… if someone now decides that they need to run a test where that discarded output has to be captured, you can just run a program that subscribes to the topic, or create an administrative subscription and copy the messages into a queue of your choice.
Now, if only pub/sub didn’t screw up the message ids, we’d have a really useful system. <Sigh/>
Regards,
Neil
--
Neil Casey
Senior Consultant | Syntegrity Solutions
Syntegrity Solutions Pty Ltd | Level 23 | 40 City Road | Southgate | VIC 3006
Analyse >> Integrate >> Secure >> Educate
<image003.png>
Ok. Then Gregg Tuben's suggestion is the only way to do it - set up a consumer that reads messages continually, and has a buffer length of maybe 1 and ACCEPT_TRUNCATED_MSG set so that it will pull messages of any size.
I wasn't familiar with the zOS dataset meaning of 'dummy', sorry.
Thank you,
Jeff Lowrey
Date: 09/11/2014 01:26 PM
Subject: Re: [MQSERIES] Dummy out a queue...
I would like it to work exactly like z/OS where you can just send the data a black hole as Petr said. It would work like /dev/null in UNIX.
Sent: Thursday, September 11, 2014 1:15 PM
Subject: Re: Dummy out a queue...
Or allow a queue to be a black hole where you can dump messages (because the app can’t change the messages to have an Expiry of “1”).
Peter Potkay
Sent: Thursday, September 11, 2014 1:43 PM
Subject: Re: Dummy out a queue...
Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?
Thank you,
Jeff Lowrey
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Has anyone else ever had a need to “dummy” out a queue like you would a dataset on z/OS? It might sound strange, but when running a stress test, that might come in handy.
This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
T.Rob
2014-09-12 07:34:05 UTC
Permalink
And the official suggested topic name? You sound like you've uses this
technique so you *must* have a topic name. Thoughts.



Never//ever//EVER//subscribe//here

(Very utilitarian and not likely to ever be intentionally subscribed. Note
the empty topic string levels to further confound would-be subscribers.)



Contemporary/Statesmen

Contemporary/Stateswomen

(Good for testing when there is much demand but zero instances of the data
in question. Not a direct fit for the requirement but useful for certain
types of testing.)



Flat/Earth/Theory

(Something almost nobody subscribes to anymore.)



Stenographer/Weekly

(Ditto.)



/Military/Intelligence

(Said to be an oxymoron and rumored not to exist.)



NSA/Data/Feed

(At least you'll know *why* there's a ghost subscriber.)



Instruction/Manual

(Lots of subscribers but nobody reads the content. Good for performance
testing when you need to give the local QMgr q workout but want the messages
discarded on arrival.)



Die/Wesley/Crusher/Die

(Once a very active topic, now a ghost town.)



Geocities/users/#

(Yet another ghost town.)



Got to go board a plane but it's a good start.



Kind regards,

-- T.Rob



T.Robert Wyatt, Managing partner

IoPT Consulting, LLC

+1 704-443-TROB

https://ioptconsulting.com

https://twitter.com/tdotrob



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Neil Casey
Sent: Thursday, September 11, 2014 18:53 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Dummy out a queue...



Hi listers,



actually there is another way to do this. No consumer is required.



Create a topic (TopicName). Don't create any subscribers to it. Give it a
topic string that isn't going to match something that an application would
have a generic subscription on.

Instead of putting to a local queue, create a QAlias, with targtype(topic)
and target(TopicName).



Your PUTs will complete beautifully, and MQ will publish the message to the
topic. Since there are no subscribers, the message is just discarded. Your
putting application is completely unaware of any difference.



And now for the really nice thing. if someone now decides that they need to
run a test where that discarded output has to be captured, you can just run
a program that subscribes to the topic, or create an administrative
subscription and copy the messages into a queue of your choice.



Now, if only pub/sub didn't screw up the message ids, we'd have a really
useful system. <Sigh/>



Regards,





Neil
--
Neil Casey

Senior Consultant | Syntegrity Solutions


+61 414 615 334 <tel:+61%20414%20615%20334>
<mailto:neil.casey-VLLIzlmz+***@public.gmane.org> neil.casey-VLLIzlmz+***@public.gmane.org

Syntegrity Solutions Pty Ltd <http://www.syntegrity.com.au/> | Level 23 |
40 City Road | Southgate | VIC 3006

Analyse >> Integrate >> Secure >> Educate






On 12 Sep 2014, at 4:46 am, Jefferson Lowrey <jlowrey-rIXRsD/***@public.gmane.org> wrote:





Ok. Then Gregg Tuben's suggestion is the only way to do it - set up a
consumer that reads messages continually, and has a buffer length of maybe 1
and ACCEPT_TRUNCATED_MSG set so that it will pull messages of any size.

I wasn't familiar with the zOS dataset meaning of 'dummy', sorry.

Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" <Lawrence.Coombs-***@public.gmane.org>
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Date: 09/11/2014 01:26 PM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List <MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>

_____




I would like it to work exactly like z/OS where you can just send the data a
black hole as Petr said. It would work like /dev/null in UNIX.

From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Potkay, Peter M (CTO
Architecture + Engineering)
Sent: Thursday, September 11, 2014 1:15 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Dummy out a queue...

Or allow a queue to be a black hole where you can dump messages (because the
app can't change the messages to have an Expiry of "1").



Peter Potkay

From: MQSeries List [ <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Jefferson Lowrey
Sent: Thursday, September 11, 2014 1:43 PM
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Dummy out a queue...

Do you mean
"Fill a queue with messages with random content"?
"Fill a queue with messages with random VALID content"?
"Fill a queue with messages with empty data of a fixed size"?
"Fill a queue storage file with random data"?


Thank you,

Jeff Lowrey




From: "Coombs, Lawrence" < <mailto:Lawrence.Coombs-***@public.gmane.org>
Lawrence.Coombs-***@public.gmane.org>
To: <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Date: 09/11/2014 11:54 AM
Subject: Re: [MQSERIES] Dummy out a queue...
Sent by: MQSeries List < <mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>
MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org>

_____





Has anyone else ever had a need to "dummy" out a queue like you would a
dataset on z/OS? It might sound strange, but when running a stress test,
that might come in handy.

This message, including any attachments, is the property of Sears Holdings
Corporation and/or one of its subsidiaries. It is confidential and may
contain proprietary or legally privileged information. If you are not the
intended recipient, please delete it without reading the contents. Thank
you.

_____


<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>




_____


<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at
<http://www.lsoft.com/resources/manuals.asp> http://www.lsoft.com

************************************************************
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.
************************************************************


_____


<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

This message, including any attachments, is the property of Sears Holdings
Corporation and/or one of its subsidiaries. It is confidential and may
contain proprietary or legally privileged information. If you are not the
intended recipient, please delete it without reading the contents. Thank
you.

_____

<http://listserv.meduniwien.ac.at/archives/mqser-l.html> List Archive -
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> Manage Your
List Settings -
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries> Unsubscribe

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>





_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>





_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Loading...