MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Channel Status in Z/OS console

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
SK2007
Beginner


Joined: 25 Jan 2007
Posts: 40
Topics: 17

PostPosted: Wed Aug 03, 2011 9:26 am    Post subject: Channel Status in Z/OS console Reply with quote

Hi,

I would like to know the CHANNEL status, but the given job gave error(Invalid function DISPLAY). Please let me know how to find channel status thru JCL.


Code:

//MQDISCH  JOB  (),'MQ',                                               
//         REGION=4M,                                                   
//         CLASS=S,                                                     
//         TIME=(1),                                                   
//         MSGCLASS=H,                                                 
//         NOTIFY=&SYSUID                                               
//******************************************************************   
//CHSTAT   EXEC PGM=CSQUTIL,PARM='MQMG' <-- MQ MANAGER NAME             
//******************************************************************   
//STEPLIB  DD DSN=MQ.SCSQANLE,DISP=SHR                                 
//         DD DSN=MQ.SCSQAUTH,DISP=SHR                                 
//SYSPRINT DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
DISPLAY CHSTATUS(QM1.TO.QM2) CURRENT                                   
/*                                                                     


Thanks
SK2007
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Aug 03, 2011 11:28 am    Post subject: Reply with quote

SK2007,

Shouldn't you be passing the COMMANDS via a different DDname instead of SYSIN?

Code:

//CHSTAT   EXEC PGM=CSQUTIL,PARM='MQMG'
//STEPLIB  DD DSN=MQ.SCSQANLE,DISP=SHR                                 
//         DD DSN=MQ.SCSQAUTH,DISP=SHR                                 
//SYSPRINT DD SYSOUT=*                                                 
//SYSIN    DD * 
  COMMAND DDNAME(CMDINP)
//CMDINP DD *
  DISPLAY CHANNEL(*) ALL
//*



Read chapter 18 in here about invoking CSQUTIL

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/download/CSQSAW03.pdf?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SK2007
Beginner


Joined: 25 Jan 2007
Posts: 40
Topics: 17

PostPosted: Wed Aug 03, 2011 1:42 pm    Post subject: Reply with quote

Thanks much Kolusu, for your help.

My aim is to figureout what are channles are not in RUN status. So I tried
Code:

DISPLAY CHSTATUS(*) CURRENT

But it didn't list INACTIVE status channels. It gave only STOPPED,RETRYING and RUNNING statuses.
What is the command should be used to get all types of statuses?

Thanks
SK2007.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Aug 03, 2011 2:30 pm    Post subject: Reply with quote

SK2007,

Did you look at the Sample I provided? Did you try using ALL ? You can look up the the commands you can use with CSQUTIL which are documented Script Command Reference in chapter 2 here

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/download/CSQZAJ10.pdf?


Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group