View previous topic :: View next topic
|
Author |
Message |
PrabakarV
New User
Joined: 21 Dec 2007 Posts: 88 Location: My Desk
|
|
|
|
Hi,
My requirement is to check a list of MQs against the MQ manager about their existance in MQ manager...
simply saying i have list of MQs in a PS file. I have to check whether they exists or not in MQM...
is there any way to achive this thru REXX? Thanks |
|
Back to top |
|
|
kaushik8205
New User
Joined: 10 Nov 2006 Posts: 49 Location: Canada
|
|
|
|
Hi,
Is there a specific requirement for doing this task with REXX..
As per my understanding this should be a one time task to check all obsolete Qs..
Thanks. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
You could use CSQUTIL program to list the Queues and then parse the SYSPRINT to do a match program with your table.
Code: |
//TESTSTEP EXEC PGM=CSQUTIL,PARM='CSQ1'
//*YSPRINT DD SYSOUT=*
//SYSPRINT DD DSN=&&MQPRINT,DISP=(,PASS),UNIT=SYSDA,
// SPACE=(CYL,(1,1)),RECFM=FB,LRECL=121,BLKSIZE=0
//SYSIN DD *
COMMAND DDNAME(CMDINP)
/*
//CMDINP DD *
DISPLAY QUEUE(*) ALL |
|
|
Back to top |
|
|
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
This check is just constrained to local Queue/channels, for remote queue/channels, there is no way to check without the support of the remote part's help.
Incorrect. See next reply. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Using the TGTQMGR(qmgrname) parameter makes it possible to query remote queue managers.
Suitable queues and channels have to be set up to access the remote queue manager.
If that is not the case one can trigger the jobs on other systems (/*ROUTE XEQ) and route the output to a central point.
Or if SA/390 is implemented remote execution can be performed by the INGSEND command. |
|
Back to top |
|
|
|