IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Check MQ existance using REXX


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Tue Oct 06, 2009 11:45 am
Reply with quote

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
View user's profile Send private message
kaushik8205

New User


Joined: 10 Nov 2006
Posts: 49
Location: Canada

PostPosted: Sat Nov 07, 2009 1:17 am
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Sat Nov 07, 2009 2:15 am
Reply with quote

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
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Sun Nov 08, 2009 12:42 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Nov 08, 2009 4:13 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top