Discussion:
QLOAD to get message count?
Jackson, Richard R.
2014-10-06 20:37:26 UTC
Permalink
Gang


I've used QLOAD to bitbucket selected message by specifying DD Dummy for the output file.

//Q1 EXEC PGM=QLOAD,PARM=('-mMQ30 -IXXFU.TEST.CONVERT.YES
// -F"//DD:OFILE" -T100 ')
//OFILE DD DUMMY
//

This time I wanted to Browse a queue with the Search function and specify DD Dummy for the output.

SYSOUT is usually the selection feedback (with the file /record count)

The DD for the output file is DD DUMMY. It didn't go so well.

//Q1 EXEC PGM=QLOAD,PARM=('-mMQMU -iMQM.SYS.COPY.DEAD.QUEUE
// -f"//DD:OFILE" -S INVFMT ')
//OFILE DD DUMMY
//

This is what I get in the SYSOUT in a loop. Any ideas???

QLOAD Program by Paul Clarke Ý V1.6 Build:Nov 6 2008 š
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

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
PAUL CLARKE
2014-10-06 22:50:44 UTC
Permalink
Hi,

Have you tried using parameter -F rather than -f. -F forces overwrite of an existing file.

Cheers,
Paul.




________________________________
From: "Jackson, Richard R." <RJackson-2i2pPuz+***@public.gmane.org>
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Sent: Monday, 6 October 2014, 21:37
Subject: QLOAD to get message count?




Gang
 
 
I’ve used QLOAD to bitbucket selected message by specifying DD Dummy for the output file.
 
//Q1       EXEC PGM=QLOAD,PARM=('-mMQ30 -IXXFU.TEST.CONVERT.YES
//             -F"//DD:OFILE" -T100 ')                          
//OFILE    DD   DUMMY                                          
//                                                             
 
This time I wanted to Browse a queue with the Search function and specify DD Dummy for the output.
 
SYSOUT is usually the selection feedback (with the file /record count)
 
The DD for the output file is DD DUMMY.  It didn’t go so well.
 
//Q1       EXEC PGM=QLOAD,PARM=('-mMQMU -iMQM.SYS.COPY.DEAD.QUEUE
//             -f"//DD:OFILE" -S INVFMT ')                    
//OFILE    DD   DUMMY                                            
//                                                                
 
This is what I get in the SYSOUT in a loop. Any ideas???
 
QLOAD Program by Paul Clarke Ý V1.6 Build:Nov  6 2008 š
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses.  The company accepts no liability for any damage caused by any virus transmitted by this email.
________________________________

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
Jackson, Richard R.
2014-10-07 20:39:50 UTC
Permalink
Kinda worked.

It appears that search will look at the DHL but not the MD.
This queue is not the DLQ of the QMGR but it has copies of the DLQ messages. Upper ‘F’, lower ‘e’
DTM.MERVA is part of the Qname in the DLH.

//Q1 EXEC PGM=QLOAD,PARM=('-mMQMU -iMQM.SYS.COPY.DEAD.QUEUE
// -F"//DD:OFILE" -e DTM.MERVA')
//OFILE DD DUMMY

SYSOUT:

QLOAD Program by Paul Clarke Ý V1.6 Build:Nov 6 2008 š
Read - Files: 0 Messages: 10364 Bytes: 6711599
Written - Files: 1 Messages: 7 Bytes: 4390


From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of PAUL CLARKE
Sent: Monday, October 06, 2014 6:51 PM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: QLOAD to get message count?

Hi,

Have you tried using parameter -F rather than -f. -F forces overwrite of an existing file.

Cheers,
Paul.


________________________________
From: "Jackson, Richard R." <***@DTCC.COM<mailto:***@DTCC.COM>>
To: ***@LISTSERV.MEDUNIWIEN.AC.AT<mailto:***@LISTSERV.MEDUNIWIEN.AC.AT>
Sent: Monday, 6 October 2014, 21:37
Subject: QLOAD to get message count?

Gang


I’ve used QLOAD to bitbucket selected message by specifying DD Dummy for the output file.

//Q1 EXEC PGM=QLOAD,PARM=('-mMQ30 -IXXFU.TEST.CONVERT.YES
// -F"//DD:OFILE" -T100 ')
//OFILE DD DUMMY
//

This time I wanted to Browse a queue with the Search function and specify DD Dummy for the output.

SYSOUT is usually the selection feedback (with the file /record count)

The DD for the output file is DD DUMMY. It didn’t go so well.

//Q1 EXEC PGM=QLOAD,PARM=('-mMQMU -iMQM.SYS.COPY.DEAD.QUEUE
// -f"//DD:OFILE" -S INVFMT ')
//OFILE DD DUMMY
//

This is what I get in the SYSOUT in a loop. Any ideas???

QLOAD Program by Paul Clarke Ý V1.6 Build:Nov 6 2008 š
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?
File '//DD:OFILE' exists - overwrite (y)es/(n)o/(a)ll ?

DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

________________________________
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>
DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.


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

Loading...