View previous topic :: View next topic |
Author |
Message |
SK2007 Beginner
Joined: 25 Jan 2007 Posts: 40 Topics: 17
|
Posted: Wed Aug 03, 2011 9:26 am Post subject: Channel Status in Z/OS console |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Aug 03, 2011 11:28 am Post subject: |
|
|
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 |
|
 |
SK2007 Beginner
Joined: 25 Jan 2007 Posts: 40 Topics: 17
|
Posted: Wed Aug 03, 2011 1:42 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|