MQ Reference
MQ Reference
Command Reference
SC33-1369-11
MQSeries
Command Reference
SC33-1369-11
Note! Before using this information and the product it supports, be sure to read the general information under Appendix I. Notices on page 285.
Twelfth edition (March 2000) This edition applies to the following products: v MQSeries for AIX Version 5.1 v MQSeries for AS/400 Version 5 Release 1 v MQSeries for AT&T GIS UNIX Version 2 Release 2 v MQSeries for Digital OpenVMS AXP Version 2 Release 2 v MQSeries for Digital OpenVMS VAX Version 2 Release 2 v MQSeries for Digital UNIX (Compaq Tru64 UNIX) Version 2 Release 2.1 v MQSeries for HP-UX Version 5.1 v MQSeries for OS/2 Warp Version 5.1 v MQSeries for OS/390 Version 2 Release 1 v MQSeries for SINIX and DC/OSx Version 2 Release 2 v MQSeries for Sun Solaris Version 5.1 v MQSeries for Tandem NonStop Kernel Version 2 Release 2.0.1 v MQSeries for Windows NT Version 5.1 and to all subsequent releases and modifications until otherwise indicated in new editions. Copyright International Business Machines Corporation 1993, 2000. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
| |
Contents
Figures . . . . . . . . . . . . . . vii Tables . . . . . . . . . . . . . . . ix About this book . . . . . . . . . . . xi
Who this book is for . . . . . . . . . . . xi How to use this book . . . . . . . . . . . xii Keyword and parameter descriptions . ARCHIVE LOG . . . . . . . . . Keyword and parameter descriptions . Usage notes . . . . . . . . . CLEAR QLOCAL . . . . . . . . Keyword and parameter descriptions . DEFINE BUFFPOOL . . . . . . . Keyword and parameter descriptions . DEFINE CHANNEL . . . . . . . Sender channel . . . . . . . . Server channel . . . . . . . . Receiver channel . . . . . . . Requester channel . . . . . . . Client-connection channel . . . . Server-connection channel . . . . Cluster-sender channel . . . . . Cluster-receiver channel . . . . . Keyword and parameter descriptions DEFINE MAXSMSGS. . . . . . . Keyword and parameter descriptions DEFINE NAMELIST . . . . . . . Keyword and parameter descriptions DEFINE PROCESS . . . . . . . Keyword and parameter descriptions DEFINE PSID . . . . . . . . . Keyword and parameter descriptions DEFINE QALIAS . . . . . . . . Keyword and parameter descriptions Usage notes . . . . . . . . . DEFINE QLOCAL. . . . . . . . Keyword and parameter descriptions DEFINE QMODEL . . . . . . . Keyword and parameter descriptions DEFINE QREMOTE . . . . . . . Keyword and parameter descriptions Usage notes . . . . . . . . . DEFINE STGCLASS . . . . . . . Keyword and parameter descriptions Usage notes . . . . . . . . . DELETE CHANNEL . . . . . . . Keyword and parameter descriptions DELETE NAMELIST . . . . . . . Keyword and parameter descriptions DELETE PROCESS . . . . . . . Keyword and parameter descriptions DELETE QALIAS . . . . . . . . Keyword and parameter descriptions DELETE QLOCAL . . . . . . . Keyword and parameter descriptions DELETE QMODEL . . . . . . . Keyword and parameter descriptions DELETE QREMOTE . . . . . . . Keyword and parameter descriptions DELETE STGCLASS . . . . . . . Keyword and parameter descriptions DISPLAY CHANNEL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 . 86 . 86 . 87 . 88 . 88 . 89 . 89 . 90 . 91 . 93 . 95 . 97 . 99 . 101 . 102 . 104 . 105 . 121 . 121 . 122 . 122 . 124 . 124 . 128 . 128 . 129 . 130 . 133 . 134 . 135 . 145 . 146 . 155 . 156 . 159 . 161 . 161 . 162 . 163 . 163 . 164 . 164 . 165 . 165 . 166 . 166 . 167 . 167 . 168 . 168 . 169 . 169 . 170 . 170 . 171
1
1 2 3 4 5 6 8
11
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 15 17 19 21 23 24 25 27 28 43 43 44 44 47 47 50 51 52 62 63 68 69 77 77 81 81 82 82 83 84
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
iii
Keyword and parameter descriptions DISPLAY CHSTATUS. . . . . . . Keyword and parameter descriptions DISPLAY CLUSQMGR . . . . . . Keyword and parameter descriptions DISPLAY CMDSERV . . . . . . . Usage notes . . . . . . . . . DISPLAY DQM. . . . . . . . . Usage notes . . . . . . . . . DISPLAY MAXSMSGS . . . . . . DISPLAY NAMELIST. . . . . . . Keyword and parameter descriptions DISPLAY PROCESS . . . . . . . Keyword and parameter descriptions DISPLAY QUEUE . . . . . . . . Keyword and parameter descriptions DISPLAY QMGR . . . . . . . . Keyword and parameter descriptions DISPLAY SECURITY . . . . . . . Keyword and parameter descriptions DISPLAY STGCLASS . . . . . . . Keyword and parameter descriptions DISPLAY THREAD . . . . . . . Keyword and parameter descriptions DISPLAY TRACE . . . . . . . . Keyword and parameter descriptions DISPLAY USAGE . . . . . . . . Keyword and parameter descriptions PING CHANNEL . . . . . . . . Keyword and parameter descriptions PING QMGR . . . . . . . . . RECOVER BSDS . . . . . . . . REFRESH CLUSTER . . . . . . . Keyword and parameter descriptions REFRESH SECURITY. . . . . . . Keyword and parameter descriptions RESET CHANNEL . . . . . . . Keyword and parameter descriptions RESET CLUSTER . . . . . . . . Keyword and parameter descriptions RESET TPIPE . . . . . . . . . Keyword and parameter descriptions RESOLVE CHANNEL . . . . . . Keyword and parameter descriptions Usage notes . . . . . . . . . RESOLVE INDOUBT . . . . . . . Keyword and parameter descriptions RESUME QMGR . . . . . . . . Keyword and parameter descriptions RVERIFY SECURITY . . . . . . . Keyword and parameter descriptions START CHANNEL . . . . . . . Keyword and parameter descriptions START CHINIT. . . . . . . . . MQSeries for OS/390. . . . . . MQSeries on other platforms . . . Keyword and parameter descriptions START CMDSERV. . . . . . . . Usage notes . . . . . . . . . START LISTENER . . . . . . . . Keyword and parameter descriptions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
172 176 177 184 185 190 190 191 191 192 193 193 195 195 197 199 206 207 211 211 212 212 214 214 216 216 219 219 220 220 221 222 223 223 224 224 225 225 226 226 227 227 229 229 229 231 231 232 232 233 233 234 234 235 235 235 235 237 237 238 238
START QMGR . . . . . . . . . Keyword and parameter descriptions START TRACE . . . . . . . . . Keyword and parameter descriptions STOP CHANNEL . . . . . . . . Keyword and parameter descriptions STOP CHINIT . . . . . . . . . Usage notes . . . . . . . . . STOP CMDSERV . . . . . . . . Usage notes . . . . . . . . . STOP LISTENER . . . . . . . . Keyword and parameter descriptions STOP QMGR . . . . . . . . . Keyword and parameter descriptions STOP TRACE . . . . . . . . . Keyword and parameter descriptions SUSPEND QMGR . . . . . . . . Keyword and parameter descriptions
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
240 240 241 241 245 245 247 247 248 248 249 249 250 250 251 251 254 254
Appendix A. Command summary . . . 255 Appendix B. How to issue MQSC commands on Digital OpenVMS . . . 261
Using the runmqsc command . . . . . . Issuing MQSC commands interactively . . Issuing MQSC commands from a command Error messages . . . . . . . . . . Verifying MQSC commands . . . . . . . . . file . . . . 261 261 262 263 263
iv
Using the runmqsc command . . . . . . Issuing MQSC commands interactively . . Issuing MQSC commands from a command Error messages . . . . . . . . . . Verifying MQSC commands . . . . .
. . . . file . . . .
Bibliography . . . . . . . . . . . . 301
MQSeries cross-platform publications . . . MQSeries platform-specific publications . . Softcopy books . . . . . . . . . . . BookManager format . . . . . . . . HTML format . . . . . . . . . . Portable Document Format (PDF) . . . PostScript format . . . . . . . . . Windows Help format . . . . . . . MQSeries information available on the Internet . . . . . . . . . . . . . . . . . . 301 303 304 304 304 304 304 304 304
289
Contents
vi
Figures
1. 2. 3. 4. 5. 6. 7. Example command input file for Digital OpenVMS . . . . . . . . . . . . 262 Example report file from Digital OpenVMS 263 Example command input file for OS/2 Warp 266 Example report file from OS/2 Warp 267 Example command input file for OS/400 271 Example report file from OS/400 . . . . . 272 Example command input file for Tandem NSK . . . . . . . . . . . . . . 274 8. 9. 10. 11. 12. Example Example systems Example Example NT . . Example report file from Tandem NSK command input file for UNIX . . . . . . . . . . . . report file from UNIX systems command input file for Windows . . . . . . . . . . . . report file from Windows NT 275 . 278 279 . 282 283
vii
viii
Tables
1. 2. 3. 4. 5. 6. 7. How to read syntax diagrams . . . . . . MQSeries operator and administrator commands . . . . . . . . . . . . Attributes that can be returned by the DISPLAY QUEUE command . . . . . . Destinations allowed for each trace type Constraints allowed for each trace type IFCID descriptions for IFCID trace events and classes . . . . . . . . . . . . . . Resource Manager identifiers that are allowed . 8 . 11 200 242 242 243 244 8. 9. 10. 11. 12. 13. 14. 15. Commands for queue manager administration . . . . . . . . . Commands for queue administration Commands for process definition administration . . . . . . . . . Commands for namelist administration Commands for channel administration Commands for cluster administration Commands for security administration Miscellaneous commands . . . . . . . 255 255 . 256 257 257 258 258 . 259
ix
1. This platform has become NCR UNIX SVR4 MP-RAS, R3.0 Copyright IBM Corp. 1993, 2000
xi
xii
Summary of changes
This section lists the changes that have been made to this book since previous editions. Changes for this edition are marked with vertical bars in the left-hand margin.
| | | | | | | | |
xiii
Summary of changes
DEFINE CHANNEL DEFINE PROCESS DEFINE QALIAS DEFINE QLOCAL DEFINE QMODEL DEFINE QREMOTE DELETE CHANNEL DISPLAY CHANNEL DISPLAY CHSTATUS DISPLAY QUEUE DISPLAY PROCESS DISPLAY STGCLASS DISPLAY THREAD DISPLAY USAGE PING CHANNEL REFRESH SECURITY RESET CHANNEL RESOLVE CHANNEL RESOLVE INDOUBT START CHANNEL START CHINIT START LISTENER STOP CHANNEL STOP CHINIT
xiv
is not valid except where specifically noted. v Keywords are not case sensitive AltER, alter, and ALTER are all acceptable. Names that are not contained within quotation marks are converted to uppercase. v Synonyms are defined for some keywords. For example, DEF is always a synonym for DEFINE, so DEF QLOCAL is valid. Synonyms are not, however, just minimum strings; DEFI is not a valid synonym for DEFINE. Note: There is no synonym for the DELETE keyword. This is to avoid accidental deletion of objects when using DEF, the synonym for DEFINE.
''
When you need to use any of these special characters in a field (for example as part of a description), you must enclose the whole string in single quotation marks.
| |
and
'Fred'
(where the e of the second line of the second example is in the first position of the line) are both equivalent to
'Fred'
MQSC commands that are contained within an Escape PCF (Programmable Command Format) command cannot be continued in this way. The entire command must be contained within a single Escape command. (For information about the PCF commands, see the MQSeries Programmable System Management manual.) v + and values used at the ends of lines are discarded when the command is reassembled into a single string. | | | | | v On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT you can use a semicolon character (;) to terminate a command, even if you have entered a + character at the end of the previous line. You can also use the semicolon in the same way on OS/390 for commands issued from the CSQUTIL batch utility program. v A line starting with an asterisk (*) in the first position is ignored. This can be used to insert comments into the file. A blank line is also ignored. If a line ends with a continuation character ( or +), the command continues with the next line that is not a comment line or a blank line.
Queue names
Queues can have names up to 48 characters long.
| |
| | | | | | | | |
SYSTEM.CICS.INITIATION.QUEUE SYSTEM.CLUSTER.COMMAND.QUEUE
SYSTEM.CLUSTER.REPOSITORY.QUEUE
SYSTEM.COMMAND.INPUT SYSTEM.COMMAND.REPLY.MODEL
| | |
| |
SYSTEM.MQSC.REPLY.QUEUE
| | | | | | | | | | | | | |
SYSTEM.AUTO.RECEIVER
SYSTEM.AUTO.SVRCONN
SYSTEM.DEF.CLNTCONN SYSTEM.DEF.CLUSRCVR
SYSTEM.DEF.CLUSSDR
SYSTEM.DEF.RECEIVER SYSTEM.DEF.REQUESTER
| | |
SYSTEM.DEFAULT.NAMELIST
SYSTEM.DEFAULT.PROCESS SYSTEMST
You may specify value A. Optional values are shown below the main line of a syntax diagram. A
You may specify one or more of the values A, B, and C. Any required separator for multiple or repeated values (in this example, the comma (,)) is shown on the arrow. A B C
A B C
Values A, B, and C are alternatives, one of which you may specify. If you specify none of the values shown, the default A (the value shown above the main line) is used.
Name
The syntax fragment Name is shown separately from the main syntax diagram.
Name:
A B
Specify exactly as shown. Supply your own text in place of the name variable.
10
ALTER CHANNEL
U U U U U U U U U U U U
U U U U U U U U
ALTER NAMELIST ALTER PROCESS ALTER QALIAS ALTER QLOCAL ALTER QMGR ALTER QMODEL ALTER QREMOTE ALTER SECURITY ALTER STGCLASS ALTER TRACE ARCHIVE LOG CLEAR QLOCAL DEFINE BUFFPOOL DEFINE CHANNEL DEFINE MAXSMSGS U U U
U U U U U U U U U U
U U U U
U U
U U U
U U U U
DEFINE NAMELIST DEFINE PROCESS DEFINE PSID DEFINE QALIAS DEFINE QLOCAL DEFINE QMODEL DEFINE QREMOTE DEFINE STGCLASS DELETE CHANNEL U U U U U U
U U U U
U U U U U
U U U U
U U U U
U U U U
U U U U
U U U U
U U
U U U U U U U U
U U U U U U U
U U
U U U U U U U
DELETE NAMELIST DELETE PROCESS DELETE QALIAS DELETE QLOCAL DELETE QMODEL DELETE QREMOTE DELETE STGCLASS DISPLAY CHANNEL DISPLAY CHSTATUS U U U U U U U
U U U U U
U U U U U
U U U U U
U U U U
U U U
U U U U
U U U
U U
U U U
U U U
11
MQSeries commands
Table 2. MQSeries operator and administrator commands (continued)
Command Digital Open VMS OS/2 Warp OS/390 OS/400 Tandem UNIX NSK systems Windows NT Windows
U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U
DISPLAY QCLUSTER DISPLAY QLOCAL DISPLAY QMGR DISPLAY QMODEL DISPLAY QREMOTE DISPLAY QUEUE DISPLAY SECURITY DISPLAY STGCLASS DISPLAY THREAD DISPLAY TRACE DISPLAY USAGE PING CHANNEL PING QMGR RECOVER BSDS
RESUME QMGR RVERIFY SECURITY START CHANNEL START CHINIT START CMDSERV START LISTENER START QMGR START TRACE STOP CHANNEL STOP CHINIT STOP CMDSERV STOP LISTENER STOP QMGR STOP TRACE
SUSPEND QMGR
12
MQSeries commands
Table 2. MQSeries operator and administrator commands (continued)
Command Digital Open VMS OS/2 Warp OS/390 OS/400 Tandem UNIX NSK systems Windows NT Windows
Notes: 1. For a description of the syntax for commands on this platform, see the online MQSeries for Windows Command Reference. 2. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, the equivalent function is available using the CKMC transaction. See the MQSeries Intercommunication manual for information about this. 3. AIX, HP-UX, and Sun Solaris only. 4. This command is valid only on OS/390. For other platforms, use the MAXUMSGS keyword of the ALTER QMGR command instead. 5. MQSeries for Windows Version 2.1 only. 6. See DISPLAY QUEUE on page 197.
13
ALTER CHANNEL
ALTER CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use ALTER CHANNEL to alter the attributes of a channel. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. For cluster-sender channels, you can only alter channels that have been created manually. Synonym: ALT CHL There is a separate syntax diagram for each type of channel: v Sender channel on page 15 v Server channel on page 17 v Receiver channel on page 19 v Requester channel on page 21 v Client-connection channel on page 23 v Server-connection channel on page 24 v Cluster-sender channel on page 25 v Cluster-receiver channel on page 27
14
ALTER CHANNEL
Sender channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(SDR) (2) BATCHINT (integer) BATCHSZ(integer)
CONNAME(string)
CONVERT(
NO YES
DESCR(string)
DISCINT(integer) HBINT(integer)
(2)
LONGRTY(integer)
LONGTMR(integer)
MAXMSGL(integer)
MCANAME(string)
MCAUSER(string) MODENAME(string)
(4)
SHORTRTY(integer)
SHORTTMR(integer)
(4)
(6)
XMITQ(string)
Notes: 1 2 3 This parameter must follow immediately after the channel name except on OS/390. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT.
Chapter 2. The MQSeries commands
15
ALTER CHANNEL
4 5 6 7 8 9 Valid only if TRPTYPE is LU62. You can specify more than one value on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT only. Not valid on OS/390. Valid only on Digital OpenVMS. Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
16
ALTER CHANNEL
Server channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(SVR) (2) AUTOSTART( DISABLED ENABLED ) BATCHINT(integer) (3)
BATCHSZ(integer)
CONNAME(string)
CONVERT(
NO YES
DESCR(string)
DISCINT(integer)
(3) HBINT(integer)
LONGRTY(integer)
LONGTMR(integer)
MAXMSGL(integer)
MCANAME(string)
MCAUSER(string) MODENAME(string)
(5)
(7)
SCYEXIT(string)
SHORTRTY(integer)
SHORTTMR(integer) TPNAME(string)
(5)
(7)
XMITQ(string)
Notes: 1 2 3 This parameter must follow immediately after the channel name except on OS/390. Valid only on Tandem NSK when TRPTYPE is LU62. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT.
17
ALTER CHANNEL
4 5 6 7 8 9 10 Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62. You can specify more than one value on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT only. Not valid on OS/390. Valid only on Digital OpenVMS. Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
18
ALTER CHANNEL
Receiver channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(RCVR) (2) AUTOSTART( DISABLED ENABLED ) BATCHSZ(integer)
DESCR(string) HBINT(integer)
(3)
MAXMSGL(integer)
MCAUSER(string) MRDATA(string)
(4)
(4) MRTMR(integer)
PUTAUT(
, (5) string )
SCYDATA(string)
Notes: 1 2 3 4 5 6 7 This parameter must follow immediately after the channel name except on OS/390. Valid only on Tandem NSK when TRPTYPE is LU62. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Not valid on OS/390. You can specify more than one value on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT only. Valid only on OS/390. Valid only on Digital OpenVMS.
Chapter 2. The MQSeries commands
19
ALTER CHANNEL
8 9 Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
20
ALTER CHANNEL
Requester channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(RQSTR) (2) AUTOSTART( DISABLED ENABLED ) BATCHSZ(integer)
CONNAME(string)
DESCR(string) HBINT(integer)
(3)
MAXMSGL(integer)
MCANAME(string)
MCAUSER(string) MODENAME(string)
(6) MRDATA(string)
(5)
(5) MRTMR(integer)
(5)
(6)
PUTAUT(
SCYEXIT(string)
(6)
(9) TRPTYPE( DECNET LU62 (10) NETBIOS (10) SPX TCP (11) UDP ) USERID(string)
(5)
(6)
Notes: 1 2 This parameter must follow immediately after the channel name except on OS/390. Valid only on Tandem NSK when TRPTYPE is LU62.
Chapter 2. The MQSeries commands
21
ALTER CHANNEL
3 4 5 6 7 8 9 10 11 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Not valid on OS/390. Valid only if TRPTYPE is LU62. You can specify more than one value on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT only. Valid only on OS/390. Valid only on Digital OpenVMS. Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
22
ALTER CHANNEL
Client-connection channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(CLNTCONN) CONNAME(string) DESCR(string) HBINT(integer) (2)
MAXMSGL(integer) MODENAME(string)
(3) PASSWORD(string)
(3)
QMNAME(string)
SCYEXIT(string)
(5) TRPTYPE( DECNET LU62 (6) NETBIOS (6) SPX TCP ) USERID(string)
(3)
Notes: 1 2 3 4 5 6 This parameter must follow immediately after the channel name except on OS/390. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62. You can specify more than one value on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT only. Valid only on Digital OpenVMS. Valid only for clients to be run on DOS, OS/2 Warp, Windows, and Windows NT.
23
ALTER CHANNEL
Server-connection channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(SVRCONN) (2) AUTOSTART( DISABLED ENABLED ) DESCR(string)
(3) HBINT(integer)
MAXMSGL(integer)
MCAUSER(string) PUTAUT
SCYDATA(string)
(6) , (5) RCVDATA( string ) RCVEXIT( string , (5) ) NETBIOS (7) SPX TCP TRPTYPE( DECNET LU62 (7) )
Notes: 1 2 3 4 5 6 7 This parameter must follow immediately after the channel name except on OS/390. Valid only on Tandem NSK when TRPTYPE is LU62. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390. You can specify more than one value on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT only. Valid only on Digital OpenVMS. Valid only for clients to be run on DOS, OS/2 Warp, Windows, and Windows NT.
24
ALTER CHANNEL
Cluster-sender channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(CLUSSDR) BATCHINT(integer) BATCHSZ(integer) (2)
CLUSTER(clustername)
CLUSNL(nlname)
CONNAME(string)
CONVERT(
NO YES
DESCR(string)
DISCINT(integer)
HBINT(integer)
LONGRTY(integer)
LONGTMR(integer)
MAXMSGL(integer)
(3)
MCAUSER(string) MODENAME(string)
(4)
FAST NORMAL
(4) PASSWORD(string)
SCYDATA(string)
SEQWRAP(integer)
SHORTRTY(integer)
SHORTTMR(integer) TPNAME(string)
(4)
TRPTYPE(
) USERID(string)
(4)
(6)
Notes: 1 2 3 4 5 6 This parameter must follow immediately after the channel name except on OS/390. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62. You can specify only one value on OS/390. Not valid on OS/390.
Chapter 2. The MQSeries commands
25
ALTER CHANNEL
7 8 Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
26
ALTER CHANNEL
Cluster-receiver channel
ALTER CHANNEL
(1) ALTER CHANNEL(channel-name) CHLTYPE(CLUSRCVR) BATCHINT(integer) BATCHSZ(integer) (2)
CLUSTER(clustername)
CLUSNL(nlname)
CONNAME(string)
CONVERT(
NO YES
DESCR(string)
DISCINT(integer)
HBINT(integer)
LONGRTY(integer)
LONGTMR(integer)
MAXMSGL(integer)
MCATYPE(
PROCESS THREAD
MCAUSER(string) MODENAME(string)
(3) MRDATA(string)
(4)
(4) MRTMR(integer)
NPMSPEED(
FAST NORMAL
PUTAUT(
SCYEXIT(string)
SHORTRTY(integer)
SHORTTMR(integer) TPNAME(string)
(3)
TRPTYPE(
Notes: 1 2 This parameter must follow immediately after the channel name except on OS/390. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT.
27
ALTER CHANNEL
3 4 5 6 7 8 Valid only if TRPTYPE is LU62. Not valid on OS/390. You can specify one value only on OS/390. Valid only on OS/390. Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
| |
28
ALTER CHANNEL
v The BATCHSZ of the sending channel v The BATCHSZ of the receiving channel v The maximum number of uncommitted messages allowed at the sending queue manager v The maximum number of uncommitted messages allowed at the receiving queue manager The maximum number of uncommitted messages is specified by the MAXUMSGS parameter of the ALTER QMGR command, or the DEFINE MAXSMSGS command on OS/390. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR. The value must be greater than zero, and less than or equal to 9999. CHLTYPE Channel type. This is required, and must be of the same type as the existing channel. It must follow immediately after the (channel-name) parameter on all platforms except OS/390.
SDR SVR RCVR RQSTR CLNTCONN SVRCONN CLUSSDR CLUSRCVR Sender channel Server channel Receiver channel Requester channel Client-connection channel Server-connection channel Cluster-sender channel (valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT) Cluster-receiver channel (valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT)
| | | | |
CLUSTER(clustername) The name of the cluster to which the channel belongs. The maximum length is 48 characters conforming to the rules for naming MQSeries objects. This parameter is valid only for CLUSSDR and CLUSRCVR channels. Only one of the resultant values of CLUSTER or CLUSNL can be nonblank, the other must be blank. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CLUSNL(nlname) The name of the namelist that specifies a list of clusters to which the channel belongs. This parameter is valid only for CLUSSDR and CLUSRCVR channels. Only one of the resultant values of CLUSTER or CLUSNL can be nonblank, the other must be blank. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CONNAME(string) Connection name.
29
ALTER CHANNEL
For cluster-receiver channels it relates to the local queue manager, and for other channels it relates to the target queue manager. (The maximum length is 48 characters on OS/390, and 264 characters on other platforms.) The value you specify depends on the transport type (TRPTYPE) to be used: | | | | LU 6.2 | | | v On Digital OpenVMS this is the SNA gateway node name, access name, and thetpnamethat is used by SNA to invoke the remote program. The format of this information is as follows:
CONNAME('gateway_node.access_name(tpname)')
DECnet The DECnet node name and the DECnet object name, in the form:
CONNAME('node_name(object_name)')
v On OS/390 there are two forms in which to specify the value: Logical unit name The logical unit information for the queue manager, comprising the logical unit name, TP name, and optional mode name. This can be specified in one of 3 forms: Form Example luname IGY12355 luname/TPname IGY12345/APING luname/TPname/modename IGY12345/APINGD/#INTER For the first form, the TP name and mode name must be specified for the TPNAME and MODENAME attributes; otherwise these attributes must be blank. Note: For client-connection channels, only the first form is allowed. Symbolic name The symbolic destination name for the logical unit information for the queue manager, as defined in the side information data set. The TPNAME and MODENAME attributes must be blank. Note: For cluster-receiver channels, the side information is on the other queue managers in the cluster. Alternatively, in this case it can be a name that a channel auto-definition exit can resolve into the appropriate logical unit information for the local queue manager. v On OS/2 Warp it is the fully-qualified name of the partner LU, or an LU alias. v On OS/400, Windows NT, and UNIX systems, this is the name of the CPI-C communications side object or, if the TPNAME is not blank, this is the fully-qualified name of the partner logical unit.
30
ALTER CHANNEL
See the information about configuration parameters for an LU 6.2 connection for your platform in the MQSeries Intercommunication manual for more information. v On Tandem NSK, the value of this depends on whether SNAX or ICE is used as the communications protocol: If SNAX is used: - For sender, requester, and fully qualified server channels, this is the process name of the SNAX/APC process, the name of the local LU, and the name of the partner LU on the remote machine, for example:
CONNAME('$PPPP.LOCALLU.REMOTELU')
- For receiver and non fully qualified server channels, this is the process name of the SNAX/APC process and the name of the local LU, for example:
CONNAME('$PPPP.LOCALLU')
The name of the local LU can be an asterisk (*), indicating any name. If ICE is used: - For sender, requester, and fully qualified server channels, this is the process name of the ICE process, the ICE open name, the name of the local LU, and the name of the partner LU on the remote machine, for example:
CONNAME('$PPPP.#OPEN.LOCALLU.REMOTELU')
For receiver and non fully qualified server channels, this is the process name of the SNAX/APC process, the ICE open name, and the name of the local LU, for example:
CONNAME('$PPPP.#OPEN.LOCALLU')
The name of the local LU can be an asterisk (*), indicating any name. NetBIOS A unique NetBIOS name (limited to 16 characters). SPX The 4-byte network address, the 6-byte node address, and the 2-byte socket number. These values must be entered in hexadecimal, with a period separating the network and node addresses. The socket number must be enclosed in brackets, for example:
CONNAME('0a0b0c0d.804abcde23a1(5e86)')
If the socket number is omitted, the MQSeries default value (X'5e86') is assumed. TCP Either the host name, or the network address of the remote machine (or the local machine for cluster-receiver channels). This can be followed by an optional port number, enclosed in parentheses. Either the host name, or the network address of the remote MQSeries for Windows V2.0 machine. This can be followed by an optional port number, enclosed in parentheses.
| | |
UDP
31
ALTER CHANNEL
This parameter is required for channels with a channel type (CHLTYPE) of SDR, RQSTR, CLNTCONN, CLUSSDR, and CLUSRCVR. It is optional for SVR channels, and is not valid for RCVR or SVRCONN channels. Note: If you are using any of the special characters in your connection name (for example, parentheses) you must enclose the string in single quotes. CONVERT Specifies whether the sending message channel agent should attempt conversion of the application message data, if the receiving message channel agent is unable to perform this conversion. NO No conversion by sender YES Conversion by sender This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. DESCR(string) Plain-text comment. It provides descriptive information about the channel when an operator issues the DISPLAY CHANNEL command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. DISCINT(integer) The minimum time in seconds for which the channel waits for a message to arrive on the transmission queue, after a batch ends, before terminating the channel. A value of zero causes the message channel agent to wait indefinitely. The value must be greater than or equal to zero, and less than or equal to 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. HBINT(integer) This parameter has a different interpretation depending upon the channel type, as follows: v For a channel type of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR, this is the time, in seconds, between heartbeat flows passed from the sending MCA when there are no messages on the transmission queue. The heartbeat exchange gives the receiving MCA the opportunity to quiesce the channel. This type of heartbeat is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Note: You should set this value to be significantly less than the value of DISCINT. MQSeries checks only that it is within the permitted range however. v For a channel type of SVRCONN or CLNTCONN, this is the time, in seconds, between heartbeat flows passed from the server MCA when that MCA has issued an MQGET with WAIT on behalf of a client
32
ALTER CHANNEL
| | | application. This allows the server to handle situations where the client connection fails during an MQGET with WAIT. This type of heartbeat is valid only for AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. The value must be in the range zero through 999 999. A value of zero means that no heartbeat exchange takes place. The value that is used is the larger of the values specified at the sending side and the receiving side. LONGRTY(integer) When a sender, server, or cluster-sender channel is attempting to connect to the remote queue manager, and the count specified by SHORTRTY has been exhausted, this specifies the maximum number of further attempts that are made to connect to the remote queue manager, at intervals specified by LONGTMR. If this count is also exhausted without success, an error is logged to the operator, and the channel is stopped. The channel must subsequently be restarted with a command (it is not started automatically by the channel initiator). The value must be greater than or equal to zero, and less than or equal to 999 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. LONGTMR(integer) For long retry attempts, this is the maximum number of seconds to wait before re-attempting connection to the remote queue manager. The time is approximate; zero means that another connection attempt is made as soon as possible. The interval between retries might be extended if the channel has to wait to become active. The value must be greater than or equal to zero, and less than or equal to 999 999 999. Note: For implementation reasons, the maximum retry interval that can be used is 999 999; values exceeding this will be treated as 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. MAXMSGL(integer) Specifies the maximum message length that can be transmitted on the channel. This is compared with the value for the partner and the actual maximum used is the lower of the two values. The value zero means the maximum message length for the queue manager. | | | | | | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, specify a value greater than or equal to zero, and less than or equal to the maximum message length for the queue manager as defined by the MAXMSGL parameter of the ALTER QMGR command. See ALTER QMGR on page 62 for more information. On other platforms, specify a value greater than or equal to zero, and less than or equal to 4 MB, or 4 194 304 bytes.
Chapter 2. The MQSeries commands
33
ALTER CHANNEL
MCANAME(string) Message channel agent name. This is reserved, and if specified must only be set to blanks (maximum length 20 characters). MCATYPE Specifies whether the message-channel-agent program should run as a thread or a process.
PROCESS THREAD The message channel agent runs as a separate process The message channel agent runs as a separate thread
| | | | |
In situations where a threaded listener is required to service a large number of incoming requests, resources can become strained. In this case, it is recommended that multiple listener processes are used and that incoming requests are targeted at specific listeners via the port number specified on the listener. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RQSTR, CLUSSDR, or CLUSRCVR. It is supported only on AIX, HP/UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. On OS/390 it is supported only for channels with a channel type of CLUSRCVR. When specified in a CLUSRCVR definition, MCATYPE is used by a remote machine to determine the corresponding CLUSSDR definition. MCAUSER(string) Message channel agent user identifier. If string is nonblank, it is the user identifier which is to be used by the message channel agent for authorization to access MQSeries resources, including (if PUTAUT is DEF) authorization to put the message to the destination queue for receiver or requester channels. If it is blank, the message channel agent uses its default user identifier. This user identifier can be overridden by one supplied by a channel security exit. The maximum length of string is 64 characters on Windows NT and 12 characters on other platforms. On Windows NT, you can optionally qualify a user identifier with the domain name in the format user@domain. This parameter is not valid for channels with a channel type (CHLTYPE) of CLNTCONN. MODENAME(string) LU 6.2 mode name (maximum length 8 characters). This parameter is valid only for channels with a transport type (TRPTYPE) of LU 6.2. If TRPTYPE is not LU 6.2, the data is ignored and no error message is issued.
| | | | | |
| | | |
If specified, this should be set to the SNA mode name unless the CONNAME contains a side-object name, in which case it should be set to blanks. The actual name is then taken from the CPI-C Communications Side Object, or APPC side information data set.
34
ALTER CHANNEL
See the information about configuration parameters for an LU 6.2 connection for your platform in the MQSeries Intercommunication manual for more information. This parameter is not valid for channels with a channel type (CHLTYPE) of RCVR or SVRCONN. MRDATA(string) Channel message-retry exit user data (maximum length 32 characters). This is passed to the channel message-retry exit when it is called. This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MREXIT(string) Channel message-retry exit name. The format and maximum length of the name is the same as for MSGEXIT. This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MRRTY(integer) The number of times the channel will retry before it decides it cannot deliver the message. This attribute controls the action of the MCA only if the message-retry exit name is blank. If the exit name is not blank, the value of MRRTY is passed to the exit for the exits use, but the number of retries performed (if any) is controlled by the exit, and not by this attribute. The value must be greater than or equal to zero, and less than or equal to 999 999 999. A value of zero means that no retries will be performed. This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MRTMR(integer) The minimum interval of time that must pass before the channel can retry the MQPUT operation. This time interval is in milliseconds. This attribute controls the action of the MCA only if the message-retry exit name is blank. If the exit name is not blank, the value of MRTMR is passed to the exit for the exits use, but the retry interval is controlled by the exit, and not by this attribute. The value must be greater than or equal to zero, and less than or equal to 999 999 999. A value of zero means that the retry will be performed as soon as possible (provided that the value of MRRTY is greater than zero). This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MSGDATA(string) User data for the channel message exit (maximum length 32 characters). This data is passed to the channel message exit when it is called. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify data for more than one exit program by specifying multiple strings separated by commas. The total length of the field must not exceed 999 characters.
35
ALTER CHANNEL
| | | On OS/400, you can specify up to 10 strings, each of length 32 characters. The first string of data is passed to the first message exit specified, the second string to the second exit, and so on. On other platforms you can specify only one string of message exit data for each channel. MSGEXIT(string) Channel message exit name. On Tandem NSK, there is only one channel user exit program. If the MSGEXIT, MREXIT, SCYEXIT, SENDEXIT, and RCVEXIT parameters are all left blank, the channel user exit is not invoked. If any of these parameters is nonblank, the channel exit program is called. You can enter text string for these attributes. The maximum length of the string is 128 characters. This string is passed to the exit program, but it is not used to determine the program name. See the MQSeries for Tandem NonStop Kernel System Management Guide for more information about using channel exit programs on Tandem NSK. On other platforms, if this name is nonblank, the exit is called at the following times: v Immediately after a message has been retrieved from the transmission queue (sender or server), or immediately before a message is put to a destination queue (receiver or requester). The exit is given the entire application message and transmission queue header for modification. v At initialization and termination of the channel. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify the name of more than one exit program by specifying multiple strings separated by commas. However, the total number of characters specified must not exceed 999. | | On OS/400, you can specify the names of up to 10 exit programs by specifying multiple strings separated by commas. On other platforms you can specify only one message exit name for each channel. For channels with a channel type (CHLTYPE) of CLNTCONN or SVRCONN, this parameter is not relevant, because message exits are not invoked for such channels. The format and maximum length of the name depends on the environment: v On Digital OpenVMS and UNIX systems, it is of the form:
libraryname(functionname)
The maximum length of the string is 128 characters. v On OS/2 Warp, Windows, and Windows NT, it is of the form:
dllname(functionname)
where dllname is specified without the suffix (.DLL). The maximum length of the string is 128 characters. v On OS/400, it is of the form:
36
ALTER CHANNEL
| | | |
progname libname
where program name occupies the first 10 characters and libname the second 10 characters (both blank-padded to the right if necessary). The maximum length of the string is 20 characters. v On OS/390, it is a load module name, maximum length 8 characters (128 characters are allowed for exit names for client-connection channels). NETPRTY(integer) The priority for the network connection. Distributed queuing chooses the path with the highest priority if there are multiple paths available. The value must be in the range 0 through 9; 0 is the lowest priority. This parameter is valid only for CLUSRCVR channels.
| |
This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. NPMSPEED The class of service for nonpersistent messages on this channel:
FAST Fast delivery for nonpersistent messages; messages might be lost if the channel is lost. This is the default. Messages are retrieved using MQGMO_SYNCPOINT_IF_PERSISTENT and so are not included in the batch unit of work. Normal delivery for nonpersistent messages.
NORMAL
If the sending side and the receiving side do not agree about this attribute, or one does not support it, NORMAL is used. This parameter is valid only for channels with a CHLTYPE of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR. It is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. PASSWORD(string) Password (maximum length 12 characters). This is used by the message channel agent when attempting to initiate a secure LU 6.2 session with a remote message channel agent. | | This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RQSTR, CLNTCONN, or CLUSSDR. It is supported on OS/390 only for client-connection channels. Although the maximum length of the attribute is 12 characters, only the first 10 characters are used. PUTAUT Specifies which user identifiers should be used to establish authority to put messages to the destination queue (for message channels) or to execute an MQI call (for MQI channels).
DEF The default user ID is used. On OS/390 this might involve using both the user ID received from the network and that derived from MCAUSER. The user ID from the UserIdentifier field of the message descriptor is used. On OS/390 this might involve also using the user ID received from the network or that derived from MCAUSER, or both. The default user ID is used. Any user ID received from the network is not used. This value is supported only on OS/390.
CTX
ONLYMCA
37
ALTER CHANNEL
ALTMCA The user ID from the UserIdentifier field of the message descriptor is used. Any user ID received from the network is not used. This value is supported only on OS/390.
This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, CLUSRCVR, or SVRCONN. CTX and ALTMCA are not valid for SVRCONN channels. QMNAME(string) Queue manager name. For channels with a channel type (CHLTYPE) of CLNTCONN, this is the name of the queue manager to which an application running in the MQI client environment can request connection. For channels of other types this parameter is not valid. RCVDATA(string) Channel receive exit user data (maximum length 32 characters). This is passed to the channel receive exit when it is called. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify data for more than one exit program by specifying multiple strings separated by commas. The total length of the field must not exceed 999 characters. | | | On OS/400, you can specify up to 10 strings, each of length 32 characters. The first string of data is passed to the first receive exit specified, the second string to the second exit, and so on. On other platforms you can specify only one string of receive exit data for each channel. RCVEXIT(string) Channel receive exit name. On platforms other than Tandem NSK, if this name is nonblank, the exit is called at the following times: v Immediately before the received network data is processed. The exit is given the complete transmission buffer as received. The contents of the buffer can be modified as required. v At initialization and termination of the channel. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify the name of more than one exit program by specifying multiple strings separated by commas. However, the total number of characters specified must not exceed 999. | | On OS/400, you can specify the names of up to 10 exit programs by specifying multiple strings separated by commas. On other platforms you can specify only one receive exit name for each channel. The format and maximum length of the name is the same as for MSGEXIT. SCYDATA(string) Channel security exit user data (maximum length 32 characters).
38
ALTER CHANNEL
This is passed to the channel security exit when it is called. SCYEXIT(string) Channel security exit name. On platforms other than Tandem NSK, if this name is nonblank, the exit is called at the following times: v Immediately after establishing a channel. Before any messages are transferred, the exit is given the opportunity to instigate security flows to validate connection authorization. v Upon receipt of a response to a security message flow. Any security message flows received from the remote processor on the remote queue manager are given to the exit. v At initialization and termination of the channel. The format and maximum length of the name is the same as for MSGEXIT. SENDDATA(string) Channel send exit user data (maximum length 32 characters). This is passed to the channel send exit when it is called. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify data for more than one exit program by specifying multiple strings separated by commas. The total length of the field must not exceed 999 characters. | | | On OS/400, you can specify up to 10 strings, each of length 32 characters. The first string of data is passed to the first send exit specified, the second string to the second exit, and so on. On other platforms you can specify only one string of send exit data for each channel. SENDEXIT(string) Channel send exit name. On platforms other than Tandem NSK, if this name is nonblank, the exit is called at the following times: v Immediately before data is sent out on the network. The exit is given the complete transmission buffer before it is transmitted. The contents of the buffer can be modified as required. v At initialization and termination of the channel. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify the name of more than one exit program by specifying multiple strings separated by commas. However, the total number of characters specified must not exceed 999. | | On OS/400, you can specify the names of up to 10 exit programs by specifying multiple strings separated by commas. On other platforms you can specify only one send exit name for each channel. The format and maximum length of the name is the same as for MSGEXIT. SEQWRAP(integer) When this value is reached, sequence numbers wrap to start again at 1.
Chapter 2. The MQSeries commands
39
ALTER CHANNEL
This value is non-negotiable and must match in both the local and remote channel definitions. The value must be greater than or equal to 100, and less than or equal to 999 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR. SHORTRTY(integer) The maximum number of attempts that are made by a sender, server, or cluster-sender channel to connect to the remote queue manager, at intervals specified by SHORTTMR, before the (normally longer) LONGRTY and LONGTMR are used. Retry attempts are made if the channel fails to connect initially (whether it is started automatically by the channel initiator or by an explicit command), and also if the connection fails after the channel has successfully connected. However, if the cause of the failure is such that retry is unlikely to be successful, retries are not attempted. The value must be greater than or equal to zero, and less than or equal to 999 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. SHORTTMR(integer) For short retry attempts, this is the maximum number of seconds to wait before re-attempting connection to the remote queue manager. The time is approximate; zero means that another connection attempt is made as soon as possible. The interval between retries might be extended if the channel has to wait to become active. The value must be greater than or equal to zero, and less than or equal to 999 999 999. Note: For implementation reasons, the maximum retry interval that can be used is 999 999; values exceeding this will be treated as 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. TPNAME(string) LU 6.2 transaction program name (maximum length 64 characters). This parameter is valid only for channels with a transport type (TRPTYPE) of LU 6.2. On Tandem NSK, this should be set to the local TP name. This can be followed by the name of the TP on the remote machine, for example:
TPNAME('localtp[.remotetp]')
Both names can be up to 16 characters in length. The name can also be nonblank for client connection channels to be used with OS/2 Warp.
40
ALTER CHANNEL
On other platforms, this should be set to the SNA transaction program name, unless the CONNAME contains a side-object name in which case it should be set to blanks. The actual name is taken instead from the CPI-C Communications Side Object, or the APPC side information data set. See the information about configuration parameters for an LU 6.2 connection for your platform in the MQSeries Intercommunication manual for more information. On Windows NT SNA Server, and in the side object on OS/390, the TPNAME is wrapped to upper case. This parameter is not valid for channels with a channel type (CHLTYPE) of RCVR. TRPTYPE Transport type to be used. | | This is not required on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, or Windows NT. If you do not specify this parameter, the value specified in the SYSTEM.DEF.channel-type definition is used. However, no check is made that the correct transport type has been specified if the channel is initiated from the other end. On OS/390, if the SYSTEM.DEF.channel-type definition does not exist, the default is LU62. This is required on all other platforms. |
DECNET LU62 NETBIOS DECnet (supported only on Digital OpenVMS) SNA LU 6.2 NetBIOS (supported only on OS/2 Warp, Windows, Windows NT, and DOS; it also applies to OS/390 for defining client-connection channels that will connect to servers on the platforms supporting NetBIOS) Sequenced packet exchange (supported only on OS/2 Warp, Windows, Windows NT, and DOS; it also applies to OS/390 for defining client-connection channels that will connect to servers on the platforms supporting SPX) Transmission Control Protocol - part of the TCP/IP protocol suite User Datagram Protocol - part of the TCP/IP protocol suite (supported only on AIX); this option is available for connection to MQSeries for Windows V2.0, with CSD02, only
SPX
TCP UDP
USERID(string) Task user identifier (maximum length 12 characters). This is used by the message channel agent when attempting to initiate a secure LU 6.2 session with a remote message channel agent. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RQSTR, CLNTCONN, or CLUSSDR. On OS/390, it is supported only for CLNTCONN channels. Although the maximum length of the attribute is 12 characters, only the first 10 characters are used. XMITQ(string) Transmission queue name. The name of the queue from which messages are retrieved. See Rules for naming MQSeries objects on page 4.
41
ALTER CHANNEL
This parameter is valid only for channels with a channel type (CHLTYPE) of SDR or SVR. For these channel types this parameter is required.
42
ALTER NAMELIST
ALTER NAMELIST
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use ALTER NAMELIST to alter a list of names. This is most commonly a list of cluster names or queue names. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. Synonym: ALT NL ALTER NAMELIST
ALTER NAMELIST(name) DESCR(string) NAMES( name , )
43
ALTER PROCESS
ALTER PROCESS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use ALTER PROCESS to alter the attributes of an existing MQSeries process definition. Synonym: ALT PRO ALTER PROCESS
ALTER PROCESS(process-name) APPLICID(string) APPLTYPE( CICS DEF DOS IMS MVS NSK OS2 OS400 UNIX VMS WINDOWS WINDOWSNT integer ) DESCR(string)
ENVRDATA(string)
USERDATA(string)
44
ALTER PROCESS
OS400 UNIX VMS WINDOWS WINDOWSNT integer DEF Represents an OS/400 application. Represents a UNIX application. Represents a Digital OpenVMS application. Represents a Windows application. Represents a Windows NT application. User-defined application type in the range 65 536 through 999 999 999. This causes the default application type for the platform at which the command is interpreted to be stored in the process definition. This default cannot be changed by the installation. If the platform supports clients, this is interpreted as the default application type of the server.
Only application types (other than user-defined types) that are supported on the platform at which the command is executed should be used: v On Digital OpenVMS, VMS is supported v On OS/390, CICS (default), DOS, IMS, MVS, OS2, UNIX, WINDOWS, WINDOWSNT, and DEF are supported v On OS/400, OS400 (default), CICS, and DEF are supported v On OS/2 Warp, OS2 (default), DOS, WINDOWS, UNIX, CICS, and DEF are supported v On Tandem NSK, NSK is supported v On UNIX systems, UNIX (default), OS2, DOS, WINDOWS, CICS, and DEF are supported v On Windows NT, WINDOWSNT (default), DOS, WINDOWS, OS2, UNIX, CICS, and DEF are supported DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY PROCESS command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. ENVRDATA(string) A character string that contains environment information pertaining to the application to be started. The maximum length is 128 characters. | | | | | | | | | | The meaning of ENVRDATA is determined by the trigger-monitor application. The trigger monitor provided by MQSeries appends ENVRDATA to the parameter list passed to the started application. The parameter list consists of the MQTMC2 structure, followed by one blank, followed by ENVRDATA with trailing blanks removed. Notes: 1. On OS/390, ENVRDATA is not used by the trigger-monitor applications provided by MQSeries. 2. On UNIX systems, ENVRDATA can be set to the ampersand character to cause the started application to run in the background.
45
ALTER PROCESS
| USERDATA(string) A character string that contains user information pertaining to the application defined in the APPLICID that is to be started. The maximum length is 128 characters. The meaning of USERDATA is determined by the trigger-monitor application. The trigger monitor provided by MQSeries simply passes USERDATA to the started application as part of the parameter list. The parameter list consists of the MQTMC2 structure (containing USERDATA), followed by one blank, followed by ENVRDATA with trailing blanks removed. For MQSeries message channel agents, the format of this field is a channel name of up to 20 characters. See the MQSeries Intercommunication manual for information about what these need as APPLICID. | | On Tandem NSK, a character string containing spaces must be enclosed in double quotation marks.
| | | | | |
46
ALTER QALIAS
ALTER QALIAS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use ALTER QALIAS to alter the attributes of an alias queue. Synonym: ALT QA ALTER QALIAS
ALTER QALIAS(q-name) FORCE common q attrs alias q attrs
Common q attrs:
DEFPRTY(integer)
DEFPSIST(
NO YES
DESCR(string)
PUT(
ENABLED DISABLED
Alias q attrs:
(1)
GET(
ENABLED DISABLED
TARGQ(string)
Notes: 1 2 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT.
47
ALTER QALIAS
If the FORCE option is not specified in these circumstances, the command is unsuccessful, and no changes are made.
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Messages cannot be added to the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call.
48
ALTER QALIAS
| | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. DEFBIND Specifies the binding to be used when the application specifies MQOO_BIND_AS_Q_DEF on the MQOPEN call, and the queue is a cluster queue.
OPEN NOTFIXED The queue handle is bound to a specific instance of the cluster queue when the queue is opened. The queue handle is not bound to any particular instance of the cluster queue. This allows the queue manager to select a specific queue instance when the message is put using MQPUT, and to change that selection subsequently should the need arise.
The MQPUT1 call always behaves as if NOTFIXED had been specified. | | GET This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Whether applications are permitted to get messages from this queue.
Messages can be retrieved from the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Applications cannot retrieve messages from the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call. SCOPE Specifies the scope of the queue definition.
QMGR The queue definition has queue-manager scope. This means that the definition of the queue does not extend beyond the queue manager that owns it. To open the queue for output from some other queue manager, either the name of the owning queue manager must be specified, or the other queue manager must have a local definition of the queue. The queue definition has cell scope. This means that the queue is known to all of the queue managers in the cell, and can be opened for output merely by specifying the name of the queue; the name of the queue manager that owns the queue need not be specified. If there is already a queue with the same name in the cell directory, the command fails. This value is valid only if a name service supporting a cell directory (for example, the supplied DCE name service) has been configured.
CELL
| |
This attribute is supported only on Digital OpenVMS, OS/2 Warp, Windows NT, and UNIX systems. TARGQ(string) The local name of the base queue being aliased. (See Rules for naming MQSeries objects on page 4.) The maximum length is 48 characters. This must be one of the following (although this is not checked until the alias queue is opened by an application): v A local queue (not a model queue) v A local definition of a remote queue
Chapter 2. The MQSeries commands
49
ALTER QALIAS
v A cluster queue This queue need not be defined until an application process attempts to open the alias queue.
Usage notes
1. DEFINE QALIAS(otherqname) TARGQ(aliasqueue) CLUSTER(c) has the effect of advertising queue aliasqueue by the name otherqname. 2. DEFINE QALIAS(otherqname) TARGQ(aliasqueue) has the effect of allowing a queue advertised by the name otherqname to be used on this queue manager by the name aliasqueue, provided that aliasqueue is also defined.
50
ALTER QLOCAL
ALTER QLOCAL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use ALTER QLOCAL to alter the attributes of a local queue. Synonym: ALT QL ALTER QLOCAL
ALTER QLOCAL(q-name) FORCE common q attrs local q attrs
Common q attrs:
DEFPRTY(integer)
DEFPSIST(
NO YES
DESCR(string)
PUT(
ENABLED DISABLED
Local q attrs:
BOQNAME(string)
BOTHRESH(integer) CLUSTER(clustername)
(1) CLUSNL(nlname)
(1)
DEFSOPT(
EXCL SHARED
) DISTL( NO YES )
(2)
GET(
ENABLED DISABLED
INITQ(string)
MAXDEPTH(integer)
MAXMSGL(integer)
MSGDLVSQ(
PRIORITY FIFO
NOHARDENBO HARDENBO
NOSHARE SHARE
NOTRIGGER TRIGGER
PROCESS(string)
QDEPTHHI(integer)
QDEPTHLO(integer)
QDPHIEV(
ENABLED DISABLED
QDPLOEV(
ENABLED DISABLED
QDPMAXEV(
ENABLED DISABLED
QSVCIEV(
NONE HIGH OK
QSVCINT(integer)
(4)
51
ALTER QLOCAL
(3) STGCLASS(string) TRIGDATA(string) TRIGDPTH(integer) TRIGMPRI(integer)
TRIGTYPE(
USAGE(
NORMAL XMITQ
Notes: 1 2 3 4 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390. Valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT.
52
ALTER QLOCAL
DEFPSIST Specifies the message persistence to be used when applications specify the MQPER_PERSISTENCE_AS_Q_DEF option.
NO Messages on this queue are lost across a restart of the queue manager. This is the default supplied with MQSeries, but your installation might have changed it. Messages on this queue survive a restart of the queue manager.
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Messages cannot be added to the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call.
53
ALTER QLOCAL
CLUSNL(nlname) The name of the namelist that specifies a list of clusters to which the queue belongs. Changes to this parameter do not affect instances of the queue that are already open. Only one of the resultant values of CLUSTER or CLUSNL can be nonblank; you cannot specify a value for both. This parameter cannot be set for dynamic, transmission, SYSTEM.CHANNEL.xx, SYSTEM.CLUSTER.xx, or SYSTEM.COMMAND.xx queues. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. DEFBIND Specifies the binding to be used when the application specifies MQOO_BIND_AS_Q_DEF on the MQOPEN call, and the queue is a cluster queue.
OPEN NOTFIXED The queue handle is bound to a specific instance of the cluster queue when the queue is opened. The queue handle is not bound to any particular instance of the cluster queue. This allows the queue manager to select a specific queue instance when the message is put using MQPUT, and to change that selection subsequently should the need arise.
The MQPUT1 call always behaves as if NOTFIXED had been specified. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. DEFSOPT The default share option for applications opening this queue for input:
EXCL SHARED The open request is for exclusive input from the queue The open request is for shared input from the queue
DISTL Whether distribution lists are supported by the partner queue manager.
YES NO Distribution lists are supported by the partner queue manager. Distribution lists are not supported by the partner queue manager.
Note: You should not normally change this attribute, because it is set by the MCA. However you can set this attribute when defining a transmission queue if the distribution list capability of the destination queue manager is known. This keyword is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. GET Whether applications are to be permitted to get messages from this queue:
Messages can be retrieved from the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Applications cannot retrieve messages from the queue.
ENABLED
DISABLED
54
ALTER QLOCAL
This attribute can also be changed using the MQSET API call. INDXTYPE The type of index maintained by the queue manager to expedite MQGET operations on the queue:
NONE No index is maintained. Use this when messages are usually retrieved sequentially or use both the message identifier and the correlation identifier as a selection criterion on the MQGET call. An index of message identifiers is maintained. Use this when messages are usually retrieved using the message identifier as a selection criterion on the MQGET call with the correlation identifier set to NULL. An index of correlation identifiers is maintained. Use this when messages are usually retrieved using the correlation identifier as a selection criterion on the MQGET call with the message identifier set to NULL. An index of message tokens is maintained. Use this when the queue is a WLM managed queue that you are using with the Workload Manager functions of OS/390. Note: If the queue is a transmission queue or a temporary-dynamic queue, you cannot set INDXTYPE to MSGTOKEN.
MSGID
CORRELID
MSGTOKEN
The INDXTYPE attribute can be changed to NONE, MSGID, or CORRELID at any time, and the change takes effect immediately if all the following conditions are satisfied: v No applications have the queue open v The queue is empty v There are no uncommitted MQPUT or MQGET operations outstanding against the queue If these conditions are not satisfied, the attribute is changed immediately, but the index is not rebuilt until the next time the queue manager is restarted. The reply sent by the queue manager indicates if this is the case. This attribute can be changed to MSGTOKEN only when there are no messages on the queue. If you attempt to change this attribute to MSGTOKEN while there are messages on the queue, the command fails. This attribute is supported only on OS/390. On other platforms, retrieval optimization might be provided, but it is not controlled by a queue attribute. INITQ(string) The local name of a local queue (known as the initiation queue) on this queue manager, to which trigger messages relating to this queue are written. See Rules for naming MQSeries objects on page 4. MAXDEPTH(integer) The maximum number of messages allowed on the queue. Specify a value greater than or equal to zero, and less than or equal to: v 999 999 999 if the queue is on OS/390 v 640 000 if the queue is on any other MQSeries platform Other factors might still cause the queue to be treated as full, for example, if there is no further DASD space available. If this value is reduced, any messages that are already on the queue that cause the new maximum to be exceeded remain intact.
Chapter 2. The MQSeries commands
55
ALTER QLOCAL
MAXMSGL(integer) The maximum length of messages on this queue. | | | | | | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, specify a value greater than or equal to zero, and less than or equal to the maximum message length for the queue manager as defined by the MAXMSGL parameter of the ALTER QMGR command. See ALTER QMGR on page 62 for more information. On other platforms, specify a value greater than or equal to zero, and less than or equal to 4 MB, or 4 194 304 bytes. For a transmission queue, this value includes the space required for headers. It is recommended that the value should be at least 4000 bytes larger than the maximum expected length of user data in any message that could be put on a transmission queue. If this value is reduced, any messages that are already on the queue, whose length exceeds the new maximum, are not affected. Applications can use this attribute to determine the size of buffer they need to retrieve messages from the queue. Therefore, the value should only be reduced if it is known that this will not cause an application to operate incorrectly. MSGDLVSQ Message delivery sequence:
PRIORITY Messages are delivered (in response to MQGET API calls) in first-in-first-out (FIFO) order within priority. This is the default supplied with MQSeries, but your installation might have changed it. Messages are delivered (in response to MQGET API calls) in FIFO order. Priority is ignored for messages on this queue.
FIFO
If the message delivery sequence is changed from PRIORITY to FIFO while there are messages on the queue, the order of the messages already enqueued is not changed. Messages added to the queue subsequently take the default priority of the queue, and so might be processed before some of the existing messages. If the message delivery sequence is changed from FIFO to PRIORITY, the messages enqueued while the queue was set to FIFO take the default priority. | | NOHARDENBO and HARDENBO Whether hardening should be used to ensure that the count of the number of times that a message has been backed out is accurate.
NOHARDENBO HARDENBO The count is not hardened. This is the default supplied with MQSeries, but your installation might have changed it. The count is hardened.
NOSHARE and SHARE Whether multiple applications can get messages from this queue:
NOSHARE SHARE A single application instance only can get messages from the queue More than one application instance can get messages from the queue
56
ALTER QLOCAL
NOTRIGGER and TRIGGER Whether trigger messages are written to the initiation queue (named by the INITQ attribute) to trigger the application (named by the PROCESS attribute):
NOTRIGGER Triggering is not active, and trigger messages are not written to the initiation queue. This is the default supplied with MQSeries, but your installation might have changed it. Triggering is active, and trigger messages are written to the initiation queue.
TRIGGER
This attribute can also be changed using the MQSET API call. PROCESS(string) The local name of the MQSeries process. This is the name of a process instance that identifies the application started by the queue manager when a trigger event occurs. See Rules for naming MQSeries objects on page 4. The process does not have to be defined when the local queue is defined, but it must be available for a trigger event to occur. If the queue is a transmission queue, the process gives the name of the channel to be started. This parameter is optional for transmission queues on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT; if you do not specify it, the channel name is taken from the value specified for the TRIGDATA parameter. QDEPTHHI(integer) The threshold against which the queue depth is compared to generate a Queue Depth High event. This event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold. See the QDPHIEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDEPTHLO(integer) The threshold against which the queue depth is compared to generate a Queue Depth Low event. This event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold. See the QDPLOEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDPHIEV Controls whether Queue Depth High events are generated. A Queue Depth High event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold (see the QDEPTHHI attribute).
57
ALTER QLOCAL
Note: The value of this attribute can change implicitly. See the description of the Queue Depth High event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Depth High events are generated Queue Depth High events are not generated
QDPLOEV Controls whether Queue Depth Low events are generated. A Queue Depth Low event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold (see the QDEPTHLO attribute). Note: The value of this attribute can change implicitly. See the description of the Queue Depth Low event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Depth Low events are generated Queue Depth Low events are not generated
QDPMAXEV Controls whether Queue Full events are generated. A Queue Full event indicates that a put to a queue has been rejected because the queue is full, that is, the queue depth has already reached its maximum value. Note: The value of this attribute can change implicitly. See the description of the Queue Full event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Full events are generated Queue Full events are not generated
QSVCIEV Controls whether Service Interval High or Service Interval OK events are generated. A Service Interval High event is generated when a check indicates that no messages have been retrieved from the queue for at least the time indicated by the QSVCINT attribute. A Service Interval OK event is generated when a check indicates that messages have been retrieved from the queue within the time indicated by the QSVCINT attribute. Note: The value of this attribute can change implicitly. See the description of the Service Interval High and Service Interval OK events in the MQSeries Programmable System Management manual for more details.
HIGH OK NONE Service Interval High events are generated Service Interval OK events are generated No service interval events are generated
58
ALTER QLOCAL
QSVCINT(integer) The service interval used for comparison to generate Service Interval High and Service Interval OK events. See the QSVCIEV attribute. The value is in units of milliseconds, and must be greater than or equal to zero, and less than or equal to 999 999 999. RETINTVL(integer) The number of hours (greater than or equal to zero, and less than or equal to 999 999 999) from the queue creation date and time (the date and time at which the queue was defined), after which the queue is no longer needed. The CRDATE and CRTIME can be displayed using the DISPLAY QUEUE command. This information is available for use by an operator or a housekeeping application to delete queues that are no longer required. Note: The queue manager does not delete queues based on this value, nor does it prevent queues from being deleted if their retention interval has not expired. It is the users responsibility to take any required action. SCOPE Specifies the scope of the queue definition. QMGR The queue definition has queue-manager scope. This means that the definition of the queue does not extend beyond the queue manager that owns it. To open the queue for output from some other queue manager, either the name of the owning queue manager must be specified, or the other queue manager must have a local definition of the queue. If the SCOPE attribute of a queue is changed from CELL to QMGR, the entry for the queue is deleted from the cell directory. CELL The queue definition has cell scope. This means that the queue is known to all of the queue managers in the cell, and can be opened for output merely by specifying the name of the queue; the name of the queue manager that owns the queue need not be specified. If the SCOPE attribute of a queue is changed from QMGR to CELL, an entry for the queue is created in the cell directory. If there is already a queue with the same name in the cell directory, the command fails. The SCOPE attribute of a dynamic queue cannot be changed to CELL. This value is valid only if a name service supporting a cell directory (for example, the supplied DCE name service) has been configured. | | This attribute is valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT. STGCLASS(string) The name of the storage class. This is an installation-defined name.
59
ALTER QLOCAL
This attribute is valid only on OS/390. See the MQSeries for OS/390 System Management Guide for more details. The first character of the name must be uppercase AZ, and subsequent characters either uppercase AZ or numeric 09. Note: This attribute can be changed only if the queue is empty and closed. TRIGDATA(string) The data that is inserted in the trigger message. The maximum length of the string is 64 bytes. For a transmission queue on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, or Windows NT, you can use this parameter to specify the name of the channel to be started. This attribute can also be changed using the MQSET API call. TRIGDPTH(integer) The number of messages that have to be on the queue before a trigger message is written, if TRIGTYPE is DEPTH. The value must be greater than zero, and less than or equal to 999 999 999. This attribute can also be changed using the MQSET API call. TRIGMPRI(integer) The message priority number that will trigger this queue. The value must be greater than or equal to zero, and less than or equal to the MAXPRTY queue manager attribute (see DISPLAY QMGR on page 206 for details). This attribute can also be changed using the MQSET API call. TRIGTYPE Whether and under what conditions a trigger message is written to the initiation queue (named by the INITQ attribute):
FIRST EVERY DEPTH Whenever the first message of priority equal to or greater than that specified by the TRIGMPRI attribute of the queue arrives on the queue. Every time a message arrives on the queue with priority equal to or greater than that specified by the TRIGMPRI attribute of the queue. When the number of messages with priority equal to or greater than that specified by TRIGMPRI is equal to the number indicated by the TRIGDPTH attribute. No trigger messages are written.
NONE
This attribute can also be changed using the MQSET API call. USAGE Queue usage:
NORMAL XMITQ The queue is not a transmission queue. The queue is a transmission queue, which is used to hold messages that are destined for a remote queue manager. When an application puts a message to a remote queue, the message is stored on the appropriate transmission queue until it has been successfully transmitted and stored at the remote queue manager. If you specify this option, do not specify values for CLUSTER and CLUSNL, and do not specify INDXTYPE(MSGTOKEN).
60
ALTER QLOCAL
| | Do not change the USAGE attribute while there are messages on that queue.
61
ALTER QMGR
ALTER QMGR
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use ALTER QMGR to alter the queue manager attributes for the local queue manager. Synonym: ALT QMGR ALTER QMGR
ALTER QMGR qmgr attrs FORCE
Qmgr attrs:
AUTHOREV(
(2)
(4) CLWLDATA(string)
(4) CLWLEXIT(string)
(4)
(4) CLWLLEN(length)
DEADQ(string)
DEFXMITQ(string)
DESCR(string)
INHIBTEV(
ENABLED DISABLED
LOCALEV(
ENABLED DISABLED
MAXHANDS(integer) MAXMSGL(integer)
(2) MAXUMSGS(integer)
(1)
PERFMEV(
ENABLED DISABLED
REMOTEEV(
ENABLED DISABLED
(4)
STRSTPEV(
ENABLED DISABLED
TRIGINT(integer)
Notes: 1 2 3 4 Not valid on OS/390. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, Tandem NSK, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT.
62
ALTER QMGR
DISABLED
CCSID(integer) The coded character set identifier for the queue manager. The CCSID is the identifier used with all character string fields defined by the API. It does not apply to application data carried in the text of messages unless the CCSID in the message descriptor is set to the value MQCCSI_Q_MGR when the message is put to a queue. Specify a value in the range 1 through 65 535. The CCSID must specify a value that is defined for use on your platform, and use a character set that is appropriate to the platform. | | | | | | | | CHAD Whether receiver and server-connection channels can be defined automatically:
DISABLED ENABLED Auto-definition is not used. This is the queue managers initial default value. Auto-definition is used.
Chapter 2. The MQSeries commands
If you use this keyword to change the CCSID, applications that are running when the change is applied continue to use the original CCSID. Because of this, you must stop and restart all running applications before you continue. This includes the command server and channel programs. To do this, stop and restart the queue manager after making the change. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, Tandem NSK, and Windows NT. See the MQSeries Application Programming Guide for details of the supported CCSIDs for each platform.
63
ALTER QMGR
Cluster-sender channels can always be defined automatically, regardless of the setting of this parameter. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. CHADEV Whether channel auto-definition events are generated.
DISABLED ENABLED Auto-definition events are not generated. This is the queue managers initial default value. Auto-definition events are generated.
| |
This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. CHADEXIT(string) Auto-definition exit name. If this name is nonblank, the exit is called when an inbound request for an undefined receiver, server-connection, or cluster-sender channel is received. It is also called when starting a cluster-receiver channel. The format and maximum length of the name depends on the environment: v On OS/2 Warp, Windows, and Windows NT, it is of the form dllname(functionname) where dllname is specified without the suffix (.DLL). The maximum length of the string is 128 characters. v On OS/400, it is of the form:
progname libname
| | | | |
where program name occupies the first 10 characters and libname the second 10 characters (both blank-padded to the right if necessary). The maximum length of the string is 20 characters. v On AIX, HP-UX, and Sun Solaris, it is of the form libraryname(functionname). The maximum length of the string is 128 characters. v On OS/390, it is a load module name, maximum length 8 characters. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. On OS/390, it applies only to cluster-sender and cluster-receiver channels. CLWLDATA(string) Cluster workload exit data (maximum length 32 characters). This is passed to the cluster workload exit when it is called.
| |
This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CLWLEXIT(string) Cluster workload exit name. If this name is nonblank, the exit is called when a message is put to a cluster queue. The format and maximum length of the name depends on the environment:
64
ALTER QMGR
| | v On UNIX systems, it is of the form libraryname(functionname). The maximum length is 128 characters. v On OS/2 Warp and Windows NT, it is of the form dllname(functionname), where dllname is specified without the suffix (.DLL). The maximum length is 128 characters. v On OS/390, it is a load module name, maximum length 8 characters. v On OS/400, it is of the form:
progname libname
| | | | | | |
where program name occupies the first 10 characters and libname the second 10 characters (both blank-padded to the right if necessary). The maximum length of the string is 20 characters. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CLWLLEN(length) The maximum number of bytes of message data that is passed to the cluster workload exit. Specify a value between zero and 4 MB for OS/390, or between zero and 999 999 999 on other platforms. The initial default value is 100.
| |
This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. DEADQ(string) The local name of a dead-letter queue (or undelivered-message queue) on which messages that cannot be routed to their correct destination are put. The queue named must be a local queue. See Rules for naming MQSeries objects on page 4. DEFXMITQ(string) Local name of the default transmission queue on which messages destined for a remote queue manager are put, if there is no other suitable transmission queue defined. The queue named must be a local transmission queue. See Rules for naming MQSeries objects on page 4. DESCR(string) Plain-text comment. It provides descriptive information about the queue manager. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. INHIBTEV Whether inhibit (Inhibit Get and Inhibit Put) events are generated:
ENABLED DISABLED Inhibit events are generated. Inhibit events are not generated. This is the queue managers initial default value.
65
ALTER QMGR
LOCALEV Whether local error events are generated:
ENABLED DISABLED Local error events are generated. Local error events are not generated. This is the queue managers initial default value.
MAXHANDS(integer) The maximum number of open handles that any one task can have at the same time. Do not specify a value less than zero or greater than 999 999 999. MAXMSGL(integer) The maximum length of messages allowed on queues for this queue manager. | | This is in the range 32 KB through 100 MB. The default is 4 MB (4 194 403 bytes). If you reduce the maximum message length for the queue manager, you should also reduce the maximum message length of the SYSTEM.DEFAULT.LOCAL.QUEUE definition, and all other queues connected to the queue manager. This ensures that the queue managers limit is not less than that of any of the queues associated with it. If you do not do this, and applications inquire only the value of the queues MAXMSGL, they might not work correctly. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. MAXUMSGS(integer) The maximum number of uncommitted messages within a syncpoint. This is a limit on v the number of messages that can be retrieved, plus v the number of messages that can be put within any one syncpoint. It does not apply to messages that are put or retrieved outside syncpoint. The number includes any trigger messages and report messages generated within the same unit of recovery. Specify a value in the range 1 through 999 999 999. This attribute is not supported on OS/390. See the DEFINE MAXSMSGS command instead. PERFMEV Whether performance-related events are generated:
ENABLED DISABLED Performance-related events are generated. Performance-related events are not generated. This is the queue managers initial default value.
66
ALTER QMGR
DISABLED Remote error events are not generated. This is the queue managers initial default value.
REPOS(clustername) The name of a cluster for which this queue manager is to provide a repository manager service. The maximum length is 48 characters conforming to the rules for naming MQSeries objects. | | | No more than one of the resultant values of REPOS can be nonblank. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. REPOSNL(nlname) The name of a namelist of clusters for which this queue manager is to provide a repository manager service. | | | | | | | No more than one of the resultant values of REPOSNL can be nonblank. If both REPOS and REPOSNL are blank, or REPOS is blank and the namelist specified by REPOSNL is empty, this queue manager does not have a full repository, but might be a client of other repository services that are defined in the cluster. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. STRSTPEV Whether start and stop events are generated:
ENABLED DISABLED Start and stop events are generated. This is the queue managers initial default value. Start and stop events are not generated.
TRIGINT(integer) A time interval expressed in milliseconds. The TRIGINT attribute is relevant only if the trigger type (TRIGTYPE) is set to FIRST (see DEFINE QLOCAL on page 134 for details). In this case trigger messages are normally generated only when a suitable message arrives on the queue, and the queue was previously empty. Under certain circumstances, however an additional trigger message can be generated with FIRST triggering even if the queue was not empty. These additional trigger messages are not generated more often than every TRIGINT milliseconds. See the MQSeries Application Programming Guide for more information. Do not specify a value less than zero or greater than 999 999 999.
67
ALTER QMODEL
ALTER QMODEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use ALTER QMODEL to alter the attributes of a model queue. Synonym: ALT QM ALTER QMODEL
ALTER QMODEL(q-name) common q attrs local q attrs model q attr
Common q attrs:
DEFPRTY(integer)
DEFPSIST(
NO YES
DESCR(string)
PUT(
ENABLED DISABLED
Local q attrs:
BOQNAME(string)
BOTHRESH(integer)
DEFSOPT(
EXCL SHARED
) DISTL( NO YES )
(1)
GET(
ENABLED DISABLED
(2)
INITQ(string)
MAXDEPTH(integer)
MAXMSGL(integer)
MSGDLVSQ(
PRIORITY FIFO
NOHARDENBO HARDENBO
NOSHARE SHARE
NOTRIGGER TRIGGER
PROCESS(string)
QDEPTHHI(integer)
QDEPTHLO(integer)
QDPHIEV(
ENABLED DISABLED
QDPLOEV(
ENABLED DISABLED
QDPMAXEV(
ENABLED DISABLED
QSVCIEV(
NONE HIGH OK
QSVCINT(integer)
RETINTVL(integer)
(2) STGCLASS(string)
TRIGDATA(string)
TRIGDPTH(integer)
TRIGMPRI(integer)
68
ALTER QMODEL
TRIGTYPE( FIRST EVERY DEPTH NONE ) USAGE( NORMAL XMITQ )
Model q attr:
DEFTYPE(
TEMPDYN PERMDYN
Notes: 1 2 Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390.
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes).
Chapter 2. The MQSeries commands
69
ALTER QMODEL
Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Messages cannot be added to the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call.
DISTL Whether distribution lists are supported by the partner queue manager.
YES NO Distribution lists are supported by the partner queue manager. Distribution lists are not supported by the partner queue manager.
Note: You should not normally change this attribute, because it is set by the MCA. However you can set this attribute when defining a transmission queue if the distribution list capability of the destination queue manager is known. This keyword is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. GET Whether applications are to be permitted to get messages from this queue:
Messages can be retrieved from the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Applications cannot retrieve messages from the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call. INDXTYPE The type of index maintained by the queue manager to expedite MQGET operations on the queue:
70
ALTER QMODEL
NONE No index is maintained. Use this when messages are usually retrieved sequentially or use both the message identifier and the correlation identifier as a selection criterion on the MQGET call. An index of message identifiers is maintained. Use this when messages are usually retrieved using the message identifier as a selection criterion on the MQGET call with the correlation identifier set to NULL. An index of correlation identifiers is maintained. Use this when messages are usually retrieved using the correlation identifier as a selection criterion on the MQGET call with the message identifier set to NULL. An index of message tokens is maintained. Use this when the queue is a WLM managed queue that you are using with the Workload Manager functions of OS/390. Note: If the queue is a transmission queue or a temporary-dynamic queue, you cannot set INDXTYPE to MSGTOKEN.
MSGID
CORRELID
MSGTOKEN
The INDXTYPE attribute can be changed to NONE, MSGID, or CORRELID at any time, and the change takes effect immediately if all the following conditions are satisfied: v No applications have the queue open v The queue is empty v There are no uncommitted MQPUT or MQGET operations outstanding against the queue If these conditions are not satisfied, the attribute is changed immediately, but the index is not rebuilt until the next time the queue manager is restarted. The reply sent by the queue manager indicates if this is the case. This attribute can be changed to MSGTOKEN only when there are no messages on the queue. If you attempt to change this attribute to MSGTOKEN while there are messages on the queue, the command fails. This attribute is supported only on OS/390. On other platforms, retrieval optimization might be provided, but it is not controlled by a queue attribute. INITQ(string) The local name of a local queue (known as the initiation queue) on this queue manager, to which trigger messages relating to this queue are written. See Rules for naming MQSeries objects on page 4. MAXDEPTH(integer) The maximum number of messages allowed on the queue. Specify a value greater than or equal to zero, and less than or equal to: v 999 999 999 if the queue is on OS/390 v 640 000 if the queue is on any other MQSeries platform Other factors might still cause the queue to be treated as full, for example, if there is no further DASD space available. If this value is reduced, any messages that are already on the queue that cause the new maximum to be exceeded remain intact. MAXMSGL(integer) The maximum length of messages on this queue. | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, specify a value greater than or equal to zero, and less than or equal to the
Chapter 2. The MQSeries commands
71
ALTER QMODEL
| | | | | maximum message length for the queue manager as defined by the MAXMSGL parameter of the ALTER QMGR command. See ALTER QMGR on page 62 for more information. On other platforms, specify a value greater than or equal to zero, and less than or equal to 4 MB, or 4 194 304 bytes. For a transmission queue, this value includes the space required for headers. It is recommended that the value should be at least 4000 bytes larger than the maximum expected length of user data in any message that could be put on a transmission queue. If this value is reduced, any messages that are already on the queue, whose length exceeds the new maximum, are not affected. Applications can use this attribute to determine the size of buffer they need to retrieve messages from the queue. Therefore, the value should only be reduced if it is known that this will not cause an application to operate incorrectly. MSGDLVSQ Message delivery sequence:
PRIORITY Messages are delivered (in response to MQGET API calls) in first-in-first-out (FIFO) order within priority. This is the default supplied with MQSeries, but your installation might have changed it. Messages are delivered (in response to MQGET API calls) in FIFO order. Priority is ignored for messages on this queue.
FIFO
If the message delivery sequence is changed from PRIORITY to FIFO while there are messages on the queue, the order of the messages already enqueued is not changed. Messages added to the queue subsequently take the default priority of the queue, and so might be processed before some of the existing messages. If the message delivery sequence is changed from FIFO to PRIORITY, the messages enqueued while the queue was set to FIFO take the default priority. | | NOHARDENBO and HARDENBO Whether hardening should be used to ensure that the count of the number of times that a message has been backed out is accurate.
NOHARDENBO HARDENBO The count is not hardened. This is the default supplied with MQSeries, but your installation might have changed it. The count is hardened.
NOSHARE and SHARE Whether multiple applications can get messages from this queue:
NOSHARE SHARE A single application instance only can get messages from the queue More than one application instance can get messages from the queue
NOTRIGGER and TRIGGER Whether trigger messages are written to the initiation queue (named by the INITQ attribute) to trigger the application (named by the PROCESS attribute):
72
ALTER QMODEL
NOTRIGGER Triggering is not active, and trigger messages are not written to the initiation queue. This is the default supplied with MQSeries, but your installation might have changed it. Triggering is active, and trigger messages are written to the initiation queue.
TRIGGER
This attribute can also be changed using the MQSET API call. PROCESS(string) The local name of the MQSeries process. This is the name of a process instance that identifies the application started by the queue manager when a trigger event occurs. See Rules for naming MQSeries objects on page 4. The process does not have to be defined when the local queue is defined, but it must be available for a trigger event to occur. If the queue is a transmission queue, the process gives the name of the channel to be started. This parameter is optional for transmission queues on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT; if you do not specify it, the channel name is taken from the value specified for the TRIGDATA parameter. QDEPTHHI(integer) The threshold against which the queue depth is compared to generate a Queue Depth High event. This event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold. See the QDPHIEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDEPTHLO(integer) The threshold against which the queue depth is compared to generate a Queue Depth Low event. This event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold. See the QDPLOEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDPHIEV Controls whether Queue Depth High events are generated. A Queue Depth High event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold (see the QDEPTHHI attribute). Note: The value of this attribute can change implicitly. See the description of the Queue Depth High event in the MQSeries Programmable System Management manual for more details.
ENABLED Queue Depth High events are generated
Chapter 2. The MQSeries commands
73
ALTER QMODEL
DISABLED Queue Depth High events are not generated
QDPLOEV Controls whether Queue Depth Low events are generated. A Queue Depth Low event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold (see the QDEPTHLO attribute). Note: The value of this attribute can change implicitly. See the description of the Queue Depth Low event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Depth Low events are generated Queue Depth Low events are not generated
QDPMAXEV Controls whether Queue Full events are generated. A Queue Full event indicates that a put to a queue has been rejected because the queue is full, that is, the queue depth has already reached its maximum value. Note: The value of this attribute can change implicitly. See the description of the Queue Full event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Full events are generated Queue Full events are not generated
QSVCIEV Controls whether Service Interval High or Service Interval OK events are generated. A Service Interval High event is generated when a check indicates that no messages have been retrieved from the queue for at least the time indicated by the QSVCINT attribute. A Service Interval OK event is generated when a check indicates that messages have been retrieved from the queue within the time indicated by the QSVCINT attribute. Note: The value of this attribute can change implicitly. See the description of the Service Interval High and Service Interval OK events in the MQSeries Programmable System Management manual for more details.
HIGH OK NONE Service Interval High events are generated Service Interval OK events are generated No service interval events are generated
QSVCINT(integer) The service interval used for comparison to generate Service Interval High and Service Interval OK events. See the QSVCIEV attribute. The value is in units of milliseconds, and must be greater than or equal to zero, and less than or equal to 999 999 999.
74
ALTER QMODEL
RETINTVL(integer) The number of hours (greater than or equal to zero, and less than or equal to 999 999 999) from the queue creation date and time (the date and time at which the queue was defined), after which the queue is no longer needed. The CRDATE and CRTIME can be displayed using the DISPLAY QUEUE command. This information is available for use by an operator or a housekeeping application to delete queues that are no longer required. Note: The queue manager does not delete queues based on this value, nor does it prevent queues from being deleted if their retention interval has not expired. It is the users responsibility to take any required action. STGCLASS(string) The name of the storage class. This is an installation-defined name. This attribute is valid only on OS/390. See the MQSeries for OS/390 System Management Guide for more details. The first character of the name must be uppercase AZ, and subsequent characters either uppercase AZ or numeric 09. Note: This attribute can be changed only if the queue is empty and closed. TRIGDATA(string) The data that is inserted in the trigger message. The maximum length of the string is 64 bytes. For a transmission queue on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, or Windows NT, you can use this parameter to specify the name of the channel to be started. This attribute can also be changed using the MQSET API call. TRIGDPTH(integer) The number of messages that have to be on the queue before a trigger message is written, if TRIGTYPE is DEPTH. The value must be greater than zero, and less than or equal to 999 999 999. This attribute can also be changed using the MQSET API call. TRIGMPRI(integer) The message priority number that will trigger this queue. The value must be greater than or equal to zero, and less than or equal to the MAXPRTY queue manager attribute (see DISPLAY QMGR on page 206 for details). This attribute can also be changed using the MQSET API call. TRIGTYPE Whether and under what conditions a trigger message is written to the initiation queue (named by the INITQ attribute):
FIRST EVERY DEPTH Whenever the first message of priority equal to or greater than that specified by the TRIGMPRI attribute of the queue arrives on the queue. Every time a message arrives on the queue with priority equal to or greater than that specified by the TRIGMPRI attribute of the queue. When the number of messages with priority equal to or greater than that specified by TRIGMPRI is equal to the number indicated by the TRIGDPTH attribute. No trigger messages are written.
NONE
75
ALTER QMODEL
This attribute can also be changed using the MQSET API call. USAGE Queue usage:
NORMAL XMITQ The queue is not a transmission queue. The queue is a transmission queue, which is used to hold messages that are destined for a remote queue manager. When an application puts a message to a remote queue, the message is stored on the appropriate transmission queue until it has been successfully transmitted and stored at the remote queue manager. If you specify this option, do not specify INDXTYPE(MSGTOKEN).
PERMDYN
76
ALTER QREMOTE
ALTER QREMOTE
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use ALTER QREMOTE to alter the attributes of a local definition of a remote queue, a queue-manager alias, or a reply-to queue alias. Synonym: ALT QR ALTER QREMOTE
ALTER QREMOTE(q-name) FORCE common q attrs remote q attrs
Common q attrs:
DEFPRTY(integer)
DEFPSIST(
NO YES
DESCR(string)
PUT(
ENABLED DISABLED
Remote q attrs:
(1)
RNAME(string)
(2)
XMITQ(string)
Notes: 1 2 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT
77
ALTER QREMOTE
v The XMITQ attribute is changed v One or more applications has this queue open as a remote queue If FORCE is not specified in these circumstances, the command is unsuccessful. FORCE is also needed if both of the following are true: v Any of the RNAME, RQMNAME, or XMITQ keywords is changed v One or more applications has a queue open which resolved through this definition as a queue-manager alias Again, if FORCE is not specified in these circumstances, the command is unsuccessful. Note: FORCE is not required if this definition is in use as a reply-to queue alias only.
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Messages cannot be added to the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call.
78
ALTER QREMOTE
The MQPUT1 call always behaves as if NOTFIXED had been specified. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. RNAME(string) Name of remote queue. This is the local name of the queue as defined on the queue manager specified by RQMNAME. v If this definition is used for a local definition of a remote queue, RNAME must not be blank when the open occurs. v If this definition is used for a queue-manager alias definition, RNAME must be blank when the open occurs. v If this definition is used for a reply-to alias, this name is the name of the queue that is to be the reply-to queue. The name is not checked to ensure that it contains only those characters normally allowed for queue names (see Rules for naming MQSeries objects on page 4). RQMNAME(string) The name of the remote queue manager on which the queue RNAME is defined. v If an application opens the local definition of a remote queue, RQMNAME must not be blank or the name of the local queue manager. When the open occurs, if XMITQ is blank there must be a local queue of this name, which is to be used as the transmission queue.
Chapter 2. The MQSeries commands
79
ALTER QREMOTE
v If this definition is used for a queue-manager alias, RQMNAME is the name of the queue manager that is being aliased. It can be the name of the local queue manager. Otherwise, then if XMITQ is blank, when the open occurs there must be a local queue of this name, which is to be used as the transmission queue. v If this definition is used for a reply-to alias, this name is the name of the queue manager that is to be the reply-to queue manager. The name is not checked to ensure that it contains only those characters normally allowed for MQSeries object names (see Rules for naming MQSeries objects on page 4). SCOPE Specifies the scope of the queue definition.
QMGR The queue definition has queue-manager scope. This means that the definition of the queue does not extend beyond the queue manager which owns it. To open the queue for output from some other queue manager, either the name of the owning queue manager must be specified, or the other queue manager must have a local definition of the queue. The queue definition has cell scope. This means that the queue is known to all of the queue managers in the cell, and can be opened for output merely by specifying the name of the queue; the name of the queue manager that owns the queue need not be specified. If there is already a queue with the same name in the cell directory, the command fails. This value is valid only if a name service supporting a cell directory (for example, the supplied DCE name service) has been configured.
CELL
| |
This attribute is only supported on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT. XMITQ(string) The name of the transmission queue to be used for forwarding messages to the remote queue, for either a remote queue or for a queue-manager alias definition. If XMITQ is blank, a queue with the same name as RQMNAME is used instead as the transmission queue. This attribute is ignored if the definition is being used as a queue-manager alias and RQMNAME is the name of the local queue manager. It is also ignored if the definition is used as a reply-to queue alias definition.
80
ALTER SECURITY
ALTER SECURITY
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use ALTER SECURITY to define system-wide security options. Synonym: ALT SEC ALTER SECURITY
ALTER SECURITY security attrs
Security attrs:
INTERVAL(integer)
TIMEOUT(integer)
81
ALTER STGCLASS
ALTER STGCLASS
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use ALTER STGCLASS to alter the characteristics of a storage class. Synonym: ALT STC ALTER STGCLASS
ALTER STGCLASS (storage class) PSID(integer) DESCR(description) XCFGNAME(gname) XCFMNAME(mname)
82
ALTER STGCLASS
If you want to alter this value to blank, you must also alter the value of XCFMNAME to blank, and enclose the blank characters in single quotation marks, as shown below:
ALT STGCLASS(X) XCFMNAME(' ') XCFGNAME(' ')
XCFMNAME(member name) If you are using the IMS bridge, this is the XCF member name of the IMS system within the XCF group specified in XCFGNAME. (This is the member name specified in the IMS parameter list.) This is 1 through 16 characters. The first character is in the range A through Z; subsequent characters are A through Z or 0 through 9. If you want to alter this value to blank, you must also alter the value of XCFGNAME to blank, and enclose the blank characters in single quotation marks, as shown above.
Usage notes
1. The resultant values of XCFGNAME and XCFMNAME must either both be blank or both be nonblank.
83
ALTER TRACE
ALTER TRACE
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use ALTER TRACE to change the trace events (IFCIDs) being traced for a particular active trace. ALTER TRACE stops the specified trace, and restarts it with the altered attributes. Note: ALTER TRACE does not affect any RMID(231) settings (although a subsequent DISPLAY TRACE command will show them altered). Synonym: ALT TRACE ALTER TRACE
ALTER TRACE ( GLOBAL STAT ACCTG ) TNO(integer) trace attrs
Trace attrs:
CLASS(
* , integer
COMMENT(string)
IFCID(
* , ifcid
Trace attributes
CLASS(integer) The trace class to be altered. This limits the list to IFCIDs activated for particular classes. See START TRACE on page 241 for a list of allowed classes. A range of classes can be specified as m:n (for example, CLASS(01:03)). CLASS(*) activates all default IFCID classes.
84
ALTER TRACE
COMMENT(string) A comment that is reproduced in the trace output record (except in the resident trace tables). string is any character string. If it includes blanks, commas, or special characters, it must be enclosed between single quotation marks ('). IFCID(ifcid) The events to be traced. This specifies the optional IFCIDs to activate. All IFCIDs and classes specified are activated for the trace type specified.
85
ARCHIVE LOG
ARCHIVE LOG
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use ARCHIVE LOG as part of your backup procedure. It takes a copy of the current active log following the latest syncpoint. Synonym: ARC LOG ARCHIVE LOG
ARCHIVE LOG WAIT(NO) MODE(QUIESCE) TIME(nnn) WAIT(YES)
86
ARCHIVE LOG
To specify the WAIT parameter, you must also specify MODE(QUIESCE).
NO Specifies that control is returned to the issuer when the quiesce process starts. This makes the quiesce process asynchronous to the issuer; you can issue further MQSeries commands when the ARCHIVE LOG command returns control to you. This is the default. Specifies that control is returned to the issuer when the quiesce process finishes. This makes the quiesce process synchronous to the issuer; further MQSeries commands are not processed until the ARCHIVE LOG command finishes.
YES
Usage notes
1. You cannot issue an ARCHIVE LOG command while a previous ARCHIVE LOG command is in progress. 2. You cannot issue an ARCHIVE LOG command when the active log data set is the last available active log data set, because it would use all the available active log data set space, and MQSeries would halt all processing until an off-load had been completed. 3. You can issue an ARCHIVE LOG without the MODE(QUIESCE) option when a STOP QMGR MODE(QUIESCE) is in progress, but not when a STOP QMGR MODE (FORCE) is in progress. 4. You can issue a DISPLAY THREAD command to discover whether an ARCHIVE LOG command is active. The DISPLAY command returns message CSQV400I if an ARCHIVE LOG command is active.
87
CLEAR QLOCAL
CLEAR QLOCAL
Digital OpenVMS U OS/390 OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use CLEAR QLOCAL to clear the messages from a local queue. Synonym: CLEAR QL CLEAR QLOCAL
CLEAR QLOCAL(q-name)
| |
| | | |
88
DEFINE BUFFPOOL
DEFINE BUFFPOOL
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DEFINE BUFFPOOL to define a buffer pool that is used for holding messages in main storage. Note: DEFINE BUFFPOOL can be issued only from the CSQINP1 initialization data set. Synonym: DEF BP DEFINE BUFFPOOL
BUFFERS(1000) DEFINE BUFFPOOL(buf-pool-id) BUFFERS(integer)
89
DEFINE CHANNEL
DEFINE CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DEFINE CHANNEL to define a new channel, and set its attributes. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. For cluster-sender channels, you can only specify the REPLACE option for channels that have been created manually. Synonym: DEF CHL There is a separate syntax diagram for each type of channel: v Sender channel on page 91 v Server channel on page 93 v Receiver channel on page 95 v Requester channel on page 97 v Client-connection channel on page 99 v Server-connection channel on page 101 v Cluster-sender channel on page 102 v Cluster-receiver channel on page 104
90
DEFINE CHANNEL
Sender channel
DEFINE CHANNEL
(1) DEFINE CHANNEL(channel-name) CHLTYPE(SDR) CONNAME(string) TRPTYPE (2) ( DECNET LU62 (4) NETBIOS (4) SPX TCP (5) UDP (3) ) XMITQ(string)
(6) BATCHINT(0)
(6) DESCR( )
(6)
BATCHSZ(integer)
DESCR(string)
BATCHINT(integer)
(6)
(6)
HBINT(integer)
(6)
(8)
(8)
(6) MODENAME( )
(6) MSGEXIT( )
MODENAME(string) MSGDATA(
, (10) string )
(7) PASSWORD( )
(6)
(9)
(11) RCVDATA( )
(6)
(9) PASSWORD(string)
(6) SCYEXIT( )
(6)
SCYEXIT(string)
(6)
, (10) string )
91
DEFINE CHANNEL
(6) SHORTRTY(10) SHORTRTY(integer) SHORTTMR(60) SHORTTMR(integer) TPNAME(string) (6) TPNAME( ) (9) USERID(string) (6) (9) USERID( ) (9) (11) (6) (9) (11)
Notes: 1 2 3 4 5 6 7 8 9 10 11 This parameter must follow immediately after the channel name except on OS/390. This is not mandatory on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS. Valid only on OS/2 Warp and Windows NT. Valid only on AIX. This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62. You can specify more than one value only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Not valid on OS/390.
92
DEFINE CHANNEL
Server channel
DEFINE CHANNEL
(1) DEFINE CHANNEL(channel-name) CHLTYPE(SVR) TRPTYPE (2) ( DECNET LU62 (4) NETBIOS (4) SPX TCP (5) UDP (3) ) XMITQ(string)
(7)
(7) CONNAME( )
(7)
BATCHSZ(integer)
CONNAME(string)
BATCHINT(integer)
(7) DISCINT(6000)
(7) HBINT(300)
(7)
(8)
DESCR(string)
DISCINT(integer) HBINT(integer)
(8)
(7)
LONGTMR(integer)
(9)
(7)
(7)
MODENAME(string) MSGDATA(
, (11) string )
(7)
(8) PASSWORD( )
(7)
(10)
(12)
(10)
(12)
(7) SCYDATA( )
(7) SCYEXIT( )
(7)
SCYEXIT(string)
(7)
, (11) string )
93
DEFINE CHANNEL
(7) SHORTRTY(10) SHORTRTY(integer) SHORTTMR(60) SHORTTMR(integer) TPNAME(string) (7) TPNAME( ) (10) USERID(string) (7) (10) USERID( ) (10) (12) (7) (10) (12)
Notes: 1 2 3 4 5 6 7 8 9 10 11 12 This parameter must follow immediately after the channel name except on OS/390. This is not mandatory on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS. Valid only on OS/2 Warp and Windows NT. Valid only on AIX. Valid only on Tandem NSK. This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62. You can specify more than one value only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Not valid on OS/390.
94
DEFINE CHANNEL
Receiver channel
DEFINE CHANNEL
(6) (1) DEFINE CHANNEL(channel-name) CHLTYPE(RCVR) TRPTYPE (2) ( DECNET LU62 (4) NETBIOS (4) SPX TCP (5) UDP (7) BATCHSZ(50) BATCHSZ(integer) DESCR( ) DESCR(string) HBINT(integer) (7) HBINT(300) (8) LIKE(channel-name) (7) (8) (3) ) (6) AUTOSTART(ENABLED) AUTOSTART(DISABLED)
(7) MRDATA( )
(7)
(7)
(9)
MCAUSER(string) MRDATA(string)
(9) MREXIT(string)
(7) MRRTY(10)
(7)
(7)
MRRTY(integer)
MRTMR(integer) MSGDATA(
, (10) string )
(7)
(8)
(8) NPMSPEED(NORMAL)
(7) RCVEXIT( )
(7)
, (10) string )
(7) SENDDATA( )
(7)
(7)
95
DEFINE CHANNEL
Notes: 1 2 3 4 5 6 7 8 9 10 11 This parameter must follow immediately after the channel name except on OS/390. This is not mandatory on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS. Valid only on OS/2 Warp or Windows NT. Valid only on AIX. Valid only on Tandem NSK. This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Not valid on OS/390. You can specify more than one value only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390.
96
DEFINE CHANNEL
Requester channel
DEFINE CHANNEL
(1) DEFINE CHANNEL(channel-name) CHLTYPE(RQSTR) CONNAME(string) TRPTYPE (2) ( DECNET LU62 (4) NETBIOS (4) SPX TCP (5) UDP (3) )
(7) DESCR( )
(7) HBINT(300)
(7)
(8)
BATCHSZ(integer)
DESCR(string) HBINT(integer)
(8)
(7)
(9)
(9)
(7)
(7)
(7)
(11)
(11) MREXIT(string)
MODENAME(string)
MRDATA(string)
(7) MRRTY(10)
(7)
(11)
(11) MRTMR(integer)
MRRTY(integer)
(7)
(8)
(8) NPMSPEED(NORMAL)
, (12) string )
(7) PASSWORD( )
(10)
(11) PUTAUT(DEF)
(7) RCVDATA( )
(7)
(10) PASSWORD(string)
(11)
(7) SCYEXIT( )
(7)
SCYEXIT(string)
97
DEFINE CHANNEL
(7) SENDDATA( ) SENDEXIT( ) (7) SEQWRAP(999 999 999) SEQWRAP(integer) , (12) SENDDATA( string ) SENDEXIT( , (12) string ) (7)
(7) TPNAME( )
(7)
(10)
(11)
(10) USERID(string)
(11)
TPNAME(string)
Notes: 1 2 3 4 5 6 7 8 9 10 11 12 13 This parameter must follow immediately after the channel name except on OS/390. This is not mandatory on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS. Valid only on OS/2 Warp and Windows NT. Valid only on AIX. Valid only on Tandem NSK. This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62. Not valid on OS/390. You can specify more than one value only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390.
98
DEFINE CHANNEL
Client-connection channel
DEFINE CHANNEL
(1) DEFINE CHANNEL(channel-name) CHLTYPE (CLNTCONN) CONNAME(string) TRPTYPE (2) ( DECNET LU62 (4) NETBIOS (4) SPX TCP (3) )
(5)
(5)
HBINT(integer)
(5) MODENAME( )
(5)
(5)
QMNAME(string)
MODENAME(string)
PASSWORD(string)
(5) SCYDATA( )
(5) SCYEXIT( )
(5)
SCYEXIT(string)
(5)
, (8) string )
(5) TPNAME( )
(5)
(7)
(7) USERID(string)
TPNAME(string)
Notes: 1 2 3 4 5 6 7 This parameter must follow immediately after the channel name except on OS/390. This is not mandatory on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS. Valid only for clients to be run on DOS, OS/2 Warp, Windows, or Windows NT. This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62.
99
DEFINE CHANNEL
8 You can specify more than one value only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT.
100
DEFINE CHANNEL
Server-connection channel
DEFINE CHANNEL
(1) DEFINE CHANNEL(channel-name) CHLTYPE(SVRCONN) TRPTYPE (2) ( DECNET LU62 (4) NETBIOS (4) SPX TCP (3) )
(6) HBINT(300)
(6)
(7)
DESCR(string) HBINT(integer)
(7)
LIKE(channel-name)
(6)
(8)
MCAUSER(string)
(8) PUTAUT(ONLYMCA)
(6) SCYDATA( )
(6) SCYEXIT( )
(6)
SCYEXIT(string)
(6)
, (9) string )
Notes: 1 2 3 4 5 6 7 8 9 This parameter must follow immediately after the channel name except on OS/390. This is not mandatory on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS. Valid only for clients to be run on DOS, OS/2 Warp, Windows, or Windows NT. Valid only on Tandem NSK. This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390. You can specify more than one value only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT.
101
DEFINE CHANNEL
Cluster-sender channel
DEFINE CHANNEL
(3) (1) DEFINE CHANNEL(channel-name) CHLTYPE (CLUSSDR) (2) CONNAME(string) BATCHINT(integer) BATCHINT(0)
(3) CLUSNL( )
(3) DESCR( )
(3)
CLUSTER(clustername)
CLUSNL(nlname)
DESCR(string)
(3)
HBINT(integer)
(3)
(4)
(4)
(3) MODENAME( )
(3) MSGEXIT( )
MODENAME(string) MSGDATA(
, (6) string )
(3)
(5)
(7) RCVDATA( )
(3)
(5) PASSWORD(string)
(3) SCYEXIT( )
(3) SENDDATA( )
(3)
(3) SHORTRTY(10)
(3) SHORTTMR(60)
(3)
SHORTRTY(integer)
SHORTTMR(integer)
102
DEFINE CHANNEL
(3) TPNAME( ) (5) TPNAME(string) NETBIOS (8) SPX TCP (9) UDP TRPTYPE( LU62 (8) ) USERID(string) (5) USERID( ) (5) (7) (3) (5) (7)
Notes: 1 2 3 4 5 6 7 8 9 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. This parameter must follow immediately after the channel name except on OS/390. This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only if TRPTYPE is LU62. You can specify one value only on OS/390. Not valid on OS/390. Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
103
DEFINE CHANNEL
Cluster-receiver channel
DEFINE CHANNEL
(3) (1) DEFINE CHANNEL(channel-name) CHLTYPE (CLUSRCVR) (2) CONNAME(string) BATCHINT(integer) (2) BATCHINT(0)
(3) CLUSNL( )
(3) DESCR( )
(3)
CLUSTER(clustername)
CLUSNL(nlname)
DESCR(string)
(3)
HBINT(integer)
(3) MCAUSER( )
(3)
MCAUSER(string)
(3) MRDATA( )
(4)
(4) MRDATA(string)
(3) MREXIT( )
(3)
(3)
(3)
MREXIT(string)
MRRTY(integer)
MRTMR(integer) MSGDATA(
, (5) string )
(3) MODENAME( )
(3)
(3) RCVDATA( )
(3)
, (5) string )
(3) SCYEXIT( )
(3) SENDDATA( )
(3)
104
DEFINE CHANNEL
(3) SENDEXIT( ) SEQWRAP(999 999 999) SEQWRAP(integer) , (5) SENDEXIT( string ) (3) SHORTRTY(10) SHORTRTY(integer) (3)
(3)
(6)
(6) TPNAME(string)
TRPTYPE(
Notes: 1 2 3 4 5 6 7 8 9 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. This parameter must follow immediately after the channel name except on OS/390. This is the default supplied with MQSeries, but your installation might have changed it. Not valid on OS/390. You can specify one value only on OS/390. Valid only if TRPTYPE is LU62. Valid only on OS/390. Valid only on OS/2 Warp and Windows NT. Valid only on AIX.
This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, SVR, and SVRCONN. It is supported only on Tandem NSK.
Chapter 2. The MQSeries commands
105
DEFINE CHANNEL
BATCHINT(integer) The minimum amount of time, in milliseconds, that a channel will keep a batch open. The batch is terminated by whichever of the following occurs first: v BATCHSZ messages have been sent, or v The transmission queue is empty and BATCHINT is exceeded The default value is zero, which means that the batch is terminated as soon as the transmission queue becomes empty (or the BATCHSZ limit is reached). The value must be greater than or equal to zero, and less than or equal to 999 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. It is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. BATCHSZ(integer) The maximum number of messages that can be sent through a channel before taking a checkpoint. The maximum batch size actually used is the lowest of the following: v The BATCHSZ of the sending channel v The BATCHSZ of the receiving channel v The maximum number of uncommitted messages allowed at the sending queue manager v The maximum number of uncommitted messages allowed at the receiving queue manager The maximum number of uncommitted messages is specified by the MAXUMSGS parameter of the ALTER QMGR command, or the DEFINE MAXSMSGS command on OS/390. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR. The value must be greater than zero, and less than or equal to 9999. CHLTYPE Channel type. This is required. It must follow immediately after the (channel-name) parameter on all platforms except OS/390.
SDR SVR RCVR RQSTR CLNTCONN SVRCONN CLUSSDR CLUSRCVR Sender channel Server channel Receiver channel Requester channel Client-connection channel Server-connection channel Cluster-sender channel (valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT) Cluster-receiver channel (valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT)
| |
| | | | |
Note: If you are using the REPLACE option, you cannot change the channel type.
106
DEFINE CHANNEL
CLUSTER(clustername) The name of the cluster to which the channel belongs. The maximum length is 48 characters conforming to the rules for naming MQSeries objects. This parameter is valid only for CLUSSDR and CLUSRCVR channels. Only one of the resultant values of CLUSTER or CLUSNL can be nonblank, the other must be blank. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CLUSNL(nlname) The name of the namelist that specifies a list of clusters to which the channel belongs. This parameter is valid only for CLUSSDR and CLUSRCVR channels. Only one of the resultant values of CLUSTER or CLUSNL can be nonblank, the other must be blank. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CONNAME(string) Connection name. For cluster-receiver channels it relates to the local queue manager, and for other channels it relates to the target queue manager. (The maximum length is 48 characters on OS/390, and 264 characters on other platforms.) The value you specify depends on the transport type (TRPTYPE) to be used: | | | | LU 6.2 | | | v On Digital OpenVMS this is the SNA gateway node name, access name, and thetpnamethat is used by SNA to invoke the remote program. The format of this information is as follows:
CONNAME('gateway_node.access_name(tpname)')
DECnet The DECnet node name and the DECnet object name, in the form:
CONNAME('node_name(object_name)')
v On OS/390 there are two forms in which to specify the value: Logical unit name The logical unit information for the queue manager, comprising the logical unit name, TP name, and optional mode name. This can be specified in one of 3 forms:
Form luname luname/TPname luname/TPname/modename Example IGY12355 IGY12345/APING IGY12345/APINGD/#INTER
For the first form, the TP name and mode name must be specified for the TPNAME and MODENAME attributes; otherwise these attributes must be blank.
107
DEFINE CHANNEL
Note: For client-connection channels, only the first form is allowed. Symbolic name The symbolic destination name for the logical unit information for the queue manager, as defined in the side information data set. The TPNAME and MODENAME attributes must be blank. Note: For cluster-receiver channels, the side information is on the other queue managers in the cluster. Alternatively, in this case it can be a name that a channel auto-definition exit can resolve into the appropriate logical unit information for the local queue manager. v On OS/2 Warp it is the fully-qualified name of the partner LU, or an LU alias. v On OS/400, Windows NT, and UNIX systems, this is the name of the CPI-C communications side object or, if the TPNAME is not blank, this is the fully-qualified name of the partner logical unit. See the information about configuration parameters for an LU 6.2 connection for your platform in the MQSeries Intercommunication manual for more information. v On Tandem NSK, the value of this depends on whether SNAX or ICE is used as the communications protocol: If SNAX is used: - For sender, requester, and fully qualified server channels, this is the process name of the SNAX/APC process, the name of the local LU, and the name of the partner LU on the remote machine, for example:
CONNAME('$PPPP.LOCALLU.REMOTELU')
- For receiver and non fully qualified server channels, this is the process name of the SNAX/APC process and the name of the local LU, for example:
CONNAME('$PPPP.LOCALLU')
The name of the local LU can be an asterisk (*), indicating any name. If ICE is used: - For sender, requester, and fully qualified server channels, this is the process name of the ICE process, the ICE open name, the name of the local LU, and the name of the partner LU on the remote machine, for example:
CONNAME('$PPPP.#OPEN.LOCALLU.REMOTELU')
For receiver and non fully qualified server channels, this is the process name of the SNAX/APC process, the ICE open name, and the name of the local LU, for example:
CONNAME('$PPPP.#OPEN.LOCALLU')
The name of the local LU can be an asterisk (*), indicating any name.
108
DEFINE CHANNEL
NetBIOS A unique NetBIOS name (limited to 16 characters). SPX The 4-byte network address, the 6-byte node address, and the 2-byte socket number. These values must be entered in hexadecimal, with a period separating the network and node addresses. The socket number must be enclosed in brackets, for example:
CONNAME('0a0b0c0d.804abcde23a1(5e86)')
If the socket number is omitted, the MQSeries default value (X'5e86') is assumed. TCP Either the host name, or the network address of the remote machine (or the local machine for cluster-receiver channels). This can be followed by an optional port number, enclosed in parentheses. Either the host name, or the network address of the remote MQSeries for Windows V2.0 machine. This can be followed by an optional port number, enclosed in parentheses.
| | |
UDP
This parameter is required for channels with a channel type (CHLTYPE) of SDR, RQSTR, CLNTCONN, CLUSSDR, and CLUSRCVR. It is optional for SVR channels, and is not valid for RCVR or SVRCONN channels. Note: If you are using any of the special characters in your connection name (for example, parentheses) you must enclose the string in single quotes. CONVERT Specifies whether the sending message channel agent should attempt conversion of the application message data, if the receiving message channel agent is unable to perform this conversion.
NO YES No conversion by sender Conversion by sender
This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. DESCR(string) Plain-text comment. It provides descriptive information about the channel when an operator issues the DISPLAY CHANNEL command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. DISCINT(integer) The minimum time in seconds for which the channel waits for a message to arrive on the transmission queue, after a batch ends, before terminating the channel. A value of zero causes the message channel agent to wait indefinitely.
109
DEFINE CHANNEL
The value must be greater than or equal to zero, and less than or equal to 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. HBINT(integer) This parameter has a different interpretation depending upon the channel type, as follows: v For a channel type of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR, this is the time, in seconds, between heartbeat flows passed from the sending MCA when there are no messages on the transmission queue. The heartbeat exchange gives the receiving MCA the opportunity to quiesce the channel. This type of heartbeat is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Note: You should set this value to be significantly less than the value of DISCINT. MQSeries checks only that it is within the permitted range however. v For a channel type of SVRCONN or CLNTCONN, this is the time, in seconds, between heartbeat flows passed from the server MCA when that MCA has issued an MQGET with WAIT on behalf of a client application. This allows the server to handle situations where the client connection fails during an MQGET with WAIT. This type of heartbeat is valid only for AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. The value must be in the range zero through 999 999. A value of zero means that no heartbeat exchange takes place. The value that is used is the larger of the values specified at the sending side and the receiving side. LIKE(channel-name) The name of a channel, whose attributes will be used to model this definition. If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from one of the following, depending upon the channel type:
SYSTEM.DEF.SENDER SYSTEM.DEF.SERVER SYSTEM.DEF.RECEIVER SYSTEM.DEF.REQUESTER SYSTEM.DEF.SVRCONN SYSTEM.DEF.CLNTCONN SYSTEM.DEF.CLUSSDR SYSTEM.DEF.CLUSRCVR Sender channel Server channel Receiver channel Requester channel Server-connection channel Client-connection channel Cluster-sender channel Cluster-receiver channel
for a sender channel, and similarly for other channel types. These default channel definitions can be altered by the installation to the default values required.
110
DEFINE CHANNEL
LONGRTY(integer) When a sender, server, or cluster-sender channel is attempting to connect to the remote queue manager, and the count specified by SHORTRTY has been exhausted, this specifies the maximum number of further attempts that are made to connect to the remote queue manager, at intervals specified by LONGTMR. If this count is also exhausted without success, an error is logged to the operator, and the channel is stopped. The channel must subsequently be restarted with a command (it is not started automatically by the channel initiator). The value must be greater than or equal to zero, and less than or equal to 999 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. LONGTMR(integer) For long retry attempts, this is the maximum number of seconds to wait before re-attempting connection to the remote queue manager. The time is approximate; zero means that another connection attempt is made as soon as possible. The interval between retries might be extended if the channel has to wait to become active. The value must be greater than or equal to zero, and less than or equal to 999 999 999. Note: For implementation reasons, the maximum retry interval that can be used is 999 999; values exceeding this will be treated as 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. MAXMSGL(integer) Specifies the maximum message length that can be transmitted on the channel. This is compared with the value for the partner and the actual maximum used is the lower of the two values. The value zero means the maximum message length for the queue manager. | | | | | | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, specify a value greater than or equal to zero, and less than or equal to the maximum message length for the queue manager as defined by the MAXMSGL parameter of the ALTER QMGR command. See ALTER QMGR on page 62 for more information. On other platforms, specify a value greater than or equal to zero, and less than or equal to 4 MB, or 4 194 304 bytes. MCANAME(string) Message channel agent name. This is reserved, and if specified must only be set to blanks (maximum length 20 characters). MCATYPE Specifies whether the message-channel-agent program should run as a thread or a process.
Chapter 2. The MQSeries commands
111
DEFINE CHANNEL
PROCESS THREAD The message channel agent runs as a separate process The message channel agent runs as a separate thread
| | | | |
In situations where a threaded listener is required to service a large number of incoming requests, resources can become strained. In this case, it is recommended that multiple listener processes are used and that incoming requests are targeted at specific listeners via the port number specified on the listener. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RQSTR, CLUSSDR, or CLUSRCVR. It is supported only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. On OS/390 it is supported only for channels with a channel type of CLUSRCVR. When specified in a CLUSRCVR definition, MCATYPE is used by a remote machine to determine the corresponding CLUSSDR definition. MCAUSER(string) Message channel agent user identifier. If string is nonblank, it is the user identifier which is to be used by the message channel agent for authorization to access MQSeries resources, including (if PUTAUT is DEF) authorization to put the message to the destination queue for receiver or requester channels. If it is blank, the message channel agent uses its default user identifier. This user identifier can be overridden by one supplied by a channel security exit. The maximum length of string is 64 characters on Windows NT and 12 characters on other platforms. On Windows NT, you can optionally qualify a user identifier with the domain name in the format user@domain. This parameter is not valid for channels with a channel type (CHLTYPE) of CLNTCONN. MODENAME(string) LU 6.2 mode name (maximum length 8 characters). This parameter is valid only for channels with a transport type (TRPTYPE) of LU 6.2. If TRPTYPE is not LU 6.2, the data is ignored and no error message is issued.
| | | | | |
| | | |
If specified, this should be set to the SNA mode name unless the CONNAME contains a side-object name, in which case it should be set to blanks. The actual name is then taken from the CPI-C Communications Side Object, or APPC side information data set. See the information about configuration parameters for an LU 6.2 connection for your platform in the MQSeries Intercommunication manual for more information. This parameter is not valid for channels with a channel type (CHLTYPE) of RCVR or SVRCONN. MRDATA(string) Channel message-retry exit user data (maximum length 32 characters). This is passed to the channel message-retry exit when it is called.
112
DEFINE CHANNEL
This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MREXIT(string) Channel message-retry exit name. The format and maximum length of the name is the same as for MSGEXIT. This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MRRTY(integer) The number of times the channel will retry before it decides it cannot deliver the message. This attribute controls the action of the MCA only if the message-retry exit name is blank. If the exit name is not blank, the value of MRRTY is passed to the exit for the exits use, but the number of retries performed (if any) is controlled by the exit, and not by this attribute. The value must be greater than or equal to zero, and less than or equal to 999 999 999. A value of zero means that no retries will be performed. This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MRTMR(integer) The minimum interval of time that must pass before the channel can retry the MQPUT operation. This time interval is in milliseconds. This attribute controls the action of the MCA only if the message-retry exit name is blank. If the exit name is not blank, the value of MRTMR is passed to the exit for the exits use, but the retry interval is controlled by the exit, and not by this attribute. The value must be greater than or equal to zero, and less than or equal to 999 999 999. A value of zero means that the retry will be performed as soon as possible (provided that the value of MRRTY is greater than zero). This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, or CLUSRCVR. It is not supported on OS/390. MSGDATA(string) User data for the channel message exit (maximum length 32 characters). This data is passed to the channel message exit when it is called. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify data for more than one exit program by specifying multiple strings separated by commas. The total length of the field must not exceed 999 characters. | | | On OS/400, you can specify up to 10 strings, each of length 32 characters. The first string of data is passed to the first message exit specified, the second string to the second exit, and so on. On other platforms you can specify only one string of message exit data for each channel. MSGEXIT(string) Channel message exit name. On Tandem NSK, there is only one channel user exit program. If the MSGEXIT, MREXIT, SCYEXIT, SENDEXIT, and RCVEXIT parameters are all left blank, the channel user exit is not invoked. If any of these
Chapter 2. The MQSeries commands
113
DEFINE CHANNEL
parameters is nonblank, the channel exit program is called. You can enter text string for these attributes. The maximum length of the string is 128 characters. This string is passed to the exit program, but it is not used to determine the program name. See the MQSeries for Tandem NonStop Kernel System Management Guide for more information about using channel exit programs on Tandem NSK. On other platforms, if this name is nonblank, the exit is called at the following times: v Immediately after a message has been retrieved from the transmission queue (sender or server), or immediately before a message is put to a destination queue (receiver or requester). The exit is given the entire application message and transmission queue header for modification. v At initialization and termination of the channel. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify the name of more than one exit program by specifying multiple strings separated by commas. However, the total number of characters specified must not exceed 999. | | On OS/400, you can specify the names of up to 10 exit programs by specifying multiple strings separated by commas. On other platforms you can specify only one message exit name for each channel. For channels with a channel type (CHLTYPE) of CLNTCONN or SVRCONN, this parameter is not relevant, because message exits are not invoked for such channels. The format and maximum length of the name depends on the environment: v On Digital OpenVMS and UNIX systems, it is of the form:
libraryname(functionname)
The maximum length of the string is 128 characters. v On OS/2 Warp, Windows, and Windows NT, it is of the form:
dllname(functionname)
| | | | |
where dllname is specified without the suffix (.DLL). The maximum length of the string is 128 characters. v On OS/400, it is of the form:
progname libname
where program name occupies the first 10 characters and libname the second 10 characters (both blank-padded to the right if necessary). The maximum length of the string is 20 characters. v On OS/390, it is a load module name, maximum length 8 characters (128 characters are allowed for exit names for client-connection channels). NETPRTY(integer) The priority for the network connection. Distributed queuing chooses the
114
DEFINE CHANNEL
path with the highest priority if there are multiple paths available. The value must be in the range 0 through 9; 0 is the lowest priority. This parameter is valid only for CLUSRCVR channels. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional. The default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. The definition should replace any existing definition of the same name. If a definition does not exist, one is created.
NORMAL
If the sending side and the receiving side do not agree about this attribute, or one does not support it, NORMAL is used. This parameter is valid only for channels with a CHLTYPE of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR. It is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. PASSWORD(string) Password (maximum length 12 characters). This is used by the message channel agent when attempting to initiate a secure LU 6.2 session with a remote message channel agent. | | | This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RQSTR, CLNTCONN, or CLUSSDR. It is supported only on OS/390 for client-connection channels. Although the maximum length of the attribute is 12 characters, only the first 10 characters are used. PUTAUT Specifies which user identifiers should be used to establish authority to put messages to the destination queue (for messages channels) or to execute an MQI call (for MQI channels).
DEF The default user ID is used. On OS/390 this might involve using both the user ID received from the network and that derived from MCAUSER. The user ID from the UserIdentifier field of the message descriptor is used. On OS/390 this might involve also using the user ID received from the network or that derived from MCAUSER, or both. The default user ID is used. Any user ID received from the network is not used. This value is supported only on OS/390.
CTX
ONLYMCA
115
DEFINE CHANNEL
ALTMCA The user ID from the UserIdentifier field of the message descriptor is used. Any user ID received from the network is not used. This value is supported only on OS/390.
This parameter is valid only for channels with a channel type (CHLTYPE) of RCVR, RQSTR, CLUSRCVR, or SVRCONN. CTX and ALTMCA are not valid for SVRCONN channels. QMNAME(string) Queue manager name. For channels with a channel type (CHLTYPE) of CLNTCONN, this is the name of the queue manager to which an application running in the MQI client environment can request connection. For channels of other types this parameter is not valid. RCVDATA(string) Channel receive exit user data (maximum length 32 characters). This is passed to the channel receive exit when it is called. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify data for more than one exit program by specifying multiple strings separated by commas. The total length of the field must not exceed 999 characters. | | | On OS/400, you can specify up to 10 strings, each of length 32 characters. The first string of data is passed to the first receive exit specified, the second string to the second exit, and so on. On other platforms you can specify only one string of receive exit data for each channel. RCVEXIT(string) Channel receive exit name. On platforms other than Tandem NSK, if this name is nonblank, the exit is called at the following times: v Immediately before the received network data is processed. The exit is given the complete transmission buffer as received. The contents of the buffer can be modified as required. v At initialization and termination of the channel. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify the name of more than one exit program by specifying multiple strings separated by commas. However, the total number of characters specified must not exceed 999. | | On OS/400, you can specify the names of up to 10 exit programs by specifying multiple strings separated by commas. On other platforms you can specify only one receive exit name for each channel. The format and maximum length of the name is the same as for MSGEXIT. SCYDATA(string) Channel security exit user data (maximum length 32 characters).
116
DEFINE CHANNEL
This is passed to the channel security exit when it is called. SCYEXIT(string) Channel security exit name. On platforms other than Tandem NSK, if this name is nonblank, the exit is called at the following times: v Immediately after establishing a channel. Before any messages are transferred, the exit is given the opportunity to instigate security flows to validate connection authorization. v Upon receipt of a response to a security message flow. Any security message flows received from the remote processor on the remote queue manager are given to the exit. v At initialization and termination of the channel. The format and maximum length of the name is the same as for MSGEXIT. SENDDATA(string) Channel send exit user data (maximum length 32 characters). This is passed to the channel send exit when it is called. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify data for more than one exit program by specifying multiple strings separated by commas. The total length of the field must not exceed 999 characters. | | | On OS/400, you can specify up to 10 strings, each of length 32 characters. The first string of data is passed to the first send exit specified, the second string to the second exit, and so on. On other platforms you can specify only one string of send exit data for each channel. SENDEXIT(string) Channel send exit name. On platforms other than Tandem NSK, if this name is nonblank, the exit is called at the following times: v Immediately before data is sent out on the network. The exit is given the complete transmission buffer before it is transmitted. The contents of the buffer can be modified as required. v At initialization and termination of the channel. On AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT, you can specify the name of more than one exit program by specifying multiple strings separated by commas. However, the total number of characters specified must not exceed 999. | | On OS/400, you can specify the names of up to 10 exit programs by specifying multiple strings separated by commas. On other platforms you can specify only one send exit name for each channel. The format and maximum length of the name is the same as for MSGEXIT. SEQWRAP(integer) When this value is reached, sequence numbers wrap to start again at 1.
Chapter 2. The MQSeries commands
117
DEFINE CHANNEL
This value is non-negotiable and must match in both the local and remote channel definitions. The value must be greater than or equal to 100, and less than or equal to 999 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RCVR, RQSTR, CLUSSDR, or CLUSRCVR. SHORTRTY(integer) The maximum number of attempts that are made by a sender, server, or cluster-sender channel to connect to the remote queue manager, at intervals specified by SHORTTMR, before the (normally longer) LONGRTY and LONGTMR are used. Retry attempts are made if the channel fails to connect initially (whether it is started automatically by the channel initiator or by an explicit command), and also if the connection fails after the channel has successfully connected. However, if the cause of the failure is such that retry is unlikely to be successful, retries are not attempted. The value must be greater than or equal to zero, and less than or equal to 999 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. SHORTTMR(integer) For short retry attempts, this is the maximum number of seconds to wait before re-attempting connection to the remote queue manager. The time is approximate; zero means that another connection attempt is made as soon as possible. The interval between retries might be extended if the channel has to wait to become active. The value must be greater than or equal to zero, and less than or equal to 999 999 999. Note: For implementation reasons, the maximum retry interval that can be used is 999 999; values exceeding this will be treated as 999 999. This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, CLUSSDR, or CLUSRCVR. TPNAME(string) LU 6.2 transaction program name (maximum length 64 characters). This parameter is valid only for channels with a transport type (TRPTYPE) of LU 6.2. On Tandem NSK, this should be set to the local TP name. This can be followed by the name of the TP on the remote machine, for example:
TPNAME('localtp[.remotetp]')
Both names can be up to 16 characters in length. The name can also be nonblank for client connection channels to be used with OS/2 Warp.
118
DEFINE CHANNEL
On other platforms, this should be set to the SNA transaction program name, unless the CONNAME contains a side-object name in which case it should be set to blanks. The actual name is taken instead from the CPI-C Communications Side Object, or the APPC side information data set. See the information about configuration parameters for an LU 6.2 connection for your platform in the MQSeries Intercommunication manual for more information. On Windows NT SNA Server, and in the side object on OS/390, the TPNAME is wrapped to upper case. This parameter is not valid for channels with a channel type (CHLTYPE) of RCVR. TRPTYPE Transport type to be used. | | | | | | On AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT, this parameter is optional because, if you do not enter a value, the value specified in the SYSTEM.DEF.channel-type definition is used. However, no check is made that the correct transport type has been specified if the channel is initiated from the other end. On OS/390, if the SYSTEM.DEF.channel-type definition does not exist, the default is LU62. This is required on all other platforms. |
DECNET LU62 NETBIOS DECnet (supported only on Digital OpenVMS) SNA LU 6.2 NetBIOS (supported only on OS/2 Warp, Windows, Windows NT, and DOS; it also applies to OS/390 for defining client-connection channels that will connect to servers on the platforms supporting NetBIOS) Sequenced packet exchange (supported only on OS/2 Warp, Windows, Windows NT, and DOS; it also applies to OS/390 for defining client-connection channels that will connect to servers on the platforms supporting SPX) Transmission Control Protocol - part of the TCP/IP protocol suite User Datagram Protocol - part of the TCP/IP protocol suite (supported only on AIX); this option is available only for connection to MQSeries for Windows V2.0, with CSD02
SPX
| | |
TCP UDP
USERID(string) Task user identifier (maximum length 12 characters). This is used by the message channel agent when attempting to initiate a secure LU 6.2 session with a remote message channel agent. | | | This parameter is valid only for channels with a channel type (CHLTYPE) of SDR, SVR, RQSTR, CLNTCONN, or CLUSSDR. On OS/390, it is supported only for CLNTCONN channels. Although the maximum length of the attribute is 12 characters, only the first 10 characters are used. XMITQ(string) Transmission queue name. The name of the queue from which messages are retrieved. See Rules for naming MQSeries objects on page 4.
119
DEFINE CHANNEL
This parameter is valid only for channels with a channel type (CHLTYPE) of SDR or SVR. For these channel types this parameter is required.
120
DEFINE MAXSMSGS
DEFINE MAXSMSGS
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DEFINE MAXSMSGS to define the maximum number of messages that a task can get or put within a single unit of recovery. Notes: 1. You can issue the DEFINE MAXSMSGS command at any time to change the number of messages allowed. 2. This command is valid only on OS/390. For other platforms use the MAXUMSGS parameter of the ALTER QMGR command instead. Synonym: DEF MAXSM DEFINE MAXSMSGS
DEFINE MAXSMSGS(integer)
121
DEFINE NAMELIST
DEFINE NAMELIST
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use DEFINE NAMELIST to define a list of names. This is most commonly a list of cluster names or queue names. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. Synonym: DEF NL DEFINE NAMELIST
DEFINE NAMELIST(name) define attrs namelist attrs
Define attrs:
NOREPLACE LIKE(namelist-name) REPLACE
Namelist attrs:
(1) DESCR( ) DESCR(string) NAMES( name , )
Notes: 1 This is the default supplied with MQSeries, but your installation might have changed it.
Define attributes
LIKE(namelist-name) The name of a namelist, whose attributes will be used to model this definition. If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from the default definition for namelists on this queue manager.
122
DEFINE NAMELIST
This is equivalent to specifying:
LIKE(SYSTEM.DEFAULT.NAMELIST)
A default namelist definition is provided, but it can be altered by the installation to the default values required. See Rules for naming MQSeries objects on page 4. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional. The default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. The definition should replace any existing definition of the same name. If a definition does not exist, one is created.
Namelist attributes
DESCR(string) Plain-text comment. It provides descriptive information about the namelist when an operator issues the DISPLAY NAMELIST command (see DISPLAY NAMELIST on page 193). It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. NAMES(name, ...) List of names. The names can be of any type, but must conform to the rules for naming MQSeries objects, with a maximum length of 48 characters. An empty list is valid: specify NAMES(). The maximum number of names in the list is 256.
123
DEFINE PROCESS
DEFINE PROCESS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DEFINE PROCESS to define a new MQSeries process definition, and set its attributes. Synonym: DEF PRO DEFINE PROCESS
DEFINE PROCESS(process-name) define attrs process attrs
Define attrs:
NOREPLACE LIKE(process-name) REPLACE
Process attrs:
(1) DESCR( ) DESCR(string) APPLTYPE (2) ( CICS DEF DOS IMS MVS NSK OS2 OS400 UNIX VMS WINDOWS WINDOWSNT integer ) APPLICID( ) APPLICID(string) (1) USERDATA( ) USERDATA(string) (1)
Notes: 1 2 This is the default supplied with MQSeries, but your installation might have changed it. The default depends on the platform, and can be changed by your installation.
124
DEFINE PROCESS
The name must not be the same as any other process definition currently defined on this queue manager (unless REPLACE is specified).
Define attributes
LIKE(process-name) The name of an object of the same type, whose attributes will be used to model this definition. If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from the default definition for this object. This is equivalent to specifying:
LIKE(SYSTEM.DEFAULT.PROCESS)
A default definition for each object type is provided, but these can be altered by the installation to the default values required. See Rules for naming MQSeries objects on page 4. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional. The default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. The definition should replace any existing definition of the same name. If a definition does not exist, one is created.
Process attributes
APPLICID(string) The name of the application to be started. This might typically be a fully-qualified file name of an executable object. The maximum length is 256 characters. For a CICS application this is a CICS transaction ID, and for an IMS application it is an IMS transaction ID. On OS/390, for distributed queuing using CICS it must be CKSG, and for distributed queuing without CICS, it must be CSQX START. APPLTYPE(string) The type of application to be started. Valid application types are:
CICS DEF Represents a CICS transaction. This causes the default application type for the platform at which the command is interpreted to be stored in the process definition. This default cannot be changed by the installation. If the platform supports clients, this is interpreted as the default application type of the server. Represents a DOS application. Represents an IMS transaction. Represents an OS/390 application (batch or TSO). Represents a Tandem NSK application. Represents an OS/2 Warp application. Represents an OS/400 application. Represents a UNIX application. Represents a Digital OpenVMS application. Represents a Windows application. Represents a Windows NT application.
DOS IMS MVS NSK OS2 OS400 UNIX VMS WINDOWS WINDOWSNT
125
DEFINE PROCESS
integer User-defined application type in the range 65 536 through 999 999 999.
Only application types (other than user-defined types) that are supported on the platform at which the command is executed should be used: v On Digital OpenVMS, VMS is supported v On OS/390, CICS (default), DOS, IMS, MVS, OS2, UNIX, WINDOWS, WINDOWSNT, and DEF are supported v On OS/400, OS400 (default), CICS, and DEF are supported v On OS/2 Warp, OS2 (default), DOS, WINDOWS, UNIX, CICS, and DEF are supported v On Tandem NSK, NSK is supported. v On UNIX systems, UNIX (default), OS2, DOS, WINDOWS, CICS, and DEF are supported v On Windows NT, WINDOWSNT (default), DOS, WINDOWS, OS2, UNIX, CICS, and DEF are supported DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY PROCESS command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. ENVRDATA(string) A character string that contains environment information pertaining to the application to be started. The maximum length is 128 characters. | | | | | | | | | | | The meaning of ENVRDATA is determined by the trigger-monitor application. The trigger monitor provided by MQSeries appends ENVRDATA to the parameter list passed to the started application. The parameter list consists of the MQTMC2 structure, followed by one blank, followed by ENVRDATA with trailing blanks removed. Notes: 1. On OS/390, ENVRDATA is not used by the trigger-monitor applications provided by MQSeries. 2. On UNIX systems, ENVRDATA can be set to the ampersand character to make the started application run in the background. USERDATA(string) A character string that contains user information pertaining to the application defined in the APPLICID that is to be started. The maximum length is 128 characters. The meaning of USERDATA is determined by the trigger-monitor application. The trigger monitor provided by MQSeries simply passes USERDATA to the started application as part of the parameter list. The parameter list consists of the MQTMC2 structure (containing USERDATA), followed by one blank, followed by ENVRDATA with trailing blanks removed.
| | | | | |
126
DEFINE PROCESS
For MQSeries message channel agents, the format of this field is a channel name of up to 20 characters. See the MQSeries Intercommunication manual for information about what these need as APPLICID. | | On Tandem NSK, a character string containing spaces must be enclosed in double quotation marks.
127
DEFINE PSID
DEFINE PSID
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DEFINE PSID to define a page set and associated buffer pool. Note: You can issue DEFINE PSID only from the CSQINP1 initialization data set. If more than one DEFINE PSID command is issued for the same page set, only the last one is actioned. Synonym: DEF PSID DEFINE PSID
BUFFPOOL(0) DEFINE PSID(psid-number) BUFFPOOL(integer)
128
DEFINE QALIAS
DEFINE QALIAS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DEFINE QALIAS to define a new alias queue, and set its attributes. Note: An alias queue provides a level of indirection to another queue. The queue to which the alias refers must be another local or remote queue, defined at this queue manager. It cannot be another alias queue. Synonym: DEF QA DEFINE QALIAS
DEFINE QALIAS(q-name) define attrs common q attrs alias q attrs
Define attrs:
NOREPLACE LIKE(qalias-name) REPLACE
Common q attrs:
(1) DEFPRTY(0) DEFPRTY(integer) DEFPSIST(NO) DEFPSIST(YES) (1) DESCR( ) DESCR(string) (1) PUT(ENABLED) PUT(DISABLED) (1)
Alias q attrs:
(1) CLUSNL(' ') (2) CLUSNL(nlname) CLUSTER(clustername) (2) CLUSTER(' ') (2) DEFBIND(NOTFIXED) (1) (2) DEFBIND(OPEN) (2) (1) (2) GET(ENABLED) GET(DISABLED) (1)
(3) TARGQ( )
(1)
TARGQ(string)
Notes: 1 2 3 This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT.
Chapter 2. The MQSeries commands
129
DEFINE QALIAS
Define attributes
LIKE(qalias-name) The name of an object of the same type, whose attributes will be used to model this definition. If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from the default definition for this object. This is equivalent to defining the following object:
LIKE(SYSTEM.DEFAULT.ALIAS.QUEUE)
A default definition for each object type is provided, but these can be altered by the installation to the default values required. See Rules for naming MQSeries objects on page 4. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional. The default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. If the object does exist, the effect is similar to issuing the ALTER command without the FORCE option and with all the other attributes specified. (The difference between the ALTER command without the FORCE option, and the DEFINE command with the REPLACE option, is that ALTER does not change unspecified attributes, but DEFINE with REPLACE sets all the attributes. When you use REPLACE, the attributes are taken either from the object named on the LIKE option, or from the default definition, and the attributes of the object being replaced, if one exists, are ignored.) The command fails if both of the following are true: v The command sets attributes that would require the use of the FORCE option if you were using the ALTER command v The object is open The ALTER command with the FORCE option succeeds in this situation.
| | |
If SCOPE(CELL) is specified on Digital OpenVMS, OS/2, UNIX systems, or Windows NT, and there is already a queue with the same name in the cell directory, the command fails, whether or not REPLACE is specified.
130
DEFINE QALIAS
DEFPSIST Specifies the message persistence to be used when applications specify the MQPER_PERSISTENCE_AS_Q_DEF option. NO Messages on this queue are lost across a restart of the queue manager. This is the default supplied with MQSeries, but your installation might have changed it. Messages on this queue survive a restart of the queue manager.
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Messages cannot be added to the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call.
131
DEFINE QALIAS
NOTFIXED The queue handle is not bound to any particular instance of the cluster queue. This allows the queue manager to select a specific queue instance when the message is put using MQPUT, and to change that selection subsequently should the need arise.
The MQPUT1 call always behaves as if NOTFIXED had been specified. | | GET This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Whether applications are permitted to get messages from this queue.
Messages can be retrieved from the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Applications cannot retrieve messages from the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call. SCOPE Specifies the scope of the queue definition.
QMGR The queue definition has queue-manager scope. This means that the definition of the queue does not extend beyond the queue manager that owns it. To open the queue for output from some other queue manager, either the name of the owning queue manager must be specified, or the other queue manager must have a local definition of the queue. The queue definition has cell scope. This means that the queue is known to all of the queue managers in the cell, and can be opened for output merely by specifying the name of the queue; the name of the queue manager that owns the queue need not be specified. If there is already a queue with the same name in the cell directory, the command fails. This value is valid only if a name service supporting a cell directory (for example, the supplied DCE name service) has been configured.
CELL
| |
This attribute is supported only on Digital OpenVMS, OS/2, Windows NT, and UNIX systems. TARGQ(string) The local name of the base queue being aliased. (See Rules for naming MQSeries objects on page 4.) The maximum length is 48 characters. This must be one of the following (although this is not checked until the alias queue is opened by an application): v A local queue (not a model queue) v A cluster queue v A local definition of a remote queue This queue need not be defined until an application process attempts to open the alias queue.
132
DEFINE QALIAS
Usage notes
1. DEFINE QALIAS(otherqname) TARGQ(aliasqueue) CLUSTER(c) has the effect of advertising queue aliasqueue by the name otherqname. 2. DEFINE QALIAS(otherqname) TARGQ(aliasqueue) has the effect of allowing a queue advertised by the name otherqname to be used on this queue manager by the name aliasqueue.
133
DEFINE QLOCAL
DEFINE QLOCAL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DEFINE QLOCAL to define a new local queue, and set its attributes. Synonym: DEF QL DEFINE QLOCAL
DEFINE QLOCAL(q-name) define attrs common q attrs local q attrs
Define attrs:
NOREPLACE LIKE(qlocal-name) REPLACE
Common q attrs:
(1) DEFPRTY(0) DEFPRTY(integer) DEFPSIST(NO) DEFPSIST(YES) (1) DESCR( ) DESCR(string) (1) PUT(ENABLED) PUT(DISABLED) (1)
Local q attrs:
(1) BOQNAME( ) BOQNAME(string) BOTHRESH(0) BOTHRESH(integer) CLUSNL(nlname) (1) CLUSNL(' ') (2) CLUSTER(clustername) (1) (2) CLUSTER(' ') (2) (1) (2)
(1) DEFBIND(OPEN)
(3) DISTL(NO)
(1)
(4) GET(ENABLED)
(1)
(4) DISTL(YES)
GET(DISABLED)
DEFBIND(NOTFIXED)
(1) INDXTYPE(NONE)
(1) MAXDEPTH(5000)
(1)
INITQ(string)
MAXDEPTH(integer)
INDXTYPE(
(1) SHARE
(1) PROCESS( )
(1)
NOSHARE
PROCESS(string)
134
DEFINE QLOCAL
(1) QDEPTHHI(80) QDEPTHHI(integer)
(1)
(1)
(1)
(5) TRIGDATA( )
(1) TRIGDPTH(1)
(1)
TRIGDATA(string)
TRIGDPTH(integer)
(1)
Notes: 1 2 3 4 5 6 7 8 This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. This is the default supplied with MQSeries (except on OS/390, where it is EXCL), but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Used only on OS/390. This is the default supplied with MQSeries (except on OS/390, where it is 999 999 999), but your installation might have changed it. This is the default supplied with MQSeries (except on OS/390, where it is NOSHARE), but your installation might have changed it. Valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT.
135
DEFINE QLOCAL
Define attributes
LIKE(qlocal-name) The name of an object of the same type, whose attributes will be used to model this definition. If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from the default definition for this object. This is equivalent to defining the following object:
LIKE(SYSTEM.DEFAULT.LOCAL.QUEUE)
A default definition for each object type is provided, but these might be altered by the installation to the default values required. See Rules for naming MQSeries objects on page 4. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional. The default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. If the object does exist, the effect is similar to issuing the ALTER command without the FORCE option and with all the other attributes specified. In particular, note that any messages that are on the existing queue are retained. (The difference between the ALTER command without the FORCE option, and the DEFINE command with the REPLACE option, is that ALTER does not change unspecified attributes, but DEFINE with REPLACE sets all the attributes. When you use REPLACE, unspecified attributes are taken either from the object named on the LIKE option, or from the default definition, and the attributes of the object being replaced, if one exists, are ignored.) The command fails if both of the following are true: v The command sets attributes that would require the use of the FORCE option if you were using the ALTER command v The object is open The ALTER command with the FORCE option succeeds in this situation.
| | | |
If SCOPE(CELL) is specified on Digital OpenVMS, UNIX systems, OS/2 Warp, or Windows NT, and there is already a queue with the same name in the cell directory, the command fails, whether or not REPLACE is specified.
136
DEFINE QLOCAL
NO Messages on this queue are lost across a restart of the queue manager. This is the default supplied with MQSeries, but your installation might have changed it. Messages on this queue survive a restart of the queue manager.
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Messages cannot be added to the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call.
137
DEFINE QLOCAL
This parameter cannot be set for transmission, SYSTEM.CHANNEL.xx, SYSTEM.CLUSTER.xx, or SYSTEM.COMMAND.xx queues. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. DEFBIND Specifies the binding to be used when the application specifies MQOO_BIND_AS_Q_DEF on the MQOPEN call, and the queue is a cluster queue.
OPEN NOTFIXED The queue handle is bound to a specific instance of the cluster queue when the queue is opened. The queue handle is not bound to any particular instance of the cluster queue. This allows the queue manager to select a specific queue instance when the message is put using MQPUT, and to change that selection subsequently should the need arise.
The MQPUT1 call always behaves as if NOTFIXED had been specified. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. DEFSOPT The default share option for applications opening this queue for input:
EXCL SHARED The open request is for exclusive input from the queue The open request is for shared input from the queue
DISTL Whether distribution lists are supported by the partner queue manager.
YES NO Distribution lists are supported by the partner queue manager. Distribution lists are not supported by the partner queue manager.
Note: You should not normally change this attribute, because it is set by the MCA. However you can set this attribute when defining a transmission queue if the distribution list capability of the destination queue manager is known. This keyword is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. GET Whether applications are to be permitted to get messages from this queue:
Messages can be retrieved from the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Applications cannot retrieve messages from the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call. INDXTYPE The type of index maintained by the queue manager to expedite MQGET operations on the queue:
138
DEFINE QLOCAL
NONE No index is maintained. Use this when messages are usually retrieved sequentially or use both the message identifier and the correlation identifier as a selection criterion on the MQGET call. An index of message identifiers is maintained. Use this when messages are usually retrieved using the message identifier as a selection criterion on the MQGET call with the correlation identifier set to NULL. An index of correlation identifiers is maintained. Use this when messages are usually retrieved using the correlation identifier as a selection criterion on the MQGET call with the message identifier set to NULL. An index of message tokens is maintained. Use this when the queue is a WLM managed queue that you are using with the Workload Manager functions of OS/390. Note: If the queue is a transmission queue you cannot set INDXTYPE to MSGTOKEN.
MSGID
CORRELID
MSGTOKEN
The INDXTYPE attribute can be changed to NONE, MSGID, or CORRELID at any time, and the change takes effect immediately if all the following conditions are satisfied: v No applications have the queue open v The queue is empty v There are no uncommitted MQPUT or MQGET operations outstanding against the queue If these conditions are not satisfied, the attribute is changed immediately, but the index is not rebuilt until the next time the queue manager is restarted. The reply sent by the queue manager indicates if this is the case. This attribute can be changed to MSGTOKEN only when there are no messages on the queue. If you attempt to change this attribute to MSGTOKEN while there are messages on the queue, the command fails. This attribute is supported only on OS/390. On other platforms, retrieval optimization might be provided, but it is not controlled by a queue attribute. INITQ(string) The local name of a local queue (known as the initiation queue) on this queue manager, to which trigger messages relating to this queue are written. See Rules for naming MQSeries objects on page 4. MAXDEPTH(integer) The maximum number of messages allowed on the queue. Specify a value greater than or equal to zero, and less than or equal to: v 999 999 999 if the queue is on OS/390 v 640 000 if the queue is on any other MQSeries platform Other factors can still cause the queue to be treated as full, for example, if there is no further DASD space available. If this value is reduced, any messages that are already on the queue that cause the new maximum to be exceeded remain intact. MAXMSGL(integer) The maximum length of messages on this queue. | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, specify a value greater than or equal to zero, and less than or equal to the
Chapter 2. The MQSeries commands
139
DEFINE QLOCAL
| | | | | maximum message length for the queue manager as defined by the MAXMSGL parameter of the ALTER QMGR command. See ALTER QMGR on page 62 for more information. On other platforms, specify a value greater than or equal to zero, and less than or equal to 4 MB, or 4 194 304 bytes. For a transmission queue, this value includes the space required for headers. It is recommended that the value should be at least 4000 bytes larger than the maximum expected length of user data in any message that could be put on a transmission queue. If this value is reduced, any messages that are already on the queue, whose length exceeds the new maximum, are not affected. Applications can use this attribute to determine the size of buffer they need to retrieve messages from the queue. Therefore, the value should only be reduced if it is known that this will not cause an application to operate incorrectly. MSGDLVSQ Message delivery sequence:
PRIORITY Messages are delivered (in response to MQGET API calls) in first-in-first-out (FIFO) order within priority. This is the default supplied with MQSeries, but your installation might have changed it. Messages are delivered (in response to MQGET API calls) in FIFO order. Priority is ignored for messages on this queue.
FIFO
If the message delivery sequence is changed from PRIORITY to FIFO while there are messages on the queue, the order of the messages already enqueued is not changed. Messages added to the queue subsequently take the default priority of the queue, and so might be processed before some of the existing messages. If the message delivery sequence is changed from FIFO to PRIORITY, the messages enqueued while the queue was set to FIFO take the default priority. | | NOHARDENBO and HARDENBO Whether hardening should be used to ensure that the count of the number of times that a message has been backed out is accurate.
NOHARDENBO HARDENBO The count is not hardened. This is the default supplied with MQSeries, but your installation might have changed it. The count is hardened.
NOSHARE and SHARE Whether multiple applications can get messages from this queue:
NOSHARE SHARE A single application instance only can get messages from the queue More than one application instance can get messages from the queue
NOTRIGGER and TRIGGER Whether trigger messages are written to the initiation queue (named by the INITQ attribute) to trigger the application (named by the PROCESS attribute):
140
DEFINE QLOCAL
NOTRIGGER Triggering is not active, and trigger messages are not written to the initiation queue. This is the default supplied with MQSeries, but your installation might have changed it. Triggering is active, and trigger messages are written to the initiation queue.
TRIGGER
This attribute can also be changed using the MQSET API call. PROCESS(string) The local name of the MQSeries process. This is the name of a process instance that identifies the application started by the queue manager when a trigger event occurs. See Rules for naming MQSeries objects on page 4. The process does not have to be defined when the local queue is defined, but it must be available for a trigger event to occur. If the queue is a transmission queue, the process gives the name of the channel to be started. This parameter is optional for transmission queues on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT; if you do not specify it, the channel name is taken from the value specified for the TRIGDATA parameter. QDEPTHHI(integer) The threshold against which the queue depth is compared to generate a Queue Depth High event. This event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold. See the QDPHIEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDEPTHLO(integer) The threshold against which the queue depth is compared to generate a Queue Depth Low event. This event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold. See the QDPLOEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDPHIEV Controls whether Queue Depth High events are generated. A Queue Depth High event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold (see the QDEPTHHI attribute). Note: The value of this attribute can change implicitly. See the description of the Queue Depth High event in the MQSeries Programmable System Management manual for more details.
ENABLED Queue Depth High events are generated
Chapter 2. The MQSeries commands
141
DEFINE QLOCAL
DISABLED Queue Depth High events are not generated
QDPLOEV Controls whether Queue Depth Low events are generated. A Queue Depth Low event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold (see the QDEPTHLO attribute). Note: The value of this attribute can change implicitly. See the description of the Queue Depth Low event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Depth Low events are generated Queue Depth Low events are not generated
QDPMAXEV Controls whether Queue Full events are generated. A Queue Full event indicates that a put to a queue has been rejected because the queue is full, that is, the queue depth has already reached its maximum value. Note: The value of this attribute can change implicitly. See the description of the Queue Full event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Full events are generated Queue Full events are not generated
QSVCIEV Controls whether Service Interval High or Service Interval OK events are generated. A Service Interval High event is generated when a check indicates that no messages have been retrieved from the queue for at least the time indicated by the QSVCINT attribute. A Service Interval OK event is generated when a check indicates that messages have been retrieved from the queue within the time indicated by the QSVCINT attribute. Note: The value of this attribute can change implicitly. See the description of the Service Interval High and Service Interval OK events in the MQSeries Programmable System Management manual for more details.
HIGH OK NONE Service Interval High events are generated Service Interval OK events are generated No service interval events are generated
QSVCINT(integer) The service interval used for comparison to generate Service Interval High and Service Interval OK events. See the QSVCIEV attribute. The value is in units of milliseconds, and must be greater than or equal to zero, and less than or equal to 999 999 999.
142
DEFINE QLOCAL
RETINTVL(integer) The number of hours (greater than or equal to zero, and less than or equal to 999 999 999) from the queue creation date and time (the date and time at which the queue was defined), after which the queue is no longer needed. The CRDATE and CRTIME can be displayed using the DISPLAY QUEUE command. This information is available for use by an operator or a housekeeping application to delete queues that are no longer required. Note: The queue manager does not delete queues based on this value, nor does it prevent queues from being deleted if their retention interval has not expired. It is the users responsibility to take any required action. SCOPE Specifies the scope of the queue definition.
QMGR The queue definition has queue-manager scope. This means that the definition of the queue does not extend beyond the queue manager that owns it. To open the queue for output from some other queue manager, either the name of the owning queue manager must be specified, or the other queue manager must have a local definition of the queue. The queue definition has cell scope. This means that the queue is known to all of the queue managers in the cell, and can be opened for output merely by specifying the name of the queue; the name of the queue manager that owns the queue need not be specified. If there is already a queue with the same name in the cell directory, the command fails. The REPLACE option has no effect on this. This value is valid only if a name service supporting a cell directory (for example, the supplied DCE name service) has been configured.
CELL
| |
This attribute is valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT. STGCLASS(string) The name of the storage class. This is an installation-defined name. This attribute is used only on OS/390. See the MQSeries for OS/390 System Management Guide for more details. The first character of the name must be uppercase AZ, and subsequent characters either uppercase AZ or numeric 09. Note: This attribute can be changed only if the queue is empty and closed. On platforms other than OS/390, this attribute is ignored. TRIGDATA(string) The data that is inserted in the trigger message. The maximum length of the string is 64 bytes. For a transmission queue on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, or Windows NT, you can use this parameter to specify the name of the channel to be started. This attribute can also be changed using the MQSET API call. TRIGDPTH(integer) The number of messages that have to be on the queue before a trigger
Chapter 2. The MQSeries commands
143
DEFINE QLOCAL
message is written, if TRIGTYPE is DEPTH. The value must be greater than zero, and less than or equal to 999 999 999. This attribute can also be changed using the MQSET API call. TRIGMPRI(integer) The message priority number that will trigger this queue. The value must be greater than or equal to zero, and less than or equal to the MAXPRTY queue manager attribute (see DISPLAY QMGR on page 206 for details). This attribute can also be changed using the MQSET API call. TRIGTYPE Whether and under what conditions a trigger message is written to the initiation queue (named by the INITQ attribute):
FIRST EVERY DEPTH Whenever the first message of priority equal to or greater than that specified by the TRIGMPRI attribute of the queue arrives on the queue. Every time a message arrives on the queue with priority equal to or greater than that specified by the TRIGMPRI attribute of the queue. When the number of messages with priority equal to or greater than that specified by TRIGMPRI is equal to the number indicated by the TRIGDPTH attribute. No trigger messages are written.
NONE
This attribute can also be changed using the MQSET API call. USAGE Queue usage:
NORMAL XMITQ The queue is not a transmission queue. The queue is a transmission queue, which is used to hold messages that are destined for a remote queue manager. When an application puts a message to a remote queue, the message is stored on the appropriate transmission queue until it has been successfully transmitted and stored at the remote queue manager. If you specify this option, do not specify values for CLUSTER and CLUSNL and do not specify INDXTYPE(MSGTOKEN).
144
DEFINE QMODEL
DEFINE QMODEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DEFINE QMODEL to define a new model queue, and set its attributes. Synonym: DEF QM DEFINE QMODEL
DEFINE QMODEL(q-name) define attrs common q attrs local q attrs model q attr
Define attrs:
NOREPLACE LIKE(qmodel-name) REPLACE
Common q attrs:
(1) DEFPRTY(0) DEFPRTY(integer) DEFPSIST(NO) DEFPSIST(YES) (1) DESCR( ) DESCR(string) (1) PUT(ENABLED) PUT(DISABLED) (1)
Local q attrs:
(1) BOQNAME( ) BOQNAME(string) BOTHRESH(0) BOTHRESH(integer) (1) DEFSOPT(EXCL) DEFSOPT(SHARED) DISTL(YES) (1) DISTL(NO) (2) (1) (2)
(1)
(1) MAXDEPTH(5000)
(4)
INITQ(string)
MAXDEPTH(integer)
(1)
(1) QDEPTHHI(80)
(1) QDEPTHLO(40)
(1)
PROCESS(string)
QDEPTHHI(integer)
QDEPTHLO(integer)
145
DEFINE QMODEL
(1) QDPHIEV(DISABLED) QDPHIEV(ENABLED) QDPLOEV(DISABLED) QDPLOEV(ENABLED) (1)
(1)
HIGH OK
(1)
(3) TRIGDATA( )
(1) TRIGDPTH(1)
(1)
TRIGDATA(string)
TRIGDPTH(integer)
(1)
Model q attr:
(1) DEFTYPE(TEMPDYN) DEFTYPE(PERMDYN)
Notes: 1 2 3 4 This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Used only on OS/390. This is the default supplied with MQSeries (except on OS/390, where it is 999 999 999), but your installation might have changed it.
Define attributes
LIKE(qmodel-name) The name of an object of the same type, whose attributes will be used to model this definition.
146
DEFINE QMODEL
If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from the default definition for this object. This is equivalent to specifying:
LIKE(SYSTEM.DEFAULT.MODEL.QUEUE)
A default definition for each object type is provided, but these can be altered by the installation to the default values required. See Rules for naming MQSeries objects on page 4. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional. The default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. The definition should replace any existing definition of the same name. If a definition does not exist, one is created.
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it.
ENABLED
147
DEFINE QMODEL
DISABLED Messages cannot be added to the queue.
This attribute can also be changed using the MQSET API call.
DISTL Whether distribution lists are supported by the partner queue manager.
YES NO Distribution lists are supported by the partner queue manager. Distribution lists are not supported by the partner queue manager.
Note: You should not normally change this attribute, because it is set by the MCA. However you can set this attribute when defining a transmission queue if the distribution list capability of the destination queue manager is known. This keyword is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. GET Whether applications are to be permitted to get messages from this queue:
Messages can be retrieved from the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Applications cannot retrieve messages from the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call. INDXTYPE The type of index maintained by the queue manager to expedite MQGET operations on the queue:
NONE No index is maintained. Use this when messages are usually retrieved sequentially or use both the message identifier and the correlation identifier as a selection criterion on the MQGET call. An index of message identifiers is maintained. Use this when messages are usually retrieved using the message identifier as a selection criterion on the MQGET call with the correlation identifier set to NULL.
MSGID
148
DEFINE QMODEL
CORRELID An index of correlation identifiers is maintained. Use this when messages are usually retrieved using the correlation identifier as a selection criterion on the MQGET call with the message identifier set to NULL. An index of message tokens is maintained. Use this when the queue is a WLM managed queue that you are using with the Workload Manager functions of OS/390. Note: If the queue is a transmission queue or a temporary-dynamic queue, you cannot set INDXTYPE to MSGTOKEN.
MSGTOKEN
The INDXTYPE attribute can be changed to NONE, MSGID, or CORRELID at any time, and the change takes effect immediately if all the following conditions are satisfied: v No applications have the queue open v The queue is empty v There are no uncommitted MQPUT or MQGET operations outstanding against the queue If these conditions are not satisfied, the attribute is changed immediately, but the index is not rebuilt until the next time the queue manager is restarted. The reply sent by the queue manager indicates if this is the case. This attribute can only be changed to MSGTOKEN when there are no messages on the queue. If you attempt to change this attribute to MSGTOKEN while there are messages on the queue, the command fails. This attribute is supported only on OS/390. On other platforms, retrieval optimization might be provided, but it is not controlled by a queue attribute. INITQ(string) The local name of a local queue (known as the initiation queue) on this queue manager, to which trigger messages relating to this queue are written. See Rules for naming MQSeries objects on page 4. MAXDEPTH(integer) The maximum number of messages allowed on the queue. Specify a value greater than or equal to zero, and less than or equal to: v 999 999 999 if the queue is on OS/390 v 640 000 if the queue is on any other MQSeries platform Other factors might still cause the queue to be treated as full, for example, if there is no further DASD space available. If this value is reduced, any messages that are already on the queue that cause the new maximum to be exceeded remain intact. MAXMSGL(integer) The maximum length of messages on this queue. | | | | | | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, specify a value greater than or equal to zero, and less than or equal to the maximum message length for the queue manager as defined by the MAXMSGL parameter of the ALTER QMGR command. See ALTER QMGR on page 62 for more information. On other platforms, specify a value greater than or equal to zero, and less than or equal to 4 MB, or 4 194 304 bytes.
Chapter 2. The MQSeries commands
149
DEFINE QMODEL
For a transmission queue, this value includes the space required for headers. It is recommended that the value should be at least 4000 bytes larger than the maximum expected length of user data in any message that could be put on a transmission queue. If this value is reduced, any messages that are already on the queue, whose length exceeds the new maximum, are not affected. Applications can use this attribute to determine the size of buffer they need to retrieve messages from the queue. Therefore, the value should only be reduced if it is known that this will not cause an application to operate incorrectly. MSGDLVSQ Message delivery sequence:
PRIORITY Messages are delivered (in response to MQGET API calls) in first-in-first-out (FIFO) order within priority. This is the default supplied with MQSeries, but your installation might have changed it. Messages are delivered (in response to MQGET API calls) in FIFO order. Priority is ignored for messages on this queue.
FIFO
If the message delivery sequence is changed from PRIORITY to FIFO while there are messages on the queue, the order of the messages already enqueued is not changed. Messages added to the queue subsequently take the default priority of the queue, and so might be processed before some of the existing messages. If the message delivery sequence is changed from FIFO to PRIORITY, the messages enqueued while the queue was set to FIFO take the default priority. | | NOHARDENBO and HARDENBO Whether hardening should be used to ensure that the count of the number of times that a message has been backed out is accurate.
NOHARDENBO HARDENBO The count is not hardened. This is the default supplied with MQSeries, but your installation might have changed it. The count is hardened.
NOSHARE and SHARE Whether multiple applications can get messages from this queue:
NOSHARE SHARE A single application instance only can get messages from the queue More than one application instance can get messages from the queue
NOTRIGGER and TRIGGER Whether trigger messages are written to the initiation queue (named by the INITQ attribute) to trigger the application (named by the PROCESS attribute):
NOTRIGGER Triggering is not active, and trigger messages are not written to the initiation queue. This is the default supplied with MQSeries, but your installation might have changed it. Triggering is active, and trigger messages are written to the initiation queue.
TRIGGER
150
DEFINE QMODEL
This attribute can also be changed using the MQSET API call. PROCESS(string) The local name of the MQSeries process. This is the name of a process instance that identifies the application started by the queue manager when a trigger event occurs. See Rules for naming MQSeries objects on page 4. The process does not have to be defined when the local queue is defined, but it must be available for a trigger event to occur. If the queue is a transmission queue, the process gives the name of the channel to be started. This parameter is optional for transmission queues on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT; if you do not specify it, the channel name is taken from the value specified for the TRIGDATA parameter. QDEPTHHI(integer) The threshold against which the queue depth is compared to generate a Queue Depth High event. This event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold. See the QDPHIEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDEPTHLO(integer) The threshold against which the queue depth is compared to generate a Queue Depth Low event. This event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold. See the QDPLOEV attribute. The value is expressed as a percentage of the maximum queue depth (MAXDEPTH attribute), and must be greater than or equal to zero, and less than or equal to 100. QDPHIEV Controls whether Queue Depth High events are generated. A Queue Depth High event indicates that an application has put a message on a queue, and this has caused the number of messages on the queue to become greater than or equal to the queue depth high threshold (see the QDEPTHHI attribute). Note: The value of this attribute can change implicitly. See the description of the Queue Depth High event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Depth High events are generated Queue Depth High events are not generated
151
DEFINE QMODEL
A Queue Depth Low event indicates that an application has retrieved a message from a queue, and this has caused the number of messages on the queue to become less than or equal to the queue depth low threshold (see the QDEPTHLO attribute). Note: The value of this attribute can change implicitly. See the description of the Queue Depth Low event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Depth Low events are generated Queue Depth Low events are not generated
QDPMAXEV Controls whether Queue Full events are generated. A Queue Full event indicates that a put to a queue has been rejected because the queue is full, that is, the queue depth has already reached its maximum value. Note: The value of this attribute can change implicitly. See the description of the Queue Full event in the MQSeries Programmable System Management manual for more details.
ENABLED DISABLED Queue Full events are generated Queue Full events are not generated
QSVCIEV Controls whether Service Interval High or Service Interval OK events are generated. A Service Interval High event is generated when a check indicates that no messages have been retrieved from the queue for at least the time indicated by the QSVCINT attribute. A Service Interval OK event is generated when a check indicates that messages have been retrieved from the queue within the time indicated by the QSVCINT attribute. Note: The value of this attribute can change implicitly. See the description of the Service Interval High and Service Interval OK events in the MQSeries Programmable System Management manual for more details.
HIGH OK NONE Service Interval High events are generated Service Interval OK events are generated No service interval events are generated
QSVCINT(integer) The service interval used for comparison to generate Service Interval High and Service Interval OK events. See the QSVCIEV attribute. The value is in units of milliseconds, and must be greater than or equal to zero, and less than or equal to 999 999 999. RETINTVL(integer) The number of hours (greater than or equal to zero, and less than or equal to 999 999 999) from the queue creation date and time (the date and time
152
DEFINE QMODEL
at which the queue was defined), after which the queue is no longer needed. The CRDATE and CRTIME can be displayed using the DISPLAY QUEUE command. This information is available for use by an operator or a housekeeping application to delete queues that are no longer required. Note: The queue manager does not delete queues based on this value, nor does it prevent queues from being deleted if their retention interval has not expired. It is the users responsibility to take any required action. STGCLASS(string) The name of the storage class. This is an installation-defined name. This attribute is used only on OS/390. See the MQSeries for OS/390 System Management Guide for more details. The first character of the name must be uppercase AZ, and subsequent characters either uppercase AZ or numeric 09. Note: This attribute can be changed only if the queue is empty and closed. On platforms other than OS/390, this attribute is ignored. TRIGDATA(string) The data that is inserted in the trigger message. The maximum length of the string is 64 bytes. For a transmission queue on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, or Windows NT, you can use this parameter to specify the name of the channel to be started. This attribute can also be changed using the MQSET API call. TRIGDPTH(integer) The number of messages that have to be on the queue before a trigger message is written, if TRIGTYPE is DEPTH. The value must be greater than zero, and less than or equal to 999 999 999. This attribute can also be changed using the MQSET API call. TRIGMPRI(integer) The message priority number that will trigger this queue. The value must be greater than or equal to zero, and less than or equal to the MAXPRTY queue manager attribute (see DISPLAY QMGR on page 206 for details). This attribute can also be changed using the MQSET API call. TRIGTYPE Whether and under what conditions a trigger message is written to the initiation queue (named by the INITQ attribute):
FIRST EVERY DEPTH Whenever the first message of priority equal to or greater than that specified by the TRIGMPRI attribute of the queue arrives on the queue. Every time a message arrives on the queue with priority equal to or greater than that specified by the TRIGMPRI attribute of the queue. When the number of messages with priority equal to or greater than that specified by TRIGMPRI is equal to the number indicated by the TRIGDPTH attribute. No trigger messages are written.
NONE
153
DEFINE QMODEL
This attribute can also be changed using the MQSET API call. USAGE Queue usage:
NORMAL XMITQ The queue is not a transmission queue. The queue is a transmission queue, which is used to hold messages that are destined for a remote queue manager. When an application puts a message to a remote queue, the message is stored on the appropriate transmission queue until it has been successfully transmitted and stored at the remote queue manager. If you specify this option, do not specify INDXTYPE(MSGTOKEN).
PERMDYN
154
DEFINE QREMOTE
DEFINE QREMOTE
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DEFINE QREMOTE to define a new local definition of a remote queue, a queue-manager alias, or a reply-to queue alias, and to set its attributes. Synonym: DEF QR DEFINE QREMOTE
DEFINE QREMOTE(q-name) define attrs common q attrs remote q attrs
Define attrs:
NOREPLACE LIKE(qremote-name) REPLACE
Common q attrs:
(1) DEFPRTY(0) DEFPRTY(integer) DEFPSIST(NO) DEFPSIST(YES) (1) DESCR( ) DESCR(string) (1) PUT(ENABLED) PUT(DISABLED) (1)
Remote q attrs:
(1) CLUSNL(' ') (2) CLUSNL(nlname) CLUSTER(clustername) (2) CLUSTER(' ') (2) DEFBIND(NOTFIXED) (1) (2) DEFBIND(OPEN) (2) (1) (2) RNAME( ) RNAME(string) (1)
(1)
XMITQ(string)
Notes: 1 2 3 This is the default supplied with MQSeries, but your installation might have changed it. Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT.
155
DEFINE QREMOTE
Define attributes
LIKE(qremote-name) The name of an object of the same type, whose attributes will be used to model this definition. If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from the default definition for this object. This is equivalent to defining the following object:
LIKE(SYSTEM.DEFAULT.REMOTE.QUEUE)
A default definition for each object type is provided, but these might be altered by the installation to the default values required. See Rules for naming MQSeries objects on page 4. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional. The default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. If the object does not exist already, one is created. If the object does exist, the effect is similar to issuing the ALTER command without the FORCE option and with all the other attributes specified. (The difference between the ALTER command without the FORCE option, and the DEFINE command with the REPLACE option, is that ALTER does not change unspecified attributes, but DEFINE with REPLACE sets all the attributes. When you use REPLACE, the attributes are taken either from the object named on the LIKE option, or from the default definition, and the attributes of the object being replaced, if one exists, are ignored.) The command fails if both of the following are true: v The command sets attributes that would require the use of the FORCE option if you were using the ALTER command v The object is open The ALTER command with the FORCE option succeeds in this situation.
| | | |
If SCOPE(CELL) is specified on Digital OpenVMS, OS/2 Warp, UNIX systems, or Windows NT, and there is already a queue with the same name in the cell directory, the command fails, whether or not REPLACE is specified.
156
DEFINE QREMOTE
YES
DESCR(string) Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY QUEUE command. It should contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes). Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager. PUT Whether messages can be put on the queue.
Messages can be added to the queue (by suitably authorized applications). This is the default supplied with MQSeries, but your installation might have changed it. Messages cannot be added to the queue.
ENABLED
DISABLED
This attribute can also be changed using the MQSET API call.
157
DEFINE QREMOTE
| | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. DEFBIND Specifies the binding to be used when the application specifies MQOO_BIND_AS_Q_DEF on the MQOPEN call, and the queue is a cluster queue.
OPEN NOTFIXED The queue handle is bound to a specific instance of the cluster queue when the queue is opened. The queue handle is not bound to any particular instance of the cluster queue. This allows the queue manager to select a specific queue instance when the message is put using MQPUT, and to change that selection subsequently should the need arise.
The MQPUT1 call always behaves as if NOTFIXED had been specified. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. RNAME(string) Name of remote queue. This is the local name of the queue as defined on the queue manager specified by RQMNAME. v If this definition is used for a local definition of a remote queue, RNAME must not be blank when the open occurs. v If this definition is used for a queue-manager alias definition, RNAME must be blank when the open occurs. v If this definition is used for a reply-to alias, this name is the name of the queue that is to be the reply-to queue. The name is not checked to ensure that it contains only those characters normally allowed for queue names (see Rules for naming MQSeries objects on page 4). RQMNAME(string) The name of the remote queue manager on which the queue RNAME is defined. v If an application opens the local definition of a remote queue, RQMNAME must not be blank or the name of the local queue manager. When the open occurs, if XMITQ is blank there must be a local queue of this name, which is to be used as the transmission queue. v If this definition is used for a queue-manager alias, RQMNAME is the name of the queue manager that is being aliased. It can be the name of the local queue manager. Otherwise, then if XMITQ is blank, when the open occurs there must be a local queue of this name, which is to be used as the transmission queue. v If this definition is used for a reply-to alias, this name is the name of the queue manager that is to be the reply-to queue manager. The name is not checked to ensure that it contains only those characters normally allowed for MQSeries object names (see Rules for naming MQSeries objects on page 4). SCOPE Specifies the scope of the queue definition.
158
DEFINE QREMOTE
QMGR The queue definition has queue-manager scope. This means that the definition of the queue does not extend beyond the queue manager which owns it. To open the queue for output from some other queue manager, either the name of the owning queue manager must be specified, or the other queue manager must have a local definition of the queue. The queue definition has cell scope. This means that the queue is known to all of the queue managers in the cell, and can be opened for output merely by specifying the name of the queue; the name of the queue manager that owns the queue need not be specified. If there is already a queue with the same name in the cell directory, the command fails. This value is valid only if a name service supporting a cell directory (for example, the supplied DCE name service) has been configured.
CELL
| |
This attribute is supported only on Digital OpenVMS, OS/2 Warp, UNIX systems, and Windows NT. XMITQ(string) The name of the transmission queue to be used for forwarding messages to the remote queue, for either a remote queue or for a queue-manager alias definition. If XMITQ is blank, a queue with the same name as RQMNAME is used instead as the transmission queue. This attribute is ignored if the definition is being used as a queue-manager alias and RQMNAME is the name of the local queue manager. It is also ignored if the definition is used as a reply-to queue alias definition.
Usage notes
1. DEFINE QREMOTE(rqueue) RNAME(otherq) RQMNAME(otherqm) CLUSTER(cl) has the effect of advertising this queue manager as a store and forward gateway to which messages for queue rqueue can be sent. It has no effect as a reply-to queue alias, except on the local queue manager. DEFINE QREMOTE(otherqm) RNAME() RQMNAME(anotherqm) XMITQ(xq) CLUSTER has the effect of advertising this queue manager as a store and forward gateway to which messages for anotherqm can be sent. 2. RQMNAME can itself be the name of a cluster queue manager within the cluster, thus (as with QALIAS definitions) you can map the advertised queue manager name to another name locally. 3. It is possible for the values of RQMNAME and QREMOTE to be the same if RQMNAME is itself a cluster queue manager. If this definition is also advertised using a CLUSTER attribute, care should be taken not to choose the local queue manager in the cluster workload exit because a cyclic definition will result. | | | | | 4. Remote queues do not have to be defined locally. The advantage of doing so is that applications can refer to the queue by a simple, locally-defined name, rather than by one that is qualified by the ID of the queue manager on which the queue resides. This means that applications do not need to be aware of the real location of the queue.
159
DEFINE QREMOTE
| | | | | | | | 5. A remote queue definition can also be used as a mechanism for holding a queue-manager alias definition, or a reply-to queue alias definition. The name of the definition in these cases is: v The queue-manager name being used as the alias for another queue-manager name (queue-manager alias), or v The queue name being used as the alias for the reply-to queue (reply-to queue alias).
160
DEFINE STGCLASS
DEFINE STGCLASS
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DEFINE STGCLASS to define a storage class to page set mapping. Synonym: DEF STC DEFINE STGCLASS
(1) DESCR( ) DEFINE STGCLASS(storage class) DESCR(string) LIKE(stgclass-name) REPLACE PSID(integer) NOREPLACE
(1)
XCFMNAME(mname)
Notes: 1 This is the default supplied with MQSeries, but your installation might have changed it.
161
DEFINE STGCLASS
If this field is not filled in, and you do not complete the attribute fields related to the command, the values are taken from the default definition for this object. This is equivalent to specifying:
LIKE(SYSTEMST)
This default storage class definition can be altered by your installation to the default values required. NOREPLACE and REPLACE Whether the existing definition is to be replaced with this one. This is optional, the default is NOREPLACE.
NOREPLACE REPLACE The definition should not replace any existing definition of the same name. The definition should replace any existing definition of the same name. If a definition does not exist, one is created. If you use the REPLACE option, all queues that use this storage class must be empty.
PSID(integer) The page set identifier that this storage class is to be associated with. If you do not specify this, the value is taken from the default storage class SYSTEMST. Note: No check is made that the page set has been defined; an error will be raised only when you try to put a message to a queue that specifies this storage class (MQRC_PAGESET_ERROR). The string consists of two numeric characters, in the range 00 through 99. See DEFINE PSID on page 128. XCFGNAME(group name) If you are using the IMS bridge, this is the name of the XCF group to which the IMS system belongs. (This is the group name specified in the IMS parameter list.) This is 1 through 8 characters. The first character is in the range A through Z; subsequent characters are A through Z or 0 through 9. XCFMNAME(member name) If you are using the IMS bridge, this is the XCF member name of the IMS system within the XCF group specified in XCFGNAME. (This is the member name specified in the IMS parameter list.) This is 1 through 16 characters. The first character is in the range A through Z; subsequent characters are A through Z or 0 through 9.
Usage notes
1. The resultant values of XCFGNAME and XCFMNAME must either both be blank or both be nonblank.
162
DELETE CHANNEL
DELETE CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DELETE CHANNEL to delete a channel definition. Notes for OS/390 users: 1. This is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. The command fails if the channel initiator has not been started, or the channel status is RUNNING, except for client-connection channels which can be deleted without the channel initiator running. 3. You can only delete cluster-sender channels that have been created manually. Synonym: DELETE CHL DELETE CHANNEL
CHLTABLE(QMGRTBL) DELETE CHANNEL(channel-name) CHLTABLE(CLNTTBL)
| | | | | |
CLNTTBL
163
DELETE NAMELIST
DELETE NAMELIST
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use DELETE NAMELIST to delete a namelist definition. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. Synonym: DELETE NL DELETE NAMELIST
DELETE NAMELIST(name)
164
DELETE PROCESS
DELETE PROCESS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DELETE PROCESS to delete a process definition. Synonym: DELETE PRO DELETE PROCESS
DELETE PROCESS(process-name)
165
DELETE QALIAS
DELETE QALIAS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DELETE QALIAS to delete an alias queue definition. Synonym: DELETE QA DELETE QALIAS
DELETE QALIAS(q-name)
166
DELETE QLOCAL
DELETE QLOCAL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DELETE QLOCAL to delete a local queue definition. You can specify that the queue must not be deleted if it contains messages, or that it can be deleted even if it contains messages. Synonym: DELETE QL DELETE QLOCAL
NOPURGE DELETE QLOCAL(q-name) PURGE
167
DELETE QMODEL
DELETE QMODEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DELETE QMODEL to delete a model queue definition. Synonym: DELETE QM DELETE QMODEL
DELETE QMODEL(q-name)
168
DELETE QREMOTE
DELETE QREMOTE
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DELETE QREMOTE to delete a local definition of a remote queue. It does not affect the definition of that queue on the remote system. Synonym: DELETE QR DELETE QREMOTE
DELETE QREMOTE(q-name)
169
DELETE STGCLASS
DELETE STGCLASS
Digital OpenVMS OS/390 U OS/400 OS/2 Tandem NSK UNIX systems Windows NT
Use DELETE STGCLASS to delete a storage class definition Synonym: DELETE STC DELETE STGCLASS
DELETE STGCLASS(name)
170
DISPLAY CHANNEL
DISPLAY CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DISPLAY CHANNEL to display a channel definition. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. You can only display cluster-sender channels if they were created manually. Synonym: DIS CHL DISPLAY CHANNEL
TYPE(ALL) DISPLAY CHANNEL(generic-channel-name) TYPE( SDR SVR RCVR RQSTR CLNTCONN SVRCONN (1) CLUSSDR (1) CLUSRCVR ) ALL requested attrs
Requested attrs:
171
DISPLAY CHANNEL
,
(1) ALTDATE (1) ALTTIME (2) AUTOSTART (1) BATCHINT BATCHSZ CHLTYPE (1) CLUSTER (1) CLUSNL CONNAME CONVERT DESCR DISCINT (1) HBINT LONGRTY LONGTMR MAXMSGL MCANAME (1) MCATYPE MCAUSER MODENAME (3) MRDATA (3) MREXIT (3) MRRTY (3) MRTMR MSGDATA MSGEXIT (1) NETPRTY (1) NPMSPEED PASSWORD PUTAUT QMNAME RCVDATA RCVEXIT SCYDATA SCYEXIT SENDDATA SENDEXIT SEQWRAP SHORTRTY SHORTTMR TPNAME TRPTYPE USERID XMITQ
Notes: 1 2 3 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on Tandem NSK. Not valid on OS/390.
172
DISPLAY CHANNEL
v One or more channel definitions that match the specified name (generic-channel-name) The name of the channel definition to be displayed (see Rules for naming MQSeries objects on page 4). A trailing asterisk (*) matches all channel definitions with the specified stem followed by zero or more characters. An asterisk (*) on its own specifies all channel definitions. The names must all be defined to the local queue manager. TYPE This is optional. It can be used to restrict the display to channels of one type. The value is one of the following:
ALL Channels of all types (excluding client-connection channels) are displayed (this is the default). On OS/390, client connection channels are also displayed. Sender channels only are displayed. Server channels only are displayed. Receiver channels only are displayed. Requester channels only are displayed. Client-connection channels only are displayed. Server-connection channels only are displayed. Cluster-sender channels only are displayed (valid on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT only). Cluster-receiver channels only are displayed (valid on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT only).
| | | | |
| | ALL
On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, CHLTYPE(type) can be used as a synonym for this parameter. Specify this to cause all attributes to be displayed. If this keyword is specified, any attributes that are also requested specifically have no effect; all attributes are still displayed. On AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT, this is the default if you do not specify a generic name and do not request any specific attributes. If no attributes are specified (and the ALL keyword is not specified or defaulted), the default is that the channel names only are displayed. On OS/390, the CHLTYPE is also displayed.
| | |
Requested attributes
Specify one or more attributes that define the data to be displayed. You can specify the attributes in any order, but do not specify the same attribute more than once. Some attributes are relevant only for channels of a particular type or types. Attributes that are not relevant for a particular type of channel cause no output, nor is an error raised. ALTDATE The date on which the definition was last altered, in the form yyyy-mm-dd. | ALTTIME The time at which the definition was last altered, in the form hh.mm.ss. AUTOSTART Whether an LU 6.2 responder process should be started for the channel.
173
DISPLAY CHANNEL
BATCHINT Minimum batch duration. BATCHSZ Batch size. CHLTYPE Channel type. | | | | | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT the channel type is always displayed if you specify a generic channel name and do not request any other attributes. On OS/390, the channel type is always displayed. On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, TYPE(type) can be used as a synonym for this parameter. CLUSTER The name of the cluster to which the channel belongs. CLUSNL The name of the namelist that specifies the list of clusters to which the channel belongs. CONNAME Connection name. CONVERT Whether sender should convert application message data. DESCR Description. DISCINT Disconnection interval. HBINT Heartbeat interval. LONGRTY Long retry count. LONGTMR Long retry timer. MAXMSGL Maximum message length for channel. MCANAME Message channel agent name. MCATYPE Whether message channel agent runs as a separate process or a separate thread. MCAUSER Message channel agent user identifier. MODENAME LU 6.2 mode name. MRDATA Channel message-retry exit user data. MREXIT Channel message-retry exit name.
174
DISPLAY CHANNEL
MRRTY Channel message-retry exit retry count. MRTMR Channel message-retry exit retry time. MSGDATA Channel message exit user data. MSGEXIT Channel message exit names. NETPRTY The priority for the network connection. NPMSPEED Nonpersistent message speed. PASSWORD Password for initiating LU 6.2 session (if nonblank, this is displayed as asterisks). PUTAUT Put authority. QMNAME Queue manager name. RCVDATA Channel receive exit user data. RCVEXIT Channel receive exit names. SCYDATA Channel security exit user data. SCYEXIT Channel security exit names. SENDDATA Channel send exit user data. SENDEXIT Channel send exit names. SEQWRAP Sequence number wrap value. SHORTRTY Short retry count. SHORTTMR Short retry timer. TPNAME LU 6.2 transaction program name. TRPTYPE Transport type. USERID User identifier for initiating LU 6.2 session. XMITQ Transmission queue name.
Chapter 2. The MQSeries commands
175
DISPLAY CHSTATUS
DISPLAY CHSTATUS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U UNIX systems U Tandem NSK U Windows NT U
Use DISPLAY CHSTATUS to display the status of one or more channels. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. 2. This command cannot be used for CLNTCONN channels. 3. On OS/390, the command fails if the channel initiator has not been started. Synonym: DIS CHS DISPLAY CHSTATUS
CURRENT DISPLAY CHSTATUS(generic-channel-name) SAVED ALL CONNAME(connection-name) XMITQ(q-name)
common status
current-only status
Common status:
Current-only status:
176
DISPLAY CHSTATUS
, BATCHES BATCHSZ BUFSRCVD BUFSSENT BYTSRCVD BYTSSENT CHSTADA CHSTATI (1) HBINT (2) JOBNAME LONGRTS LSTMSGDA LSTMSGTI (3) MAXMSGL (2) MCASTAT MSGS (1) NPMSPEED SHORTRTS STOPREQ
Notes: 1 2 3 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Ignored if specified on OS/390. Valid only on OS/390.
177
DISPLAY CHSTATUS
| | - On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, when the queue manager is ended For a sending channel: - Before requesting confirmation that a batch of messages has been received - When confirmation has been received For a receiving channel: - Just before confirming that a batch of messages has been received For a server connection channel: - No data is saved Therefore, a channel that has never been current cannot have any saved status. Note: Status is not saved until a persistent message is transmitted across a channel, or a nonpersistent message is transmitted with a NPMSPEED of NORMAL. Because status is saved at the end of each batch, a channel will not have any saved status until at least one batch has been transmitted. v Current data consists of the common status fields and current-only status fields as noted in the syntax diagram. The data fields are continually updated as messages are sent/received. This method of operation has the following consequences: v An inactive channel might not have any saved status if it has never been current or has not yet reached a point where saved status is reset. v The common data fields might have different values for saved and current status. v An current channel always has current status and might have saved status. Channels can be current or inactive: Current channels These are channels that have been started, or on which a client has connected, and that have not finished or disconnected normally. They might not yet have reached the point of transferring messages, or data, or even of establishing contact with the partner. Current channels have current status and might also have saved status. The term Active is used to describe the set of current channels which are not stopped. Inactive channels These are channels that either: v Have not been started v On which a client has not connected v Have finished v Have disconnected normally (Note that if a channel is stopped, it is not yet considered to have finished normally and is, therefore, still current.) Inactive channels have either saved status or no status at all. There can be more than one instance of a receiver, requester, cluster-sender, cluster-receiver, or server-connection channel current at the same time (the requester is acting as a receiver). This occurs if several senders, at different queue managers, each initiate a session with this receiver, using the same channel name. For channels of other types, there can only be one instance current at any time.
178
DISPLAY CHSTATUS
For all channel types, however, there can be more than one set of saved status information available for a given channel name. At most one of these sets relates to a current instance of the channel, the rest relate to previously-current instances. Multiple instances arise if different transmission queue names or connection names have been used in connection with the same channel. This can happen in the following cases: v At a sender or server: If the same channel has been connected to by different requesters (servers only) If the transmission queue name has been changed in the definition If the connection name has been changed in the definition v At a receiver or requester: If the same channel has been connected to by different senders or servers If the connection name has been changed in the definition (for requester channels initiating connection) The number of sets which are displayed for a given channel can be limited by using the XMITQ, CONNAME, and CURRENT keywords on the command. (generic-channel-name) The name of the channel definition for which status information is to be displayed. A trailing asterisk (*) matches all channel definitions with the specified stem followed by zero or more characters. An asterisk (*) on its own specifies all channel definitions. The channels must all be defined to the local queue manager. XMITQ(q-name) The name of the transmission queue for which status information is to be displayed, for the specified channel or channels. This keyword can be used to limit the number of sets of status information that is displayed. If it is not specified, the display is not limited in this way. CONNAME(connection-name) The connection name for which status information is to be displayed, for the specified channel or channels. This keyword can be used to limit the number of sets of status information that is displayed. If it is not specified, the display is not limited in this way. The value returned for CONNAME might not be the same as in the channel definition, and might differ between the current channel status and the saved channel status. (Using CONNAME for limiting the number of sets of status is therefore not recommended.) For example, if CONNAME is blank in the channel definition or (when using TCP) is in host name format, the channel status value will have the resolved network address; if the CONNAME includes the port number (again when using TCP), the current channel status value will include the port number, but the saved channel status value will not. This value could also be the queue manager name of the remote system. CURRENT This is the default, and indicates that current status information for current channels only is to be displayed.
179
DISPLAY CHSTATUS
Both common and current-only status information can be requested for current channels. SAVED Specify this to cause saved status information for both current and inactive channels to be displayed. Only common status information can be displayed. Current-only status information is not displayed for current channels if this keyword is specified. ALL Specify this to display all of the status information for each relevant instance. If SAVED is specified, this causes only common status information to be displayed, not current-only status information. If this keyword is specified, any keywords requesting specific status information that are also specified have no effect; all of the information is displayed. The following information is always returned, for each set of status information: v The channel name v The channel type v The transmission queue name (for sender and server channels) v The connection name v The type of status information returned (CURRENT or SAVED) v On OS/390, STATUS If no keywords requesting specific status information are specified (and the ALL keyword is not specified), no further information is returned. If status information is requested which is not relevant for the particular channel type, this is not an error.
Common status
The following information applies to all sets of channel status, whether or not the set is current. The information applies to all channel types except server-connection. CURLUWID The logical unit of work identifier associated with the current batch, for a sending or a receiving channel. For a sending channel, when the channel is in doubt it is the LUWID of the in-doubt batch. For a saved channel instance, this attribute has meaningful information only if the channel instance is in doubt. However, the attribute value is still returned when requested, even if the channel instance is not in doubt. It is updated with the LUWID of the next batch when this is known. CURMSGS For a sending channel, this is the number of messages that have been sent in the current batch. It is incremented as each message is sent, and when the channel becomes in doubt it is the number of messages that are in doubt. For a saved channel instance, this attribute has meaningful information only if the channel instance is in doubt. However, the attribute value is still returned when requested, even if the channel instance is not in doubt.
180
DISPLAY CHSTATUS
For a receiving channel, it is the number of messages that have been received in the current batch. It is incremented as each message is received. The value is reset to zero, for both sending and receiving channels, when the batch is committed. CURSEQNO For a sending channel, this is the message sequence number of the last message sent. It is updated as each message is sent, and when the channel becomes in doubt it is the message sequence number of the last message in the in-doubt batch. For a saved channel instance, this attribute has meaningful information only if the channel instance is in doubt. However, the attribute value is still returned when requested, even if the channel instance is not in doubt. For a receiving channel, it is the message sequence number of the last message that was received. It is updated as each message is received. INDOUBT Whether the channel is currently in doubt. This is only YES while the sending Message Channel Agent is waiting for an acknowledgment that a batch of messages, which it has sent, has been successfully received. It is NO at all other times, including the period during which messages are being sent, but before an acknowledgment has been requested. For a receiving channel, the value is always NO. LSTLUWID The logical unit of work identifier associated with the last committed batch of messages transferred. LSTSEQNO Message sequence number of the last message in the last committed batch. This number is not incremented by nonpersistent messages using channels with a NPMSPEED of FAST. STATUS Current status of the channel. This is one of the following:
STARTING A request has been made to start the channel but the channel has not yet begun processing. A channel is in this state if it is waiting to become active. Channel is performing channel negotiation and is not yet ready to transfer messages. The channel initiator is attempting to start a channel. This is valid only on AIX, Digital OpenVMS, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. On OS/390, this is displayed as INITIALIZI. The channel is either transferring messages at this moment, or is waiting for messages to arrive on the transmission queue so that they can be transferred. Channel is stopping or a close request has been received. A previous attempt to establish a connection has failed. The MCA will re-attempt connection after the specified time interval. The channel is waiting for the message-retry interval to complete before retrying an MQPUT operation. This is not valid on OS/390.
BINDING
| | |
INITIALIZING
RUNNING
181
DISPLAY CHSTATUS
STOPPED This state can be caused by one of the following: v Channel manually stopped A user has entered a stop channel command against this channel. v Retry limit reached The MCA has reached the limit of retry attempts at establishing a connection. No further attempt will be made to establish a connection automatically. A channel in this state can be restarted only by issuing the START CHANNEL command, or starting the MCA program in an operating-system dependent manner. A local requester channel is requesting services from a remote MCA.
REQUESTING
Note: For an inactive channel, CURMSGS, CURSEQNO, and CURLUWID have meaningful information only if the channel is INDOUBT. However they are still displayed and returned if requested.
Current-only status
The following information applies only to current channel instances. The information applies to all channel types, except where stated. BATCHES Number of completed batches during this session (since the channel was started). | | BATCHSZ The batch size being used for this session (valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT). This parameter does not apply to server-connection channels, and no values are returned; if specified on the command, this is ignored. BUFSRCVD Number of transmission buffers received. This includes transmissions to receive control information only. BUFSSENT Number of transmission buffers sent. This includes transmissions to send control information only. BYTSRCVD Number of bytes received during this session (since the channel was started). This includes control information received by the message channel agent. BYTSSENT Number of bytes sent during this session (since the channel was started). This includes control information sent by the message channel agent. CHSTADA Date when this channel was started (in the form yyyy-mm-dd). CHSTATI Time when this channel was started (in the form hh.mm.ss). JOBNAME Name of job currently serving the channel. | v On Digital OpenVMS, this is the process identifier, displayed in hex.
182
DISPLAY CHSTATUS
| | | | v On OS/2 Warp, OS/400, UNIX systems, and Windows NT, this is the concatenation of the process identifier and the thread identifier of the MCA program, displayed in hex. v On Tandem NSK, this is the CPU ID and PID, displayed in hex. This information is not available on OS/390. The keyword is ignored if specified. HBINT The heartbeat interval being used for this session. LONGRTS Number of long retry wait start attempts left. This applies only to sender or server channels. LSTMSGDA Date when the last message was sent or MQI call was handled, see LSTMSGTI. LSTMSGTI Time when the last message was sent or MQI call was handled. For a sender or server, this is the time the last message (the last part of it if it was split) was sent. For a requester or receiver, it is the time the last message was put to its target queue. For a server-connection channel, it is the time when the last MQI call completed. MAXMSGL The maximum message length being used for this session (valid only on OS/390). MCASTAT Whether the Message Channel Agent is currently running. This is either running or not running. Note that it is possible for a channel to be in stopped state, but for the program still to be running. This information is not available on OS/390. The keyword is ignored if specified. MSGS Number of messages sent or received (or, for server-connection channels, the number of MQI calls handled) during this session (since the channel was started). NPMSPEED The nonpersistent message handling technique being used for this session. SHORTRTS Number of short retry wait start attempts left. This applies only to sender or server channels. STOPREQ Whether a user stop request is outstanding. This is either YES or NO.
183
DISPLAY CLUSQMGR
DISPLAY CLUSQMGR
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use DISPLAY CLUSQMGR to display a cluster information about queue managers in a cluster. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. 2. On OS/390, the command fails if the channel initiator has not been started. Synonym: DIS CLUSQMGR DISPLAY CLUSQMGR
DISPLAY CLUSQMGR(generic-qmname) ALL CHANNEL (generic name) CLUSTER (generic name)
requested attrs
channel attrs
Requested attrs:
,
Channel attrs:
184
DISPLAY CLUSQMGR
,
ALTDATE ALTTIME BATCHINT BATCHSZ CONNAME CONVERT DESCR DISCINT HBINT LONGRTY LONGTMR MAXMSGL MCANAME MCATYPE MCAUSER MODENAME (1) MRDATA (1) MREXIT (1) MRRTY (1) MRTMR MSGDATA MSGEXIT NETPRTY NPMSPEED (1) PASSWORD PUTAUT RCVDATA RCVEXIT SCYDATA SCYEXIT SENDDATA SENDEXIT SEQWRAP SHORTRTY SHORTTMR TPNAME TRPTYPE (1) USERID
CHANNEL(generic-name) This is optional, and limits the information displayed to cluster queue managers with the specified channel name. The value can be a generic name.
185
DISPLAY CLUSQMGR
CLUSTER(generic-name) This is optional, and limits the information displayed to cluster queue managers with the specified cluster name. The value can be a generic name.
Requested attributes
Specify one or more attributes that define the data to be displayed. The attributes can be specified in any order, but do not specify the same attribute more than once. Some attributes are relevant only for channels of a particular type or types. Attributes that are not relevant for a particular type of channel cause no output, and do not cause an error. CLUSDATE The date on which the definition became available to the local queue manager, in the form yyyy-mm-dd. CLUSTIME The time at which the definition became available to the local queue manager, in the form hh.mm.ss. DEFTYPE How the cluster queue manager was defined:
CLUSSDR CLUSSDRA CLUSSDRB CLUSRCVR As As As As a a a a cluster-sender channel from an explicit definition. cluster-sender channel by auto-definition alone. cluster-sender channel by auto-definition and an explicit definition. cluster-receiver channel from an explicit definition.
QMID The internally generated unique name of the queue manager. STATUS The current status of the channel for this queue manager. This is one of the following:
STARTING A request has been made to start the channel but the channel has not yet begun processing. A channel is in this state if it is waiting to become active. The channel is performing channel negotiation and is not yet ready to transfer messages. The channel is not active. The channel initiator is attempting to start a channel. On OS/390, this is displayed as INITIALIZI. The channel is either transferring messages at this moment, or is waiting for messages to arrive on the transmission queue so that they can be transferred. The channel is stopping, or a close request has been received. A previous attempt to establish a connection has failed. The MCA will re-attempt connection after the specified time interval. The channel is waiting for the message-retry interval to complete before retrying an MQPUT operation.
186
DISPLAY CLUSQMGR
STOPPED This state can be caused by one of the following: v Channel manually stopped. A user has entered a stop channel command against this channel. v Retry limit reached. The MCA has reached the limit of retry attempts at establishing a connection. No further attempt is made to establish a connection automatically. A channel in this state can be restarted only by issuing the START CHANNEL command, or starting the MCA program in an operating-system dependent manner. A local requester channel is requesting services from a remote MCA.
REQUESTING
SUSPEND Whether this queue manager is suspended from the cluster or not (as a result of the SUSPEND QMGR command). This is either YES or NO.
Channel attributes
ALTDATE The date on which the definition or information was last altered, in the form yyyy-mm-dd ALTTIME The time at which the definition or information was last altered, in the form hh.mm.ss BATCHINT Minimum batch duration BATCHSZ Batch size CONNAME Connection name CONVERT Whether the sender should convert application message data DESCR Description DISCINT Disconnection interval HBINT Heartbeat interval LONGRTY Long retry count LONGTMR Long retry timer MAXMSGL Maximum message length for channel MCANAME Message channel agent name MCATYPE Whether the message channel agent runs as a separate process or a separate thread
Chapter 2. The MQSeries commands
187
DISPLAY CLUSQMGR
MCAUSER Message channel agent user identifier MODENAME LU 6.2 mode name MRDATA Channel message-retry exit user data MREXIT Channel message-retry exit name MRRTY Channel message-retry exit retry count MRTMR Channel message-retry exit retry time MSGDATA Channel message exit user data MSGEXIT Channel message exit names NETPRTY The priority for the network connection NPMSPEED Nonpersistent message speed PASSWORD Password for initiating LU 6.2 session (if nonblank, this is displayed as asterisks) PUTAUT Put authority RCVDATA Channel receive exit user data RCVEXIT Channel receive exit names SCYDATA Channel security exit user data SCYEXIT Channel security exit name SENDDATA Channel send exit user data SENDEXIT Channel send exit names SEQWRAP Sequence number wrap value SHORTRTY Short retry count SHORTTMR Short retry timer TRPTYPE Transport type
188
DISPLAY CLUSQMGR
TPNAME LU 6.2 transaction program name USERID User identifier for initiating LU 6.2 session
189
DISPLAY CMDSERV
DISPLAY CMDSERV
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY CMDSERV to display the status of the command server. Synonym: DIS CS DISPLAY CMDSERV
DISPLAY CMDSERV
Usage notes
1. The command server takes messages from the system command input queue and processes them. DISPLAY CMDSERV displays the status of the command server. 2. The response to this command is a message showing the current status of the command server, which is one of the following:
ENABLED DISABLED STARTING STOPPING STOPPED RUNNING WAITING Available to process messages Not available to process messages START CMDSERV in progress STOP CMDSERV in progress STOP CMDSERV completed Processing a message Waiting for a message
190
DISPLAY DQM
DISPLAY DQM
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY DQM to display information about the channel initiator. Note: This is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. Synonym: DIS DQM DISPLAY DQM
DISPLAY DQM
Usage notes
1. The response to this command is a series of messages showing the current status of the channel initiator. This includes the following: v v v v v Whether the channel initiator is running or not Whether the TCP listener is started or not, and what port it is using Whether the LU 6.2 listener is started or not, and what LU name it is using How many dispatchers are started, and how many were requested How many adapter subtasks are started, and how many were requested
v The TCP system name v How many channel connections are current, and whether they are active, stopped, or retrying v The maximum number of current connections
191
DISPLAY MAXSMSGS
DISPLAY MAXSMSGS
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY MAXSMSGS to see the maximum number of messages that a task can get or put within a single unit of recovery. Notes: 1. This command is valid only on OS/390. For other platforms, use the MAXUMSGS keyword of the DISPLAY QMGR command instead. 2. You can issue the DISPLAY MAXSMSGS command at any time to see the number of messages allowed. Synonym: DIS MAXSM DISPLAY MAXSMSGS
DISPLAY MAXSMSGS
192
DISPLAY NAMELIST
DISPLAY NAMELIST
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use DISPLAY NAMELIST to display the names in a namelist. Note: On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. Synonym: DIS NL DISPLAY NAMELIST
DISPLAY NAMELIST(generic-namelist-name) ALL requested attrs
Requested attrs:
Requested attributes
You can request the following information for each namelist definition: ALTDATE The date on which the definition was last altered, in the form yyyy-mm-dd
193
DISPLAY NAMELIST
ALTTIME The time at which the definition was last altered, in the form hh.mm.ss DESCR Description NAMCOUNT Number of names in the list NAMES List of names See DEFINE NAMELIST on page 122 for more information about the DESCR and NAMES attributes.
194
DISPLAY PROCESS
DISPLAY PROCESS
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DISPLAY PROCESS to display the attributes of one or more MQSeries processes. Synonym: DIS PRO DISPLAY PROCESS
DISPLAY PROCESS (generic-process-name) ALL requested attrs
Requested attrs:
Notes: 1 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT.
| | |
195
DISPLAY PROCESS
On other platforms, if no attributes are specified (and the ALL keyword is not specified), the default is that the process names are returned.
Requested attributes
You can request the following information for the process name: ALTDATE The date on which the definition was last altered, in the form yyyy-mm-dd ALTTIME The time at which the definition was last altered, in the form hh.mm.ss APPLICID Application identifier APPLTYPE Application type DESCR Description ENVRDATA Environment data USERDATA User data See DEFINE PROCESS on page 124 for more information about individual attributes.
196
DISPLAY QUEUE
DISPLAY QUEUE
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DISPLAY QUEUE to display the attributes of one or more queues of any type. Notes: 1. On AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT, you can use the following commands (or their synonyms) as an alternative way to display these attributes. v DISPLAY QALIAS v DISPLAY QCLUSTER v DISPLAY QLOCAL v DISPLAY QMODEL v DISPLAY QREMOTE These commands produce the same output as the DISPLAY QUEUE TYPE(queue-type) command. If you enter the commands this way, do not use the TYPE keyword because this causes an error. 2. On OS/390, the channel initiator must be running before you can display information about cluster queues (using TYPE(QCLUSTER) or the CLUSINFO keyword). Synonym: DIS Q DISPLAY QUEUE
DISPLAY QUEUE(generic-q-name) ALL CLUSINFO (generic-name) (1) CLUSTER (1)
TYPE(queue-type)
requested attrs
Requested attrs:
197
DISPLAY QUEUE
, (1) ALTDATE (1) ALTTIME BOQNAME BOTHRESH (1) CLUSDATE (1) CLUSQMGR (1) CLUSQT (1) CLUSTIME CRDATE CRTIME CURDEPTH (1) DEFBIND DEFPRTY DEFPSIST DEFSOPT DEFTYPE DESCR (3) DISTL GET HARDENBO (2) INDXTYPE INITQ IPPROCS MAXDEPTH MAXMSGL MSGDLVSQ OPPROCS PROCESS PUT QDEPTHHI QDEPTHLO QDPHIEV QDPLOEV QDPMAXEV (1) QMID QSVCIEV QSVCINT QTYPE RETINTVL RNAME RQMNAME (4) SCOPE SHARE TARGQ TRIGDATA TRIGDPTH TRIGGER TRIGMPRI TRIGTYPE USAGE XMITQ
Notes: 1 2 3 4 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Not valid on OS/390 or OS/400.
198
DISPLAY QUEUE
| | |
199
DISPLAY QUEUE
| | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. STGCLASS(generic-name) This is optional, and limits the information displayed to queues with the storage class specified if entered with a value in brackets. The value can be a generic name. If you do not enter a value to qualify this parameter, it is treated as a requested attribute, and storage class information is returned about all the queues displayed. This keyword is valid only on OS/390. TYPE(queue-type) This is optional, and specifies the type of queues you want to be displayed. The default is to display all queue types; this includes cluster queues if CLUSINFO is also specified. | | | | | You can specify any of the queue types allowed for a DEFINE command (QLOCAL, QALIAS, QREMOTE, or their synonyms). A queue type of QCLUSTER can be specified to display only cluster queue information on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, QTYPE(type) can be used as a synonym for this parameter. If no attributes are specified (and the ALL keyword is not specified or defaulted), the queue name and queue type are displayed.
Requested attributes
Specify one or more attributes that define the data to be displayed. The attributes can be specified in any order, but do not specify the same attribute more than once. Most attributes are relevant only for queues of a particular type or types. Attributes that are not relevant for a particular type of queue cause no output, nor is an error raised. Table 3 shows the attributes that are relevant for each type of queue. There is a brief description of each attribute after the table, but for more information, see the DEFINE command for each queue type.
Table 3. Attributes that can be returned by the DISPLAY QUEUE command
Local queue Model queue U U U U U U U U U U U U U U U Alias queue U U Remote queue U U Cluster queue U U
| |
U U U U
| | | | | |
200
DISPLAY QUEUE
Table 3. Attributes that can be returned by the DISPLAY QUEUE command (continued)
Local queue CRDATE CRTIME CURDEPTH U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U Model queue U U Alias queue Remote queue Cluster queue
DEFBIND DEFPRTY DEFPSIST DEFSOPT DEFTYPE DESCR DISTL GET HARDENBO INDXTYPE INITQ IPPROCS MAXDEPTH MAXMSGL MSGDLVSQ OPPROCS PROCESS PUT QDEPTHHI QDEPTHLO QDPHIEV QDPLOEV QDPMAXEV QMID QSVCIEV QSVCINT QTYPE RETINTVL RNAME RQMNAME
201
DISPLAY QUEUE
Table 3. Attributes that can be returned by the DISPLAY QUEUE command (continued)
Local queue TRIGGER TRIGMPRI TRIGTYPE USAGE XMITQ U U U U Model queue U U U U U Alias queue Remote queue Cluster queue
| | |
Notes: 1. Supported only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT 2. Supported only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT 3. Supported only on OS/390 4. Not supported on OS/390 or OS/400
ALTDATE The date on which the definition or information was last altered, in the form yyyy-mm-dd. ALTTIME The time at which the definition or information was last altered, in the form hh.mm.ss. BOQNAME Backout requeue name. BOTHRESH Backout threshold. CLUSDATE The date on which the definition became available to the local queue manager, in the form yyyy-mm-dd. CLUSNL The namelist that defies the cluster that the queue is in. CLUSQMGR The name of the queue manager that hosts the queue. CLUSQT Cluster queue type. This can be:
QALIAS QLOCAL QMGR QREMOTE The The The The cluster cluster cluster cluster queue queue queue queue represents represents represents represents an alias queue. a local queue. a queue manager alias. a remote queue.
CLUSTER The name of the cluster that the queue is in. CLUSTIME The time at which the definition became available to the local queue manager, in the form hh.mm.ss. CRDATE The date on which the queue was defined (in the form yyyy-mm-dd). CRTIME The time at which the queue was defined (in the form hh.mm.ss).
202
DISPLAY QUEUE
CURDEPTH Current depth of queue. DEFBIND Default message binding. DEFPRTY Default priority of the messages put on the queue. DEFPSIST Whether the default persistence of messages put on this queue is set to NO or YES. NO means that messages are lost across a restart of the queue manager. DEFSOPT Default share option on a queue opened for input. DEFTYPE Queue definition type. This can be: v PREDEFINED (Predefined) The queue was created with a DEFINE command, either by an operator or by a suitably authorized application sending a command message to the service queue. v PERMDYN (Permanent dynamic) Either the queue was created by an application issuing MQOPEN with the name of a model queue specified in the object descriptor (MQOD), or (if this is a model queue) this determines the type of dynamic queue that can be created from it. v TEMPDYN (Temporary dynamic) Either the queue was created by an application issuing MQOPEN with the name of a model queue specified in the object descriptor (MQOD), or (if this is a model queue) this determines the type of dynamic queue that can be created from it. DESCR Descriptive comment. DISTL Whether distribution lists are supported by the partner queue manager. (Supported only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT.) GET Whether the queue is enabled for gets.
HARDENBO Whether to harden the get back out count. INDXTYPE Index type (supported only on OS/390). INITQ Initiation queue name. IPPROCS Number of handles indicating that the queue is open for input. MAXDEPTH Maximum depth of queue. MAXMSGL Maximum message length.
Chapter 2. The MQSeries commands
203
DISPLAY QUEUE
MSGDLVSQ Message delivery sequence. OPPROCS Number of handles indicating that the queue is open for output. PROCESS Process name. PUT Whether the queue is enabled for puts.
QDEPTHHI Queue Depth High event generation threshold. QDEPTHLO Queue Depth Low event generation threshold. QDPHIEV Whether Queue Depth High events are generated. QDPLOEV Whether Queue Depth Low events are generated. QDPMAXEV Whether Queue Full events are generated. QMID The internally generated unique name of the queue manager that hosts the queue. QSVCIEV Whether service interval events are generated. QSVCINT Service interval event generation threshold. QTYPE Queue type. | | | | | | On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, the queue type is always displayed if you specify a generic queue name and do not request any other attributes. On OS/390, the queue type is always displayed. On AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT, TYPE(type) can be used as a synonym for this parameter. RETINTVL Retention interval. RNAME Name of the local queue, as known by the remote queue manager. RQMNAME Remote queue manager name. SCOPE | SHARE Whether the queue can be shared. STGCLASS Storage class. Scope of queue definition (not supported on OS/390 or OS/400).
204
DISPLAY QUEUE
TARGQ Local name of aliased queue. TRIGDATA Trigger data. TRIGDPTH Trigger depth. TRIGGER Whether triggers are active. TRIGMPRI Threshold message priority for triggers. TRIGTYPE Trigger type. USAGE Whether or not the queue is a transmission queue. XMITQ Transmission queue name.
205
DISPLAY QMGR
DISPLAY QMGR
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use DISPLAY QMGR to display the queue manager attributes for this queue manager. Synonym: DIS QMGR DISPLAY QMGR.
DISPLAY QMGR ALL requested attrs
Requested attrs:
, (1) ALTDATE (1) ALTTIME AUTHOREV CCSID (2) CHAD (1) CHADEV (1) CHADEXIT (1) CLWLEXIT (1) CLWLDATA (1) CLWLLEN CMDLEVEL COMMANDQ (3) CPILEVEL DEADQ DEFXMITQ DESCR (2) DISTL INHIBTEV LOCALEV MAXHANDS MAXMSGL MAXPRTY (4) MAXUMSGS PERFMEV PLATFORM (1) QMID QMNAME REMOTEEV (1) REPOS (1) REPOSNL STRSTPEV SYNCPT TRIGINT
206
DISPLAY QMGR
Notes: 1 2 3 4 Valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. Valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. Valid only on OS/390. Not valid on OS/390.
| |
Requested attributes
Specify one or more attributes that define the data to be displayed. The attributes can be specified in any order, but do not specify the same attribute more than once. Note: If no attributes are specified (and the ALL keyword is not specified or defaulted), the queue manager name is returned. You can request the following information for the queue manager: ALTDATE The date on which the definition was last altered, in the form yyyy-mm-dd. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. ALTTIME The time at which the definition was last altered, in the form hh.mm.ss. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. AUTHOREV Whether authorization events are generated. CCSID Coded character set identifier. This applies to all character string fields defined by the application programming interface (API), including the names of objects, and the creation date and time of each queue. It does not apply to application data carried as the text of messages. CHAD Whether auto-definition of receiver and server-connection channels is enabled. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. | | CHADEV Whether auto-definition events are enabled. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT.
207
DISPLAY QMGR
CHADEXIT The name of the channel auto-definition exit. This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CLWLEXIT The name of the cluster workload exit. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CLWLDATA The data passed to the cluster workload exit. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CLWLLEN The maximum number of bytes of message data that is passed to the cluster workload exit. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. CMDLEVEL Command level. This indicates the function level of the queue manager. COMMANDQ The name of the system-command input queue. Suitably authorized applications can put commands on this queue. CPILEVEL Reserved, this value has no significance. DEADQ The name of the queue to which messages are sent if they cannot be routed to their correct destination (the dead-letter queue or undelivered-message queue). The default is blanks. For example, messages are put on this queue when: v A message arrives at a queue manager, destined for a queue that is not yet defined on that queue manager v A message arrives at a queue manager, but the queue for which it is destined cannot receive it because, possibly: The queue is full The queue is inhibited for puts The sending node does not have authority to put the message on the queue v An exception message needs to be generated, but the queue named is not known to that queue manager Note: Messages that have passed their expiry time are not transferred to this queue when they are discarded. If the dead-letter queue is not defined, or full, or unusable for some other reason, a message which would have been transferred to it by a message channel agent is retained instead on the transmission queue. If a dead-letter queue or undelivered-message queue is not specified, all blanks are returned for this attribute.
208
DISPLAY QMGR
DEFXMITQ Default transmission queue name. This is the transmission queue on which messages, destined for a remote queue manager, are put if there is no other suitable transmission queue defined. DESCR Description. DISTL Whether distribution lists are supported by the queue manager. This is valid only on AIX, HP-UX, OS/2 Warp, OS/400, Sun Solaris, and Windows NT. INHIBTEV Whether inhibit events are generated. LOCALEV Whether local error events are generated. MAXHANDS The maximum number of open handles that any one task can have at any one time. MAXMSGL The maximum message length that can be handled by the queue manager. Individual queues might have a smaller or greater maximum than this. (See the description of MAXMSGL under ALTER CHANNEL on page 14 for more information.) MAXPRTY The maximum priority. This is 9. MAXUMSGS Maximum number of uncommitted messages within one syncpoint. This keyword is not supported on OS/390; use DISPLAY MAXSMSGS instead. PERFMEV Whether performance-related events are generated. PLATFORM The architecture of the platform on which the queue manager is running. This is MVS, OPENVMS, NSK, OS2, OS400, UNIX, or WINDOWSNT. QMID The internally generated unique name of the queue manager. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. QMNAME The name of the local queue manager. See Rules for naming MQSeries objects on page 4. REMOTEEV Whether remote error events are generated. REPOS The name of a cluster for which this queue manager is to provide a repository manager service. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT.
Chapter 2. The MQSeries commands
209
DISPLAY QMGR
REPOSNL The name of a list of clusters for which this queue manager is to provide a repository manager service. | | This parameter is valid only on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT. STRSTPEV Whether start and stop events are generated. | | | SYNCPT Whether syncpoint support is available with the queue manager. On OS/2 Warp, OS/390, OS/400, UNIX systems, and Windows NT it is always available. TRIGINT The trigger interval.
210
DISPLAY SECURITY
DISPLAY SECURITY
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY SECURITY to display the current settings for the security attributes. Synonym: DIS SEC DISPLAY SECURITY
DISPLAY SECURITY requested attrs
Requested attrs:
ALL , INTERVAL SWITCHES TIMEOUT
INTERVAL Time interval between checks. SWITCHES Display the current setting of the switch profiles. If the ssid.NO.SUBSYS.SECURITY switch is off, no other switch profile settings are displayed. If the ssid.NO.SUBSYS.SECURITY switch is on, the following switch profile settings are displayed: v ssid.NO.SUBSYS.SECURITY (subsystem security) v ssid.NO.CONNECT.CHECKS (connection security) v ssid.NO.CMD.CHECKS (command security) v ssid.NO.CMD.RESC.CHECKS (command resource security) v ssid.NO.QUEUE.CHECKS (queue security) v ssid.NO.PROCESS.CHECKS (process security) v ssid.NO.NLIST.CHECKS (namelist security) v ssid.NO.CONTEXT.CHECKS (context security) v ssid.NO.ALTERNATE.USER.CHECKS (alternate user security) TIMEOUT Timeout value. See ALTER SECURITY on page 81 for details of the TIMEOUT and INTERVAL attributes.
211
DISPLAY STGCLASS
DISPLAY STGCLASS
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY STGCLASS to display information about storage classes. Synonym: DIS STC DISPLAY STGCLASS
DISPLAY STGCLASS(generic-class) ALL PSID( integer * ) requested attrs
Requested attrs:
212
DISPLAY STGCLASS
Requested attributes
Specify one or more attributes that define the data to be displayed. The attributes can be specified in any order, but do not specify the same attribute more than once. The default, if no attributes are specified (and the ALL keyword is not specified) is the storage class names and their page set identifiers are displayed. ALTDATE The date on which the definition was last altered, in the form yyyy-mm-dd. ALTTIME The time at which the definition was last altered, in the form hh.mm.ss. DESCR Descriptive comment. XCFGNAME The name of the XCF group that MQSeries is a member of. XCFMNAME The XCF member name of the IMS system within the XCF group specified in XCFGNAME.
213
DISPLAY THREAD
DISPLAY THREAD
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY THREAD to display information about active and in-doubt threads. Threads shown as in doubt on one invocation of this command will probably be resolved for subsequent invocations. Synonym: DIS THD DISPLAY THREAD
TYPE(ACTIVE) DISPLAY THREAD( * , connection-name ) TYPE( INDOUBT * )
INDOUBT
214
DISPLAY THREAD
For more information about the DISPLAY THREAD command and in-doubt recovery, see the MQSeries for OS/390 System Management Guide and messages CSQV401I through CSQV406I in the MQSeries for OS/390 Messages and Codes manual. Note: This command is issued internally by MQSeries when taking a checkpoint, and when the queue manager is starting and stopping, so that a list of threads that are in doubt at the time is written to the OS/390 console log.
215
DISPLAY TRACE
DISPLAY TRACE
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY TRACE to display a list of active traces. Synonym: DIS TRACE DISPLAY TRACE
* DISPLAY TRACE ( ACCTG GLOBAL STAT ) destination block constraint block COMMENT(string)
DETAIL(output-type)
Destination block:
, DEST ( GTF RES SMF SRV )
Constraint block:
CLASS(*) , CLASS( integer ) RMID( RMID(*) , integer ) TNO( TNO(*) , integer ) USERID( USERID(*) , string )
216
DISPLAY TRACE
COMMENT(string) Specifies a comment. This does not appear in the display, but it might be recorded in trace output. DETAIL(output-type) Limits the information that a trace displays based on the output-type specified. Possible values for output-type are: 1 Display summary trace information: TNO, TYPE, CLASS, and DEST 2 Display qualification trace information: TNO and RMID. Refer to message CSQW127I (in the MQSeries for OS/390 Messages and Codes manual) for more information about trace qualification. 1,2 Display both summary and qualification information * Display both summary and qualification information If no parameter follows DETAIL (either DETAIL() or just DETAIL is used), type 1 trace information is displayed.
Destination block
DEST Limits the list to traces started for particular destinations. More than one value can be specified, but do not use the same value twice. If no value is specified, the list is not limited. Possible values and their meanings are:
GTF RES SMF SRV The Generalized Trace Facility A wrap-around table residing in the ECSA (extended common service area) The System Management Facility A serviceability routine designed for IBM for problem diagnosis
See START TRACE on page 241 for a list of allowed destinations for each trace type.
Constraint block
CLASS(integer) Limits the list to traces started for particular classes. See START TRACE on page 241 for a list of allowed classes. The default is CLASS(*), which does not limit the list. RMID(integer) Limits the list to traces started for particular resource managers. See START TRACE on page 241 for a list of allowed resource manager identifiers. Do not use this option with STAT. The default is RMID(*), which does not limit the list. Note: Information about RMID 231 might be inaccurate if the trace has been altered using the ALTER TRACE command, or if the channel initiator has been stopped. TNO(integer) Limits the list to particular traces, identified by their trace number (1 to
217
DISPLAY TRACE
32). Up to 8 trace numbers can be used. If more than one number is used, only one value for USERID can be used. The default is TNO(*), which does not limit the list. USERID(string) Limits the list to traces started for particular user IDs. Up to 8 user IDs can be used. If more than one user ID is used, only one value can be used for TNO. Do not use this option with STAT. The default is USERID(*), which does not limit the list.
218
DISPLAY USAGE
DISPLAY USAGE
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use DISPLAY USAGE to display information about the current state of a page set. Synonym: DIS USAGE DISPLAY USAGE
PSID(*) DISPLAY USAGE PSID(integer)
219
PING CHANNEL
PING CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use PING CHANNEL to test a channel by sending data as a special message to the remote queue manager, and checking that the data is returned. The data is generated by the local queue manager. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. On OS/390, the command fails if the channel initiator has not been started. 3. Where there is both a locally defined channel and an auto-defined cluster-sender channel of the same name, the command applies to the locally defined channel. If there is no locally defined channel but more than one auto-defined cluster-sender channel, the command applies to the channel that was last added to the local queue managers repository. This command can be used only for sender (SDR), server (SVR), and cluster-sender (CLUSSDR) channels (including those that have been defined automatically). It is not valid if the channel is running; however, it is valid if the channel is stopped or in retry mode. Synonym: PING CHL PING CHANNEL
DATALEN(16) PING CHANNEL(channel-name) DATALEN(integer)
220
PING QMGR
PING QMGR
Digital OpenVMS U OS/390 OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use PING QMGR to test whether the queue manager is responsive to commands. Note: If commands are issued to the queue manager by sending messages to the command server queue, this command causes a special message to be sent to it, consisting of a command header only, and checking that a positive reply is returned. Synonym: PING QMGR PING QMGR
PING QMGR
221
RECOVER BSDS
RECOVER BSDS
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use RECOVER BSDS to reestablish a dual bootstrap data set (BSDS) after one has been disabled by a data set error. Note: Command processing consists of allocating a data set with the same name as the one that encountered the error and copying onto the new data set the contents of the BSDS that does not have an error. Synonym: REC BSDS RECOVER BSDS
RECOVER BSDS
222
REFRESH CLUSTER
REFRESH CLUSTER
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use REFRESH CLUSTER to discard all locally held cluster information (including any autodefined channels that are in doubt), and force it to be rebuilt. This enables you to perform a cold-start on the cluster. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. 2. On OS/390, the command fails if the channel initiator has not been started. Synonym: REF CLUSTER RESUME QMGR
REFRESH CLUSTER(clustername)
223
REFRESH SECURITY
REFRESH SECURITY
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use REFRESH SECURITY to cause a security refresh to be carried out. Synonym: REF SEC REFRESH SECURITY
REFRESH SECURITY ( * MQADMIN MQNLIST MQPROC MQQUEUE )
MQADMIN Administration type resources MQNLIST Namelist resources MQPROC Process resources MQQUEUE Queue resources Note: If, when refreshing this class, it is determined that a security switch relating to one of the other classes has been changed, a refresh for that class also takes place. REBUILD SECURITY is another synonym for REFRESH SECURITY.
224
RESET CHANNEL
RESET CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use RESET CHANNEL to reset the message sequence number for an MQSeries channel with, optionally, a specified sequence number to be used the next time that the channel is started. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. This command can be issued to a channel of any type except SVRCONN and CLNTCONN channels, (including those that have been defined automatically). However, if it is issued to a sender, server or cluster-sender channel, then in addition to resetting the value at the end at which the command is issued, the value at the other (receiver, requester, or cluster-receiver) end is also reset to the same value the next time this channel is initiated (and resynchronized if necessary). 3. If the command is issued to a receiver, requester, or cluster-requester channel, the value at the other end is not reset as well; this must be done separately if necessary. 4. Where there is both a locally defined channel and an auto-defined cluster-sender channel of the same name, the command applies to the locally defined channel. If there is no locally defined channel but more than one auto-defined cluster-sender channel, the command applies to the channel that was last added to the local queue managers repository. Synonym: RESET CHL RESET CHANNEL
SEQNUM(1) RESET CHANNEL(channel-name) SEQNUM(integer)
225
RESET CLUSTER
RESET CLUSTER
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use RESET CLUSTER to perform special operations on clusters. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. 2. On OS/390, the command fails if the channel initiator has not been started. Synonym: None RESUME QMGR
RESET CLUSTER(clustername) ACTION(FORCEREMOVE) QMNAME(qmname)
226
RESET TPIPE
RESET TPIPE
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use RESET TPIPE to reset the recoverable sequence numbers for an IMS Tpipe used by the MQSeries-IMS bridge. Notes: 1. This command is used in response to the resynchronization error reported in message CSQ2020E, and initiates resynchronization of the Tpipe with IMS. 2. The command fails if the queue manager is not connected to the specified XCF member. 3. The command fails if the queue manager is connected to the specified XCF member, but the Tpipe is open. 4. RESET TPIPE cannot be issued from the CSQINP1 and CSQINP2 initialization data sets. Synonym: There is no synonym for this command. RESET TPIPE
RESET TPIPE(tpipe-name) XCFMNAME(mname) ACTION( COMMIT BACKOUT ) SENDSEQ(Xinteger)
RCVSEQ(Xinteger)
XCFGNAME(gname)
227
RESET TPIPE
sent by MQSeries and to be set as the partners receive sequence number. It must be hexadecimal and can be up to 8 digits long. It is optional; if omitted, the sequence number is not changed but the partners receive sequence is set to the MQSeries send sequence number. RCVSEQ(integer) The new recoverable sequence number to be set in the Tpipe for messages received by MQSeries and to be set as the partners send sequence number. It must be hexadecimal and can be up to 8 digits long. It is optional; if omitted, the sequence number is not changed but the partners send sequence is set to the MQSeries receive sequence number. XCFGNAME(gname) The name of the XCF group to which the Tpipe belongs. This is 1 through 8 characters long. It is optional; if omitted, the group name used is that specified in the OTMACON system parameter.
228
RESOLVE CHANNEL
RESOLVE CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use RESOLVE CHANNEL to request a channel to commit or back out in-doubt messages. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. On OS/390, the command fails if the channel initiator has not been started. 3. This command can be used only for sender (SDR), server (SVR), and cluster-sender (CLUSSDR) channels (including those that have been defined automatically). 4. Where there is both a locally defined channel and an auto-defined cluster-sender channel of the same name, the command applies to the locally defined channel. If there is no locally defined channel but more than one auto-defined cluster-sender channel, the command applies to the channel that was last added to the local queue managers repository. Synonym: RESOLVE CHL (RES CHL on OS/390) RESOLVE CHANNEL
RESOLVE CHANNEL(channel-name) ACTION( COMMIT BACKOUT )
Usage notes
This command is used when the other end of a link fails during the confirmation period, and for some reason it is not possible to reestablish the connection. In this situation the sending end remains in doubt, as to whether or not the messages were received. Any outstanding units of work need to be resolved by being backed out or committed.
229
RESOLVE CHANNEL
Take care when using this command. If the resolution specified is not the same as the resolution at the receiving end, messages can be lost or duplicated.
230
RESOLVE INDOUBT
RESOLVE INDOUBT
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use RESOLVE INDOUBT to resolve threads left in doubt because MQSeries or a transaction manager could not resolve them automatically. Note: This command does not apply to units of recovery associated with batch or TSO applications, unless you are using the RRS adapter. Synonym: RES IND RESOLVE INDOUBT
RESOLVE INDOUBT(connection-name) ACTION( COMMIT BACKOUT ) NID( * , network-id )
231
RESUME QMGR
RESUME QMGR
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use RESUME QMGR to inform other queue mangers in a cluster that the local queue manager is available again for processing and can be sent messages. It reverses the action of the SUSPEND QMGR command. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. 2. On OS/390, the command fails if the channel initiator has not been started. Synonym: None RESUME QMGR
RESUME QMGR CLUSTER(clustername) CLUSNL(nlname)
232
RVERIFY SECURITY
RVERIFY SECURITY
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use RVERIFY SECURITY to set a reverification flag for all specified users. The user is reverified the next time that security is checked for that user. Synonym: REV SEC RVERIFY SECURITY
, RVERIFY SECURITY ( userid )
233
START CHANNEL
START CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use START CHANNEL to start a channel. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. On OS/390, the command fails if the channel initiator has not been started. 3. This command can be issued to a channel of any type except CLNTCONN channels (including those that have been defined automatically). If, however, it is issued to a receiver (RCVR), server-connection (SVRCONN) or cluster-receiver (CLUSRCVR) channel, the only action is to enable the channel, not to start it. 4. Where there is both a locally defined channel and an auto-defined cluster-sender channel of the same name, the command applies to the locally defined channel. If there is no locally defined channel but more than one auto-defined cluster-sender channel, the command applies to the channel that was last added to the local queue managers repository. Synonym: STA CHL START CHANNEL
START CHANNEL(channel-name)
234
START CHINIT
START CHINIT
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use START CHINIT to start a channel initiator. Note: On OS/390, this is valid only for channels used for distributed queuing without CICS. Synonym: STA CHI
235
START CHINIT
PARM(member-name) The load module that contains the channel initiator initialization parameters. member-name is the name of a load module provided by the installation. The default is CSQXPARM, which is provided by MQSeries. This keyword is valid only on OS/390.
236
START CMDSERV
START CMDSERV
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use START CMDSERV to initialize the command server. Synonym: STA CS START CMDSERV
START CMDSERV
Usage notes
1. START CMDSERV starts the command server and allows it to process commands in the system-command input queue (SYSTEM.COMMAND.INPUT). 2. If this command is issued through the initialization files or through the operator console before work is released to the queue manager (that is, before the command server is started automatically), it overrides any earlier STOP CMDSERV command and allows the queue manager to start the command server automatically by putting it into an ENABLED state. 3. If this command is issued through the operator console while the command server is in a STOPPED or DISABLED state, it starts the command server and allows it to process commands on the system-command input queue immediately. 4. If the command server is in a RUNNING or WAITING state (including the case when the command is issued through the command server itself), or if the command server has been stopped automatically because the queue manager is closing down, no action is taken, the command server remains in its current state, and an error message is returned to the command originator.
237
START LISTENER
START LISTENER
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use START LISTENER to start a channel listener. Notes: 1. On UNIX systems, the command is valid only for AIX, HP-UX, and Sun Solaris. 2. On OS/390, it is valid only for channels used for distributed queuing without CICS, and fails if the channel initiator has not been started. 3. On OS/400, OS/2 Warp, UNIX systems, and Windows NT, it is valid only for channels for which the transmission protocol (TRPTYPE) is TCP. Synonym: STA LSTR START LISTENER
(1) PORT(1414) START LISTENER (1) LUNAME(string (2) ) PORT(port-number) (1) (3) TRPTYPE(LU62) (1) (3) TRPTYPE(TCP) (1)
Notes: 1 2 3 Valid only on OS/390. Valid only for TRPTYPE(LU62). Valid only for TRPTYPE(TCP).
238
START LISTENER
This parameter is supported only on OS/390.
239
START QMGR
START QMGR
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use START QMGR to initialize the queue manager. When the operation has been completed, the queue manager is active and available to CICS, IMS, batch, and TSO applications. Synonym: STA QMGR START QMGR
PARM(CSQZPARM) START QMGR (1) ENVPARM(jcl-substitution) PARM(member-name)
enclosed in single quotation marks. If you use more than one character string, separate the strings by commas and enclose the entire list in single quotation marks, for example ENVPARM(HLQ=CSQ,VER=210). MSTR is accepted as a synonym for ENVPARM PARM(member-name) The load module that contains the queue manager initialization parameters. member-name is the name of a load module provided by the installation. The default is CSQZPARM, which is provided by MQSeries.
240
START TRACE
START TRACE
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use START TRACE to start traces. When you issue this command, a trace number is returned in message number CSQW130I. You can use this trace number (TNO) in ALTER TRACE, DISPLAY TRACE, and STOP TRACE commands. Synonym: STA TRACE START TRACE
GLOBAL START TRACE ( ACCTG STAT ) destination block constraint block COMMENT(string)
Destination block:
, DEST ( GTF RES SMF SRV )
Constraint block:
CLASS(*) , CLASS( integer ) IFCID( IFCID(*) , ifcid ) RMID( RMID(*) , integer ) TDATA( CORRELATION TRACE )
USERID(*) , ( string )
241
START TRACE
GLOBAL This includes data from the entire queue manager. The synonym is G. STAT Collects statistical data broadcast by various components of MQSeries, at time intervals that can be chosen during installation. The synonym is S.
COMMENT(string) Specifies a comment that is reproduced in the trace output record (except in the resident trace tables). It can be used to record why the command was issued. string is any character string. It must be enclosed in single quotation marks if it includes a blank, comma, or special character.
Destination block
DEST Specifies where the trace output is to be recorded. More than one value can be specified, but do not use the same value twice. The meaning of each value is as follows:
GTF The OS/390 Generalized Trace Facility (GTF). If used, the GTF must be started and accepting user (USR) records before the START TRACE command is issued. A wrap-around table residing in the ECSA, or a data space for RMID 231. The System Management Facility (SMF). If used, the SMF must be functioning before the START TRACE command is issued. The SMF record numbers reserved for use by MQSeries are 115 and 116. A serviceability routine reserved for IBM use only; not for general use. Note: If your IBM support center need you to use this destination for your trace data they will supply you with module CSQWVSER. If you try to use destination SRV without CSQWVSER an error message will be produced at the OS/390 console when you issue the START TRACE command.
RES SMF
SRV
Allowed values, and the default value, depend on the type of trace started, as shown in the following table:
Table 4. Destinations allowed for each trace type
Type GLOBAL STAT ACCTG GTF Allowed No Allowed RES Default No No SMF No Default Default SRV Allowed Allowed Allowed
Constraint block
The constraint block places optional constraints on the kinds of data collected by the trace. The allowed constraints depend on the type of trace started, as shown in the following table:
Table 5. Constraints allowed for each trace type
Type GLOBAL STAT ACCTG CLASS Allowed Allowed Allowed IFCID Allowed No No RMID Allowed No No USERID Allowed No No
242
START TRACE
CLASS Introduces a list of classes of data gathered. The classes allowed, and their meaning, depend on the type of trace started: (*) (integer) Any number in the class column of the table that follows. You can use more than one of the classes that are allowed for the type of trace started. A range of classes can be specified as m:n (for example, CLASS(01:03)). If you do not specify a class, the default is to start class 1.
Table 6. IFCID descriptions for IFCID trace events and classes
Class IFCID Description Global trace 01 02 03 0000 0018 0016 0017 0018 04 Various Reserved for IBM service User parameter error detected in a control block User parameter error detected on entry to MQI User parameter error detected on exit from MQI User parameter error detected in a control block Reserved for IBM service Statistics trace 01 0001 0002 Subsystem statistics Queue manager statistics Accounting trace 01 0003 The CPU time spent processing MQI calls and a count of MQPUT and MQGET calls
IFCID Reserved for IBM service. RMID Introduces a list of specific resource managers for which trace information is gathered. You cannot use this option for STAT or ACCTG traces. (*) (integer) The identifying number of any resource manager in Table 7 on page 244. You can use up to 8 of the allowed resource manager identifiers; do not use the same one twice. If the list of RMIDs includes 231, the tracing for this resource manager is not started if one of the following is true: v TRACE(STAT) or TRACE(ACCTG) is specified v The list of destinations does not include RES v This list of classes does not include 01 or 04 Also, comments will be truncated to 120 characters. If tracing for RMID 231 is started, it stops if the channel initiator is stopped. Starts a trace for all resource managers. This is the default.
243
START TRACE
Table 7. Resource Manager identifiers that are allowed
RMID 1 2 3 4 6 7 8 12 16 23 24 26 148 199 200 201 211 212 213 215 231 242 Resource manager Initialization procedures Agent services management Recovery management Recovery log management Storage management Subsystem support for allied memories Subsystem support for subsystem interface (SSI) functions System parameter management Instrumentation commands, trace, and dump services General command processing Message generator Instrumentation accounting and statistics Connection manager Functional recovery Security management Data management Lock management Message management Command server Buffer management Channel Initiator MQSeries-IMS bridge
TDATA Reserved for IBM service. USERID Introduces a list of specific user IDs for which trace information is gathered. You cannot use this option for STAT or ACCTG traces. (*) (userid) Names a user ID. You can use up to 8 user IDs; a separate trace is started for each. Starts a trace for all user IDs. This is the default.
244
STOP CHANNEL
STOP CHANNEL
Digital OpenVMS U OS/390 U OS/400 U OS/2 Warp U Tandem NSK U UNIX systems U Windows NT U
Use STOP CHANNEL to stop a channel. Notes: 1. On OS/390, this is valid only for channels used for distributed queuing without CICS. If you are using CICS for distributed queuing, see Note 2 on page 13. 2. On OS/390, the command fails if the channel initiator has not been started. 3. You need to issue a START CHANNEL command to restart the channel, it will not restart automatically. See the MQSeries Intercommunication manual for information about restarting stopped channels. 4. This command can be issued to a channel of any type except CLNTCONN channels (including those that have been defined automatically). 5. Where there is both a locally defined channel and an auto-defined cluster-sender channel of the same name, the command applies to the locally defined channel. If there is no locally defined channel but more than one auto-defined cluster-sender channel, the command applies to the channel that was last added to the local queue managers repository. Synonym: STOP CHL STOP CHANNEL
MODE(QUIESCE) STOP CHANNEL(channel-name) MODE(FORCE)
245
STOP CHANNEL
FORCE Terminates transmission of any current batch. This is likely to result in in-doubt situations. For server-connection channels, breaks the current connection, returning MQRC_CONNECTION_BROKEN.
246
STOP CHINIT
STOP CHINIT
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use STOP CHINIT to stop a channel initiator. Note: This command is valid only for channels used for distributed queuing without CICS. Synonym: STOP CHI STOP CHINIT
STOP CHINIT
Usage notes
1. When you issue the STOP CHINIT command, MQSeries stops any channels that are running in the following way: v Sender and server channels are stopped using STOP CHANNEL MODE(QUIESCE) v All other channels are stopped using STOP CHANNEL MODE(FORCE) See STOP CHANNEL on page 245 for information about what this involves. 2. You might receive communications-error messages as a result of issuing the STOP CHINIT command.
247
STOP CMDSERV
STOP CMDSERV
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use STOP CMDSERV to stop the command server. Synonym: STOP CS STOP CMDSERV
STOP CMDSERV
Usage notes
1. STOP CMDSERV stops the command server from processing commands in the system-command input queue (SYSTEM.COMMAND.INPUT). 2. If this command is issued through the initialization files or through the operator console before work is released to the queue manager (that is, before the command server is started automatically), it prevents the command server from starting automatically and puts it into a DISABLED state. It overrides an earlier START CMDSERV command. 3. If this command is issued through the operator console or the command server while the command server is in a RUNNING state, it stops the command server when it has finished processing its current command. When this happens, the command server enters the STOPPED state. 4. If this command is issued through the operator console while the command server is in a WAITING state, it stops the command server immediately. When this happens, the command server enters the STOPPED state. 5. If this command is issued while the command server is in a DISABLED or STOPPED state, no action is taken, the command server remains in its current state, and an error message is returned to the command originator.
248
STOP LISTENER
STOP LISTENER
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use STOP LISTENER to stop a channel listener. Notes: 1. This is valid only for channels used for distributed queuing without CICS. 2. The command fails if the channel initiator has not been started. Synonym: STOP LSTR STOP LISTENER
TRPTYPE(TCP) STOP LISTENER TRPTYPE(LU62)
On OS/390, only one listener for each protocol is allowed for a given queue manager, and therefore no further parameters are needed to identify which listener is to be stopped. The listener stops in quiesce mode (it disregards any further requests).
249
STOP QMGR
STOP QMGR
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use STOP QMGR to stop the queue manager. Synonym: There is no synonym for this command. STOP QMGR
MODE(QUIESCE) STOP QMGR MODE(FORCE) MODE(RESTART)
250
STOP TRACE
STOP TRACE
Digital OpenVMS OS/390 U OS/400 OS/2 Warp Tandem NSK UNIX systems Windows NT
Use STOP TRACE to stop tracing. Synonym: There is no synonym for this command. STOP TRACE
STOP TRACE ( ACCTG GLOBAL STAT * ) destination block constraint block COMMENT(string)
Destination block:
, DEST ( GTF RES SMF SRV )
Constraint block:
CLASS(*) , CLASS( integer ) RMID( RMID(*) , integer ) TNO( TNO(*) , integer ) USERID( USERID(*) , string )
251
STOP TRACE
* All active traces
For further descriptions of each type, see START TRACE on page 241. COMMENT(string) Specifies a comment that is reproduced in the trace output record (except in the resident trace tables), and can be used to record why the command was issued. string is any character string. It must be enclosed in single quotation marks if it includes a blank, comma, or special character.
Destination block
DEST Limits the action of the STOP TRACE to traces started for particular destinations. More than one value can be specified, but do not use the same value twice. If no value is specified, the list is not limited. Possible values and their meanings are:
GTF RES SMF SRV The Generalized Trace Facility A wrap-around table residing in the ECSA The System Management Facility A serviceability routine designed for problem diagnosis
See START TRACE on page 241 for a list of allowed destinations for each trace type.
Constraint block
CLASS(integer) Limits the action of the STOP TRACE to traces started for particular classes. See the START TRACE command for a list of allowed classes. A range of classes can be specified as m:n (for example, CLASS(01:03)). You cannot specify a class if you did not specify a trace type. The default is CLASS(*), which does not limit the command. RMID(integer) Limits the action of the STOP TRACE to traces started for particular resource managers. See the START TRACE command for a list of allowed resource manager identifiers. Do not use this option with the STAT or ACCTG trace type. If the list of RMIDs includes 231, the tracing for this resource manager is left unchanged if one of the following is true: v TRACE(GLOBAL) or TRACE(*) is not specified v The list of destinations does not include RES v This list of classes does not include 01 or 04 Also, comments will be truncated to 120 characters. The default is RMID(*), which does not limit the command. TNO(integer) Limits the action of the STOP TRACE to particular traces, identified by their trace numbers (1 to 32). Up to 8 trace numbers can be used. If more than one number is used, only one value for USERID can be used. The default is TNO(*), which does not limit the command.
252
STOP TRACE
USERID(string) Limits the action of the STOP TRACE to traces started for particular user ID. Up to 8 user IDs can be used. If more than one user ID is used, only one value can be used for TNO. Do not use this option with STAT. The default is USERID(*), which does not limit the command.
253
SUSPEND QMGR
SUSPEND QMGR
Digital OpenVMS OS/390 U OS/400 U OS/2 Warp U Tandem NSK UNIX systems U Windows NT U
Use SUSPEND QMGR to inform other queue mangers in a cluster that the local queue manager is not available for processing and cannot be sent messages. Its action can be reversed by the RESUME QMGR command. Notes: 1. On UNIX systems, the command is valid only on AIX, HP-UX, and Sun Solaris. 2. On OS/390, the command fails if the channel initiator has not been started. Synonym: None RESUME QMGR
MODE(QUIESCE) SUSPEND QMGR CLUSTER(clustername) CLUSNL(nlname) MODE(FORCE)
| | |
FORCE
254
| | | | | | | | |
| |
Install MQSeries for Tandem NonStop Kernel Ping a Queue Manager Start a Queue Manager Stop a Queue Manager
| | |
Upgrade MQSeries for Tandem NonStop Kernel Work with a Queue Manager Notes: 1. Applies on OS/390 only
255
Command summary
Table 9. Commands for queue administration (continued)
Operation Change queue attributes PCF Change Queue MQSC ALTER ALTER ALTER ALTER QALIAS QLOCAL QMODEL QREMOTE OS/400 CL CHGMQMQ Control command
Clear a queue
Clear Queue
CLEAR QLOCAL (2) The following sequence: DELETE QLOCAL(x), DEFINE QLOCAL(x) or the following sequence: DEFINE QLOCAL(y) LIKE(x), DELETE QLOCAL(x), DEFINE QLOCAL(x) LIKE(y), DELETE QLOCAL(y)
CLRMQMQ
Copy Queue
DEFINE DEFINE DEFINE DEFINE DEFINE DEFINE DEFINE DEFINE DELETE DELETE DELETE DELETE DISPLAY DISPLAY DISPLAY DISPLAY DISPLAY DISPLAY
QALIAS(x) LIKE(y) QLOCAL(x) LIKE(y) QMODEL(x) LIKE(y) QREMOTE(x) LIKE(y) QALIAS QLOCAL QMODEL QREMOTE QALIAS QLOCAL QMODEL QREMOTE QUEUE QALIAS (3) QCLUSTER (3) QLOCAL (3) QMODEL (3) QREMOTE (3)
CPYMQMQ
Create a queue
Create Queue
CRTMQMQ
Delete a queue
Delete Queue
DLTMQMQ
Inquire Queue
DSPMQMQ
Display queue names Reset queue statistics Work with a queue Work with messages Notes:
DISPLAY QUEUE
WRKMQMQ
WRKMQMQ WRKMQMMSG
| |
1. Applies on Tandem NSK only 2. Does not apply on OS/390 3. Applies on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT only
Table 10. Commands for process definition administration. (See note 1.)
Operation Change process attributes Copy a process Create a process Delete a process Display process attributes Display process names PCF Change Process Copy Process Create Process Delete Process Inquire Process Inquire Process Names MQSC ALTER PROCESS DEFINE PROCESS(x) LIKE(y) DEFINE PROCESS DELETE PROCESS DISPLAY PROCESS DISPLAY PROCESS OS/400 CL CHGMQMPRC CPYMQMPRC CRTMQMPRC DLTMQMPRC DSPMQMPRC WRKMQMPRC
256
Command summary
Table 10. Commands for process definition administration (continued). (See note 1.)
Operation Work with a process PCF MQSC OS/400 CL WRKMQMPRC
| |
Table 11. Commands for namelist administration. (See notes 1 and 2.)
Operation PCF (3) Change Namelist Copy Namelist Create Namelist Delete Namelist Inquire Namelist Inquire Namelist Names MQSC ALTER NAMELIST DEFINE NAMELIST(x) LIKE(y) DEFINE NAMELIST DELETE NAMELIST DISPLAY NAMELIST DISPLAY NAMELIST OS/400 CL CHGMQMNL CPYMQMNL CRTMQMNL DLTMQMNL DSPMQMNL WRKMQMNL WRKMQMNL
| | | | | | | | | | |
Change a namelist Copy a namelist Define a namelist Delete a namelist Display a namelist Display namelist names Work with a namelist Notes:
1. Namelist functions are supported on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT only. 2. There are no control-command equivalents of these commands. 3. Does not apply on OS/390.
| |
Convert client channel definitions Copy channel attributes Create a channel Delete a channel Display a channel Display channel names
| |
Display channel status Display distributed queuing Ping a channel Reset a channel Resolve a channel Start a channel Start a channel initiator (4)
| |
Start a channel listener (4) Stop a channel Stop a channel initiator (4)
| |
257
Command summary
Table 12. Commands for channel administration (continued)
Operation Notes: PCF MQSC (1) OS/400 CL Control command
| | | | | | | | | |
1. Does not apply on OS/390 if you are using CICS for distributed queuing. 2. Applies on Tandem NSK only. 3. Applies on OS/390 only. 4. In MQSeries for Tandem NonStop Kernel, the preferred method of starting and stopping TCP/IP listeners and channel initiators is using PATHWAY (TS/MP), as described in the MQSeries for Tandem NonStop Kernel System Management Guide. 5. Does not apply on Tandem NSK. 6. Applies on OS/2 Warp, OS/400, and Windows NT only. 7. Applies on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT only. 8. Does not apply on AT&T GIS UNIX, DIGITAL UNIX, or SINIX and DC/OSx. 9. Applies on AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT only.
Table 13. Commands for cluster administration. (See notes 1 and 2.)
Operation PCF (3) Inquire Cluster Queue Manager Refresh Cluster Reset Cluster Resume Queue Manager Cluster Suspend Queue Manager Cluster MQSC DISPLAY CLUSQMGR REFRESH CLUSTER RESET CLUSTER RESUME QMGR SUSPEND QMGR RFRMQMCL RSTMQMCL RSMMQMCLQM SPDMQMCLQM WRKMQMCL OS/400 CL
| | | | | | | | | | | | | |
Display cluster queue manager Refresh cluster information Reset cluster Resume cluster processing Suspend cluster processing Work with a cluster Notes:
1. Queue Manager Cluster functions are supported on AIX, HP-UX, OS/2 Warp, OS/390, OS/400, Sun Solaris, and Windows NT only. 2. There are no control-command equivalents of these commands. 3. Does not apply on OS/390.
| |
Display mapping of MQSeries principal to Tandem NSK user ID Display object authority Display security settings Grant object authority
| |
Map MQSeries principal to Tandem NSK user ID or group Refresh security Revoke object authority Set a reverification flag Notes:
| | |
1. There are no PCF equivalents of these commands. 2. Applies on OS/390 only. 3. Applies on Tandem NSK only.
258
Command summary
Table 15. Miscellaneous commands. (See note 1.)
Operation MQSC (2) ALTER STGCLASS ALTER TRACE ARCHIVE LOG cnvmsgs (3) cnv1520 (3) CVTMQMDTA DEFINE BUFFPOOL DEFINE PSID DEFINE STGCLASS DELETE STGCLASS DISPLAY CMDSERV DSPMQMCSVR dspmqcsv (4) dspmqfls dspmqtrc (5) WRKMQMTRN DSPMQMOBJN DISPLAY USAGE DISPLAY STGCLASS DISPLAY THREAD DISPLAY TRACE dmpmqlog (7) cleanrdf (3) RCDMQMIMG RECOVER BSDS RCRMQMOBJ RESET TPIPE RESOLVE INDOUBT RSVMQMTRN STRMQMDLQ STRMQMMQSC rsvmqtrn (6) runmqdlq runmqsc runmqtmc (9) START CMDSERV START TRACE STRMQMCSVR TRCMQM STRMQMTRM STOP CMDSERV STOP TRACE ENDMQMCSVR TRCMQM strmqcsv (4) strmqtrc (10) runmqtrm endmqcsv (4) endmqtrc (10) rcrmqobj (8) rcdmqimg (8) dspmqtrn (6) crtmqcvx OS/400 CL Control command
| | | | | | | | | | | | | |
Alter a storage class Alter trace parameters Archive a log Convert V1.5.1 messages to V2.2.0.1 format Convert V1.5.1 queue and channel definitions to V2.2.0.1 format Create data conversion code Define a buffer pool Define a page set Define a storage class Delete a storage class Display the command server Display MQSeries files Display MQSeries formatted trace output
| | | | | | | | | | | | | | | | | | | | | | | | | | | |
Display MQSeries transactions Display an object name Display page set information Display storage class information Display a thread Display trace activity Dump contents of MQSeries log Perform RDF housekeeping Record an object image Recover a bootstrap data set Recreate an object Reset an IMS transaction pipe Resolve in-doubt threads Resolve MQSeries transactions Run dead-letter queue handler Run MQSeries commands Start client trigger monitor Start the command server Start a trace Start trigger monitor Stop the command server Stop a trace
259
Command summary
Table 15. Miscellaneous commands (continued). (See note 1.)
Operation Notes: MQSC (2) OS/400 CL Control command
| | | | | | | | | | |
1. There are no PCF equivalents of these commands. 2. Applies on OS/390 only. 3. Applies on Tandem NSK only. 4. In MQSeries for Tandem NonStop Kernel, as an alternative to the control commands dspmqcsv,strmqcsv, andendmqcsv, you can use PATHCOM commands to stop, start, and monitor the command server. 5. Does not apply on AIX, OS/2 Warp, or Windows NT. 6. Does not apply on DIGITAL UNIX or Tandem NSK. 7. Applies on AIX, HP-UX, OS/2 Warp, Sun Solaris, and Windows NT. 8. Does not apply on Tandem NSK. 9. Applies on AIX, Compaq (DIGITAL) OpenVMS, and OS/2 Warp clients only. 10. Does not apply on AIX.
260
If you omit the queue manager name, the default queue manager is used. The queue manager responds with output similar to the following:
5697-270 (C) Copyright IBM Corp. 1997. ALL RIGHTS RESERVED Starting MQSeries Commands.
The plus sign indicates that the command is continued on the next line. When you press Enter, the queue manager confirms that the command has been carried out:
1: DEFINE QLOCAL(TEST) + : REPLACE + : DESCR('This is a test queue') + : TRIGGER + : INITQ(SYSTEM.SAMPLE.TRIGGER) AMQ8006: MQSeries queue created.
261
262
Error messages
If the command fails, there might be additional information about the problem in the error log.
This command verifies the MQSC commands in the input file and writes a report to the report file. The report contains the same information as is obtained when the commands are actually run, except that it does not contain any messages indicating the outcome of each command.
263
Summary of changes
264
The plus sign indicates that the command is continued on the next line. When you press Enter, the queue manager confirms that the command has been carried out:
1: DEFINE QLOCAL(TEST) + : REPLACE + : DESCR('This is a test queue') + : TRIGGER + : INITQ(SYSTEM.SAMPLE.TRIGGER) AMQ8006: MQSeries queue created.
If you accidentally add a + to the end of a line when you want to end a command, use the ; character to end the command.
265
Getting help
When you are issuing commands interactively on OS/2 Warp, you can get help by entering command ? (where command is the name of the command you are interested in). MQSeries displays the syntax of the command. If you enter an invalid command, MQSeries displays the syntax of the command if it can determine what the command was or, alternatively, displays a list of commands for you to select from.
266
Error messages
If the command fails, there might be additional information about the problem in the error log.
This command verifies the MQSC commands in the input file and writes a report to the report file. The report contains the same information as is obtained when the commands are actually run, except that it does not contain any messages indicating the outcome of each command.
267
Summary of changes
268
269
270
* *
The report generated contains the following elements: v A header identifying MQSC as the source of the report v A numbered listing of the input MQSC commands v A syntax error message for any commands in error v A message indicating the outcome of running each correct command v Other messages for general errors running MQSC, as needed v A summary report at the end
271
272
If you omit the queue manager name, the default queue manager is used. The queue manager responds with output similar to the following:
5697-A17 (C) Copyright IBM Corp. 1997. ALL RIGHTS RESERVED Starting MQSeries Commands.
The plus sign indicates that the command is continued on the next line. When you press Enter, the queue manager confirms that the command has been carried out:
1: DEFINE QLOCAL(TEST) + : REPLACE + : DESCR('This is a test queue') + : TRIGGER + : INITQ(SYSTEM.SAMPLE.TRIGGER) AMQ8006: MQSeries queue created.
You can then continue to enter additional commands, as required. When you have finished, type the end-of-file character, which in Tandem NSK is CTRL+Y, or exit. The queue manager then displays a summary report, for example:
3 MQSC commands read. 0 commands have a syntax error. 0 commands cannot be processed.
273
274
Error messages
If the command fails, there might be additional information about the problem in the error log.
This command verifies the MQSC commands in the input file and writes a report to the report file. The report contains the same information as is obtained when the commands are actually run, except that it does not contain any messages indicating the outcome of each command.
275
Summary of changes
276
If you omit the queue manager name, the default queue manager is used. The queue manager responds with output similar to the following:
5765-514 (C) Copyright IBM Corp. 1993,1999. ALL RIGHTS RESERVED Starting MQSeries Commands.
The plus sign indicates that the command is continued on the next line. When you press Enter, the queue manager confirms that the command has been carried out:
1: DEFINE QLOCAL(TEST) + : REPLACE + : DESCR('This is a test queue') + : TRIGGER + : INITQ(SYSTEM.SAMPLE.TRIGGER) AMQ8006: MQSeries queue created.
If you accidentally add a + to the end of a line on AIX, HP-UX, or Sun Solaris when you want to end a command, use the ; character to end the command.
277
Getting help
Man pages are provided for all the MQSC commands. In addition, when you are issuing commands interactively on AIX, HP-UX, or Sun Solaris, you can get help by entering command ? (where command is the name of the command you are interested in). MQSeries displays the syntax of the command. If you enter an invalid command, MQSeries displays the syntax of the command if it can determine what the command was or, alternatively displays a list of commands for you to select from.
278
Error messages
If the command fails, there might be additional information about the problem in the error log.
This command verifies the MQSC commands in the input file and writes a report to the report file. The report contains the same information as is obtained when the commands are actually run, except that it does not contain any messages indicating the outcome of each command.
279
Summary of changes
280
The plus sign indicates that the command is continued on the next line. When you press Enter, the queue manager confirms that the command has been carried out:
1: DEFINE QLOCAL(TEST) + : REPLACE + : DESCR('This is a test queue') + : TRIGGER + : INITQ(SYSTEM.SAMPLE.TRIGGER) AMQ8006: MQSeries queue created.
If you accidentally add a + to the end of a line when you want to end a command, use the ; character to end the command.
281
Getting help
When you are issuing commands interactively on Windows NT, you can get help by entering command ? (where command is the name of the command you are interested in). MQSeries displays the syntax of the command. If you enter an invalid command, MQSeries displays the syntax of the command if it can determine what the command was or, alternatively, displays a list of commands for you to select from.
282
Error messages
If the command fails, there might be additional information about the problem in the error log and system event log.
This command verifies the MQSC commands in the input file and writes a report to the report file. The report contains the same information as is obtained when the commands are actually run, except that it does not contain any messages indicating the outcome of each command.
283
Summary of changes
284
Appendix I. Notices
This information was developed for products and services offered in the United States. IBM may not offer the products, services, or features discussed in this information in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the users responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this information. The furnishing of this information does not give you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U.S.A. For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to: IBM World Trade Asia Corporation Licensing 2-31 Roppongi 3-chome, Minato-ku Tokyo 106, Japan The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the information. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this information at any time without notice. Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you.
285
Notices
Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact: IBM United Kingdom Laboratories, Mail Point 151, Hursley Park, Winchester, Hampshire, England SO21 2JN. Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee. The licensed program described in this information and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Programming License Agreement, or any equivalent agreement between us. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.
286
Notices
Trademarks
The following terms are trademarks of International Business Machines Corporation in the United States, or other countries, or both:
AIX AS/400 IMS OS/2 RACF CICS BookManager MQSeries OS/400 System/390 DB2 IBM MVS/ESA OS/390 VSE/ESA
Lotus Notes is a trademark of Lotus Development Corporation in the United States, or other countries, or both. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and/or other countries. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States and/or other countries. UNIX is a registered trademark in the United States and/or other countries licensed exclusively through X/Open Company Limited. Other company, product, or service names, may be the trademarks or service marks of others.
Appendix I. Notices
287
Summary of changes
288
archive log. See recovery log. ASID. Address space identifier. asynchronous messaging. A method of communication between programs in which programs place messages on message queues. With asynchronous messaging, the sending program proceeds with its own processing without waiting for a reply to its message. Contrast with synchronous messaging. attribute. One of a set of properties that defines the characteristics of an MQSeries object. authorization checks. Security checks that are performed when a user tries to issue administration commands against an object, for example to open a queue or connect to a queue manager. authorization file. In MQSeries on UNIX systems, a file that provides security definitions for an object, a class of objects, or all classes of objects. authorization service. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, a service that provides authority checking of commands and MQI calls for the user identifier associated with the command or call. authorized program analysis report (APAR). A report of a problem caused by a suspected defect in a current, unaltered release of a program.
B
backout. An operation that reverses all the changes made during the current unit of recovery or unit of
289
work. After the operation is complete, a new unit of recovery or unit of work begins. Contrast with commit. basic mapping support (BMS). An interface between CICS and application programs that formats input and output display data and routes multiple-page output messages without regard for control characters used by various terminals. BMS. Basic mapping support. bootstrap data set (BSDS). A VSAM data set that contains: v An inventory of all active and archived log data sets known to MQSeries for OS/390 v A wrap-around inventory of all recent MQSeries for OS/390 activity The BSDS is required if the MQSeries for OS/390 subsystem has to be restarted. browse. In message queuing, to use the MQGET call to copy a message without removing it from the queue. See also get. browse cursor. In message queuing, an indicator used when browsing a queue to identify the message that is next in sequence. BSDS. Bootstrap data set. buffer pool. An area of main storage used for MQSeries for OS/390 queues, messages, and object definitions. See also page set.
channel event. An event indicating that a channel instance has become available or unavailable. Channel events are generated on the queue managers at both ends of the channel. checkpoint. A time when significant information is written on the log. Contrast with syncpoint. In MQSeries on UNIX systems, the point in time when a data record described in the log is the same as the data record in the queue. Checkpoints are generated automatically and are used during the system restart process. CI. Control interval. circular logging. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, the process of keeping all restart data in a ring of log files. Logging fills the first file in the ring and then moves on to the next, until all the files are full. At this point, logging goes back to the first file in the ring and starts again, if the space has been freed or is no longer needed. Circular logging is used during restart recovery, using the log to roll back transactions that were in progress when the system stopped. Contrast with linear logging. CL. Control Language. client. A run-time component that provides access to queuing services on a server for local user applications. The queues used by the applications reside on the server. See also MQSeries client. client application. An application, running on a workstation and linked to a client, that gives the application access to queuing services on a server. client connection channel type. The type of MQI channel definition associated with an MQSeries client. See also server connection channel type. cluster. A network of queue managers that are logically associated in some way. coded character set identifier (CCSID). The name of a coded set of characters and their code point assignments. command. In MQSeries, an administration instruction that can be carried out by the queue manager. command prefix (CPF). In MQSeries for OS/390, a character string that identifies the queue manager to which MQSeries for OS/390 commands are directed, and from which MQSeries for OS/390 operator messages are received. command processor. The MQSeries component that processes commands.
C
call back. In MQSeries, a requester message channel initiates a transfer from a sender channel by first calling the sender, then closing down and awaiting a call back. CCF. Channel control function. CCSID. Coded character set identifier. CDF. Channel definition file. channel. See message channel. channel control function (CCF). In MQSeries, a program to move messages from a transmission queue to a communication link, and from a communication link to a local queue, together with an operator panel interface to allow the setup and control of channels. channel definition file (CDF). In MQSeries, a file containing communication channel definitions that associate transmission queues with communication links.
290
command server. The MQSeries component that reads commands from the system-command input queue, verifies them, and passes valid commands to the command processor. commit. An operation that applies all the changes made during the current unit of recovery or unit of work. After the operation is complete, a new unit of recovery or unit of work begins. Contrast with backout. completion code. A return code indicating how an MQI call has ended. configuration file. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, a file that contains configuration information related to, for example, logs, communications, or installable services. Synonymous with .ini file. See also stanza. connect. To provide a queue manager connection handle, which an application uses on subsequent MQI calls. The connection is made either by the MQCONN call, or automatically by the MQOPEN call. connection handle. The identifier or token by which a program accesses the queue manager to which it is connected. context. Information about the origin of a message. context security. In MQSeries, a method of allowing security to be handled such that messages are obliged to carry details of their origins in the message descriptor. control command. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, a command that can be entered interactively from the operating system command line. Such a command requires only that the MQSeries product be installed; it does not require a special utility or program to run it. control interval (CI). A fixed-length area of direct access storage in which VSAM stores records and creates distributed free spaces. The control interval is the unit of information that VSAM transmits to or from direct access storage. Control Language (CL). In MQSeries for AS/400, a language that can be used to issue commands, either at the command line or by writing a CL program. controlled shutdown. See quiesced shutdown. CPF. Command prefix.
programs that convert application data between different machine encodings and CCSIDs must conform. A part of the MQSeries Framework. datagram. The simplest message that MQSeries supports. This type of message does not require a reply. DCE. Distributed Computing Environment. DCI. Data conversion interface. dead-letter queue (DLQ). A queue to which a queue manager or application sends messages that it cannot deliver to their correct destination. dead-letter queue handler. An MQSeries-supplied utility that monitors a dead-letter queue (DLQ) and processes messages on the queue in accordance with a user-written rules table. default object. A definition of an object (for example, a queue) with all attributes defined. If a user defines an object but does not specify all possible attributes for that object, the queue manager uses default attributes in place of any that were not specified. deferred connection. A pending event that is activated when a CICS subsystem tries to connect to MQSeries for OS/390 before MQSeries for OS/390 has been started. distributed application. In message queuing, a set of application programs that can each be connected to a different queue manager, but that collectively constitute a single application. Distributed Computing Environment (DCE). Middleware that provides some basic services, making the development of distributed applications easier. DCE is defined by the Open Software Foundation (OSF). distributed queue management (DQM). In message queuing, the setup and control of message channels to queue managers on other systems. DLQ. Dead-letter queue. DQM. Distributed queue management. dual logging. A method of recording MQSeries for OS/390 activity, where each change is recorded on two data sets, so that if a restart is necessary and one data set is unreadable, the other can be used. Contrast with single logging. dual mode. See dual logging. dump analysis and elimination (DAE). An OS/390 service that enables an installation to suppress SVC dumps and ABEND SYSUDUMP dumps that are not needed because they duplicate previously written dumps.
D
DAE. Dump analysis and elimination. data conversion interface (DCI). The MQSeries interface to which customer- or vendor-written
291
dynamic queue. A local queue created when a program opens a model queue object. See also permanent dynamic queue and temporary dynamic queue.
first-in-first-out (FIFO). A queuing technique in which the next item to be retrieved is the item that has been in the queue for the longest time. (A) forced shutdown. A type of shutdown of the CICS adapter where the adapter immediately disconnects from MQSeries for OS/390, regardless of the state of any currently active tasks. Contrast with quiesced shutdown. Framework. In MQSeries, a collection of programming interfaces that allow customers or vendors to write programs that extend or replace certain functions provided in MQSeries products. The interfaces are: v MQSeries data conversion interface (DCI) v MQSeries message channel interface (MCI) v MQSeries name service interface (NSI) v MQSeries security enabling interface (SEI) v MQSeries trigger monitor interface (TMI) FRR. Functional recovery routine. functional recovery routine (FRR). An OS/390 recovery/termination manager facility that enables a recovery routine to gain control in the event of a program interrupt.
E
environment. See application environment. ESM. External security manager. ESTAE. Extended specify task abnormal exit. event. See channel event, instrumentation event, performance event, and queue manager event. event data. In an event message, the part of the message data that contains information about the event (such as the queue manager name, and the application that gave rise to the event). See also event header. event header. In an event message, the part of the message data that identifies the event type of the reason code for the event. event log. See application log. event message. Contains information (such as the category of event, the name of the application that caused the event, and queue manager statistics) relating to the origin of an instrumentation event in a network of MQSeries systems. event queue. The queue onto which the queue manager puts an event message after it detects an event. Each category of event (queue manager, performance, or channel event) has its own event queue. Event Viewer. A tool provided by Windows NT to examine and manage log files. extended specify task abnormal exit (ESTAE). An OS/390 macro that provides recovery capability and gives control to the specified exit routine for processing, diagnosing an abend, or specifying a retry address. external security manager (ESM). A security product that is invoked by the OS/390 System Authorization Facility. RACF is an example of an ESM.
G
GCPC. Generalized command preprocessor. generalized command preprocessor (GCPC). An MQSeries for OS/390 component that processes MQSeries commands and runs them. Generalized Trace Facility (GTF). An OS/390 service program that records significant system events, such as supervisor calls and start I/O operations, for the purpose of problem determination. get. In message queuing, to use the MQGET call to remove a message from a queue. See also browse. global trace. An MQSeries for OS/390 trace option where the trace data comes from the entire MQSeries for OS/390 subsystem. GTF. Generalized Trace Facility.
F
FFST. First Failure Support Technology. FIFO. First-in-first-out. First Failure Support Technology (FFST). Used by MQSeries on UNIX systems, MQSeries for OS/2 Warp, MQSeries for Windows NT, and MQSeries for AS/400 to detect and report software problems.
H
handle. See connection handle and object handle. hardened message. A message that is written to auxiliary (disk) storage so that the message will not be lost in the event of a system failure. See also persistent message.
292
I
ILE. Integrated Language Environment. immediate shutdown. In MQSeries, a shutdown of a queue manager that does not wait for applications to disconnect. Current MQI calls are allowed to complete, but new MQI calls fail after an immediate shutdown has been requested. Contrast with quiesced shutdown and preemptive shutdown. in-doubt unit of recovery. In MQSeries, the status of a unit of recovery for which a syncpoint has been requested but not yet confirmed. Integrated Language Environment (ILE). The AS/400 Integrated Language Environment. This replaces the AS/400 Original Program Model (OPM). .ini file. See configuration file. initialization input data sets. Data sets used by MQSeries for OS/390 when it starts up. initiation queue. A local queue on which the queue manager puts trigger messages. input/output parameter. A parameter of an MQI call in which you supply information when you make the call, and in which the queue manager changes the information when the call completes or fails. input parameter. A parameter of an MQI call in which you supply information when you make the call. installable services. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, additional functionality provided as independent components. The installation of each component is optional: in-house or third-party components can be used instead. See also authorization service, name service, and user identifier service. instrumentation event. A facility that can be used to monitor the operation of queue managers in a network of MQSeries systems. MQSeries provides instrumentation events for monitoring queue manager resource definitions, performance conditions, and channel conditions. Instrumentation events can be used by a user-written reporting mechanism in an administration application that displays the events to a system operator. They also allow applications acting as agents for other administration networks to monitor reports and create the appropriate alerts. Interactive Problem Control System (IPCS). A component of OS/390 that permits online problem management, interactive problem diagnosis, online debugging for disk-resident abend dumps, problem tracking, and problem reporting. Interactive System Productivity Facility (ISPF). An IBM licensed program that serves as a full-screen editor
and dialog manager. It is used for writing application programs, and provides a means of generating standard screen panels and interactive dialogues between the application programmer and terminal user. IPCS. Interactive Problem Control System. ISPF. Interactive System Productivity Facility.
L
linear logging. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, the process of keeping restart data in a sequence of files. New files are added to the sequence as necessary. The space in which the data is written is not reused until the queue manager is restarted. Contrast with circular logging. listener. In MQSeries distributed queuing, a program that monitors for incoming network connections. local definition. An MQSeries object belonging to a local queue manager. local definition of a remote queue. An MQSeries object belonging to a local queue manager. This object defines the attributes of a queue that is owned by another queue manager. In addition, it is used for queue-manager aliasing and reply-to-queue aliasing. locale. On UNIX systems, a subset of a users environment that defines conventions for a specific culture (such as time, numeric, or monetary formatting and character classification, collation, or conversion). The queue manager CCSID is derived from the locale of the user ID that created the queue manager. local queue. A queue that belongs to the local queue manager. A local queue can contain a list of messages waiting to be processed. Contrast with remote queue. local queue manager. The queue manager to which a program is connected and that provides message queuing services to the program. Queue managers to which a program is not connected are called remote queue managers, even if they are running on the same system as the program. log. In MQSeries, a file recording the work done by queue managers while they receive, transmit, and deliver messages, to enable them to recover in the event of failure. log control file. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, the file containing information needed to monitor the use of log files (for example, their size and location, and the name of the next available file). log file. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, a file in which all significant changes to the data controlled by a
Glossary of terms and abbreviations
293
queue manager are recorded. If the primary log files become full, MQSeries allocates secondary log files. logical unit of work (LUW). See unit of work.
message queuing. A programming technique in which each program within an application communicates with the other programs by putting messages on queues. message sequence numbering. A programming technique in which messages are given unique numbers during transmission over a communication link. This enables the receiving process to check whether all messages are received, to place them in a queue in the original order, and to discard duplicate messages. messaging. See synchronous messaging and asynchronous messaging. model queue object. A set of queue attributes that act as a template when a program creates a dynamic queue. MQAI. MQSeries Administration Interface. MQI. Message queue interface. MQI channel. Connects an MQSeries client to a queue manager on a server system, and transfers only MQI calls and responses in a bidirectional manner. Contrast with message channel. MQSC. MQSeries commands. MQSeries. A family of IBM licensed programs that provides message queuing services. MQSeries Administration Interface (MQAI). A programming interface to MQSeries. MQSeries client. Part of an MQSeries product that can be installed on a system without installing the full queue manager. The MQSeries client accepts MQI calls from applications and communicates with a queue manager on a server system. MQSeries commands (MQSC). Human readable commands, uniform across all platforms, that are used to manipulate MQSeries objects. Contrast with programmable command format (PCF).
M
machine check interrupt. An interruption that occurs as a result of an equipment malfunction or error. A machine check interrupt can be either hardware recoverable, software recoverable, or nonrecoverable. MCA. Message channel agent. MCI. Message channel interface. media image. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, the sequence of log records that contain an image of an object. The object can be recreated from this image. message. In message queuing applications, a communication sent between programs. See also persistent message and nonpersistent message. In system programming, information intended for the terminal operator or system administrator. message channel. In distributed message queuing, a mechanism for moving messages from one queue manager to another. A message channel comprises two message channel agents (a sender at one end and a receiver at the other end) and a communication link. Contrast with MQI channel. message channel agent (MCA). A program that transmits prepared messages from a transmission queue to a communication link, or from a communication link to a destination queue. See also message queue interface. message channel interface (MCI). The MQSeries interface to which customer- or vendor-written programs that transmit messages between an MQSeries queue manager and another messaging system must conform. A part of the MQSeries Framework. message descriptor. Control information describing the message format and presentation that is carried as part of an MQSeries message. The format of the message descriptor is defined by the MQMD structure. message priority. In MQSeries, an attribute of a message that can affect the order in which messages on a queue are retrieved, and whether a trigger event is generated. message queue. Synonym for queue. message queue interface (MQI). The programming interface provided by the MQSeries queue managers. This programming interface allows application programs to access message queuing services.
N
namelist. An MQSeries object that contains a list of names, for example, queue names. name service. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, the facility that determines which queue manager owns a specified queue. name service interface (NSI). The MQSeries interface to which customer- or vendor-written programs that resolve queue-name ownership must conform. A part of the MQSeries Framework. name transformation. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows
294
NT, an internal process that changes a queue manager name so that it is unique and valid for the system being used. Externally, the queue manager name remains unchanged. New Technology File System (NTFS). A Windows NT recoverable file system that provides security for files. nonpersistent message. A message that does not survive a restart of the queue manager. Contrast with persistent message. NSI. Name service interface. NTFS. New Technology File System. null character. The character that is represented by X'00'.
P
page set. A VSAM data set used when MQSeries for OS/390 moves data (for example, queues and messages) from buffers in main storage to permanent backing storage (DASD). PCF. Programmable command format. PCF command. See programmable command format. pending event. An unscheduled event that occurs as a result of a connect request from a CICS adapter. percolation. In error recovery, the passing along a preestablished path of control from a recovery routine to a higher-level recovery routine. performance event. A category of event indicating that a limit condition has occurred. performance trace. An MQSeries trace option where the trace data is to be used for performance analysis and tuning. permanent dynamic queue. A dynamic queue that is deleted when it is closed only if deletion is explicitly requested. Permanent dynamic queues are recovered if the queue manager fails, so they can contain persistent messages. Contrast with temporary dynamic queue. persistent message. A message that survives a restart of the queue manager. Contrast with nonpersistent message. ping. In distributed queuing, a diagnostic aid that uses the exchange of a test message to confirm that a message channel or a TCP/IP connection is functioning. platform. In MQSeries, the operating system under which a queue manager is running. point of recovery. In MQSeries for OS/390, the term used to describe a set of backup copies of MQSeries for OS/390 page sets and the corresponding log data sets required to recover these page sets. These backup copies provide a potential restart point in the event of page set loss (for example, page set I/O error). preemptive shutdown. In MQSeries, a shutdown of a queue manager that does not wait for connected applications to disconnect, nor for current MQI calls to complete. Contrast with immediate shutdown and quiesced shutdown. principal. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, a term used for a user identifier. Used by the object authority manager for checking authorizations to system resources.
O
OAM. Object authority manager. object. In MQSeries, an object is a queue manager, a queue, a process definition, a channel, a namelist, or a storage class (OS/390 only).
| | | | | |
object authority manager (OAM). In MQSeries on UNIX systems, MQSeries for AS/400, and MQSeries for Windows NT, the default authorization service for command and object management. The OAM can be replaced by, or run in combination with, a customer-supplied security service. object descriptor. A data structure that identifies a particular MQSeries object. Included in the descriptor are the name of the object and the object type. object handle. The identifier or token by which a program accesses the MQSeries object with which it is working. off-loading. In MQSeries for OS/390, an automatic process whereby a queue managers active log is transferred to its archive log. OPM. Original Program Model. Original Program Model (OPM). The AS/400 Original Program Model. This is no longer supported on MQSeries. It is replaced by the Integrated Language Environment (ILE). OTMA. Open Transaction Manager Access. output log-buffer. In MQSeries for OS/390, a buffer that holds recovery log records before they are written to the archive log. output parameter. A parameter of an MQI call in which the queue manager returns information when the call completes or fails.
295
process definition object. An MQSeries object that contains the definition of an MQSeries application. For example, a queue manager uses the definition when it works with trigger messages. programmable command format (PCF). A type of MQSeries message used by: v User administration applications, to put PCF commands onto the system command input queue of a specified queue manager v User administration applications, to get the results of a PCF command from a specified queue manager v A queue manager, as a notification that an event has occurred Contrast with MQSC. program temporary fix (PTF). A solution or by-pass of a problem diagnosed by IBM field engineering as the result of a defect in a current, unaltered release of a program. PTF. Program temporary fix.
quiescing. In MQSeries, the state of a queue manager prior to it being stopped. In this state, programs are allowed to finish processing, but no new programs are allowed to start.
R
RBA. Relative byte address. reason code. A return code that describes the reason for the failure or partial success of an MQI call. receiver channel. In message queuing, a channel that responds to a sender channel, takes messages from a communication link, and puts them on a local queue. recovery log. In MQSeries for OS/390, data sets containing information needed to recover messages, queues, and the MQSeries subsystem. MQSeries for OS/390 writes each record to a data set called the active log. When the active log is full, its contents are off-loaded to a DASD or tape data set called the archive log. Synonymous with log. recovery termination manager (RTM). A program that handles all normal and abnormal termination of tasks by passing control to a recovery routine associated with the terminating function. Registry. In Windows NT, a secure database that provides a single source for system and application configuration data. Registry Editor. In Windows NT, the program item that allows the user to edit the Registry. Registry Hive. In Windows NT, the structure of the data stored in the Registry. relative byte address (RBA). The displacement in bytes of a stored record or control interval from the beginning of the storage space allocated to the data set to which it belongs. remote queue. A queue belonging to a remote queue manager. Programs can put messages on remote queues, but they cannot get messages from remote queues. Contrast with local queue. remote queue manager. To a program, a queue manager that is not the one to which the program is connected. remote queue object. See local definition of a remote queue. remote queuing. In message queuing, the provision of services to enable applications to put messages on queues belonging to other queue managers. reply message. A type of message used for replies to request messages. Contrast with request message and report message.
Q
queue. An MQSeries object. Message queuing applications can put messages on, and get messages from, a queue. A queue is owned and maintained by a queue manager. Local queues can contain a list of messages waiting to be processed. Queues of other types cannot contain messagesthey point to other queues, or can be used as models for dynamic queues. queue manager. A system program that provides queuing services to applications. It provides an application programming interface so that programs can access messages on the queues that the queue manager owns. See also local queue manager and remote queue manager. An MQSeries object that defines the attributes of a particular queue manager. queue manager event. An event that indicates: v An error condition has occurred in relation to the resources used by a queue manager. For example, a queue is unavailable. v A significant change has occurred in the queue manager. For example, a queue manager has stopped or started. queuing. See message queuing. quiesced shutdown. In MQSeries, a shutdown of a queue manager that allows all connected applications to disconnect. Contrast with immediate shutdown and preemptive shutdown. A type of shutdown of the CICS adapter where the adapter disconnects from MQSeries, but only after all the currently active tasks have been completed. Contrast with forced shutdown.
296
reply-to queue. The name of a queue to which the program that issued an MQPUT call wants a reply message or report message sent. report message. A type of message that gives information about another message. A report message can indicate that a message has been delivered, has arrived at its destination, has expired, or could not be processed for some reason. Contrast with reply message and request message. requester channel. In message queuing, a channel that may be started remotely by a sender channel. The requester channel accepts messages from the sender channel over a communication link and puts the messages on the local queue designated in the message. See also server channel. request message. A type of message used to request a reply from another program. Contrast with reply message and report message. RESLEVEL. In MQSeries for OS/390, an option that controls the number of CICS user IDs checked for API-resource security in MQSeries for OS/390. resolution path. The set of queues that are opened when an application specifies an alias or a remote queue on input to an MQOPEN call. resource. Any facility of the computing system or operating system required by a job or task. In MQSeries for OS/390, examples of resources are buffer pools, page sets, log data sets, queues, and messages. resource manager. An application, program, or transaction that manages and controls access to shared resources such as memory buffers and data sets. MQSeries, CICS, and IMS are resource managers. Resource Recovery Services (RRS). An OS/390 facility that provides 2-phase syncpoint support across participating resource managers. responder. In distributed queuing, a program that replies to network connection requests from another system. resynch. In MQSeries, an option to direct a channel to start up and resolve any in-doubt status messages, but without restarting message transfer. return codes. The collective name for completion codes and reason codes. rollback. Synonym for back out. RRS. Resource Recovery Services. RTM. Recovery termination manager. rules table. A control file containing one or more rules that the dead-letter queue handler applies to messages on the DLQ.
S
SAF. System Authorization Facility. SDWA. System diagnostic work area. security enabling interface (SEI). The MQSeries interface to which customer- or vendor-written programs that check authorization, supply a user identifier, or perform authentication must conform. A part of the MQSeries Framework. SEI. Security enabling interface. sender channel. In message queuing, a channel that initiates transfers, removes messages from a transmission queue, and moves them over a communication link to a receiver or requester channel. sequential delivery. In MQSeries, a method of transmitting messages with a sequence number so that the receiving channel can reestablish the message sequence when storing the messages. This is required where messages must be delivered only once, and in the correct order. sequential number wrap value. In MQSeries, a method of ensuring that both ends of a communication link reset their current message sequence numbers at the same time. Transmitting messages with a sequence number ensures that the receiving channel can reestablish the message sequence when storing the messages. server. (1) In MQSeries, a queue manager that provides queue services to client applications running on a remote workstation. (2) The program that responds to requests for information in the particular two-program, information-flow model of client/server. See also client. server channel. In message queuing, a channel that responds to a requester channel, removes messages from a transmission queue, and moves them over a communication link to the requester channel. server connection channel type. The type of MQI channel definition associated with the server that runs a queue manager. See also client connection channel type. service interval. A time interval, against which the elapsed time between a put or a get and a subsequent get is compared by the queue manager in deciding whether the conditions for a service interval event have been met. The service interval for a queue is specified by a queue attribute. service interval event. An event related to the service interval. session ID. In MQSeries for OS/390, the CICS-unique identifier that defines the communication link to be
297
used by a message channel agent when moving messages from a transmission queue to a link. shutdown. See immediate shutdown, preemptive shutdown, and quiesced shutdown. signaling. In MQSeries for OS/390 and MQSeries for Windows 2.1, a feature that allows the operating system to notify a program when an expected message arrives on a queue. single logging. A method of recording MQSeries for OS/390 activity where each change is recorded on one data set only. Contrast with dual logging. single-phase backout. A method in which an action in progress must not be allowed to finish, and all changes that are part of that action must be undone. single-phase commit. A method in which a program can commit updates to a queue without coordinating those updates with updates the program has made to resources controlled by another resource manager. Contrast with two-phase commit. SIT. System initialization table. stanza. A group of lines in a configuration file that assigns a value to a parameter modifying the behavior of a queue manager, client, or channel. In MQSeries on UNIX systems, MQSeries for OS/2 Warp, and MQSeries for Windows NT, a configuration (.ini) file may contain a number of stanzas. storage class. In MQSeries for OS/390, a storage class defines the page set that is to hold the messages for a particular queue. The storage class is specified when the queue is defined. store and forward. The temporary storing of packets, messages, or frames in a data network before they are retransmitted toward their destination. subsystem. In OS/390, a group of modules that provides function that is dependent on OS/390. For example, MQSeries for OS/390 is an OS/390 subsystem. supervisor call (SVC). An OS/390 instruction that interrupts a running program and passes control to the supervisor so that it can perform the specific service indicated by the instruction. SVC. Supervisor call. switch profile. In MQSeries for OS/390, a RACF profile used when MQSeries starts up or when a refresh security command is issued. Each switch profile that MQSeries detects turns off checking for the specified resource. symptom string. Diagnostic information displayed in a structured format designed for searching the IBM software support database.
synchronous messaging. A method of communication between programs in which programs place messages on message queues. With synchronous messaging, the sending program waits for a reply to its message before resuming its own processing. Contrast with asynchronous messaging. syncpoint. An intermediate or end point during processing of a transaction at which the transactions protected resources are consistent. At a syncpoint, changes to the resources can safely be committed, or they can be backed out to the previous syncpoint. System Authorization Facility (SAF). An OS/390 facility through which MQSeries for OS/390 communicates with an external security manager such as RACF. system.command.input queue. A local queue on which application programs can put MQSeries commands. The commands are retrieved from the queue by the command server, which validates them and passes them to the command processor to be run. system control commands. Commands used to manipulate platform-specific entities such as buffer pools, storage classes, and page sets. system diagnostic work area (SDWA). Data recorded in a SYS1.LOGREC entry, which describes a program or hardware error. system initialization table (SIT). A table containing parameters used by CICS on start up. SYS1.LOGREC. A service aid containing information about program and hardware errors.
T
TACL. Tandem Advanced Command Language. target library high-level qualifier (thlqual). High-level qualifier for OS/390 target data set names. task control block (TCB). An OS/390 control block used to communicate information about tasks within an address space that are connected to an OS/390 subsystem such as MQSeries for OS/390 or CICS. task switching. The overlapping of I/O operations and processing between several tasks. In MQSeries for OS/390, the task switcher optimizes performance by allowing some MQI calls to be executed under subtasks rather than under the main CICS TCB. TCB. Task control block. temporary dynamic queue. A dynamic queue that is deleted when it is closed. Temporary dynamic queues are not recovered if the queue manager fails, so they can contain nonpersistent messages only. Contrast with permanent dynamic queue.
298
termination notification. A pending event that is activated when a CICS subsystem successfully connects to MQSeries for OS/390. thlqual. Target library high-level qualifier. thread. In MQSeries, the lowest level of parallel execution available on an operating system platform. time-independent messaging. See asynchronous messaging. TMI. Trigger monitor interface. trace. In MQSeries, a facility for recording MQSeries activity. The destinations for trace entries can include GTF and the system management facility (SMF). See also global trace and performance trace. tranid. See transaction identifier. transaction identifier. In CICS, a name that is specified when the transaction is defined, and that is used to invoke the transaction. transmission program. See message channel agent. transmission queue. A local queue on which prepared messages destined for a remote queue manager are temporarily stored. trigger event. An event (such as a message arriving on a queue) that causes a queue manager to create a trigger message on an initiation queue. triggering. In MQSeries, a facility allowing a queue manager to start an application automatically when predetermined conditions on a queue are satisfied. trigger message. A message containing information about the program that a trigger monitor is to start. trigger monitor. A continuously-running application serving one or more initiation queues. When a trigger message arrives on an initiation queue, the trigger monitor retrieves the message. It uses the information in the trigger message to start a process that serves the queue on which a trigger event occurred. trigger monitor interface (TMI). The MQSeries interface to which customer- or vendor-written trigger monitor programs must conform. A part of the MQSeries Framework. two-phase commit. A protocol for the coordination of changes to recoverable resources when more than one resource manager is used by a single transaction. Contrast with single-phase commit.
U
UIS. User identifier service. undelivered-message queue. See dead-letter queue. undo/redo record. A log record used in recovery. The redo part of the record describes a change to be made to an MQSeries object. The undo part describes how to back out the change if the work is not committed. unit of recovery. A recoverable sequence of operations within a single resource manager. Contrast with unit of work. unit of work. A recoverable sequence of operations performed by an application between two points of consistency. A unit of work begins when a transaction starts or after a user-requested syncpoint. It ends either at a user-requested syncpoint or at the end of a transaction. Contrast with unit of recovery. user identifier service (UIS). In MQSeries for OS/2 Warp, the facility that allows MQI applications to associate a user ID, other than the default user ID, with MQSeries messages. utility. In MQSeries, a supplied set of programs that provide the system operator or system administrator with facilities in addition to those provided by the MQSeries commands. Some utilities invoke more than one function.
299
300
Bibliography
This section describes the documentation available for all current MQSeries products. storage requirements, backup and recovery, security, and migration from earlier releases, and specifies hardware and software requirements for every MQSeries platform. MQSeries Intercommunication The MQSeries Intercommunication book, SC33-1872, defines the concepts of distributed queuing and explains how to set up a distributed queuing network in a variety of MQSeries environments. In particular, it demonstrates how to (1) configure communications to and from a representative sample of MQSeries products, (2) create required MQSeries objects, and (3) create and configure MQSeries channels. The use of channel exits is also described. MQSeries Queue Manager Clusters MQSeries Queue Manager Clusters, SC34-5349, describes MQSeries clustering. It explains the concepts and terminology and shows how you can benefit by taking advantage of clustering. It details changes to the MQI, and summarizes the syntax of new and changed MQSeries commands. It shows a number of examples of tasks you can perform to set up and maintain clusters of queue managers. This book applies to the following MQSeries products only: v MQSeries for AIX V5.1 v MQSeries for AS/400 V5.1 v MQSeries for HP-UX V5.1 v MQSeries for OS/2 Warp V5.1 v MQSeries for OS/390 V2.1 v MQSeries for Sun Solaris V5.1 v MQSeries for Windows NT V5.1 MQSeries Clients The MQSeries Clients book, GC33-1632, describes how to install, configure, use, and manage MQSeries client systems. MQSeries System Administration The MQSeries System Administration book, SC33-1873, supports day-to-day management of local and remote MQSeries objects. It includes topics such as security, recovery and restart, transactional support, problem
| | | | |
301
determination, and the dead-letter queue handler. It also includes the syntax of the MQSeries control commands. This book applies to the following MQSeries products only: v MQSeries for AIX, V5.1 v MQSeries for HP-UX, V5.1 v MQSeries for OS/2 Warp, V5.1 v MQSeries for Sun Solaris, V5.1 v MQSeries for Windows NT, V5.1 MQSeries Command Reference The MQSeries Command Reference, SC33-1369, contains the syntax of the MQSC commands, which are used by MQSeries system operators and administrators to manage MQSeries objects. MQSeries Programmable System Management The MQSeries Programmable System Management book, SC33-1482, provides both reference and guidance information for users of MQSeries events, Programmable Command Format (PCF) messages, and installable services. MQSeries Administration Interface Programming Guide and Reference The MQSeries Administration Interface Programming Guide and Reference, SC34-5390, provides information for users of the MQAI. The MQAI is a programming interface that simplifies the way in which applications manipulate Programmable Command Format (PCF) messages and their associated data structures. This book applies to the following MQSeries products only: v MQSeries for AIX V5.1 v MQSeries for AS/400 V5.1 v MQSeries for HP-UX V5.1 v MQSeries for OS/2 Warp V5.1 v MQSeries for Sun Solaris V5.1 v MQSeries for Windows NT V5.1 MQSeries Messages The MQSeries Messages book, GC33-1876, which describes AMQ messages issued by MQSeries, applies to these MQSeries products only: v MQSeries for AIX, V5.1 v MQSeries for HP-UX, V5.1 v MQSeries for OS/2 Warp, V5.1 v MQSeries for Sun Solaris, V5.1 v MQSeries for Windows NT, V5.1
v MQSeries for Windows V2.0 v MQSeries for Windows V2.1 This book is available in softcopy only. For other MQSeries platforms, the messages are supplied with the system. They do not appear in softcopy manual form. MQSeries Application Programming Guide The MQSeries Application Programming Guide, SC33-0807, provides guidance information for users of the message queue interface (MQI). It describes how to design, write, and build an MQSeries application. It also includes full descriptions of the sample programs supplied with MQSeries. MQSeries Application Programming Reference The MQSeries Application Programming Reference, SC33-1673, provides comprehensive reference information for users of the MQI. It includes: data-type descriptions; MQI call syntax; attributes of MQSeries objects; return codes; constants; and code-page conversion tables. MQSeries Application Programming Reference Summary The MQSeries Application Programming Reference Summary, SX33-6095, summarizes the information in the MQSeries Application Programming Reference manual. MQSeries Using C++ MQSeries Using C++, SC33-1877, provides both guidance and reference information for users of the MQSeries C++ programming-language binding to the MQI. MQSeries C++ is supported by these MQSeries products: v MQSeries for AIX, V5.1 v MQSeries for HP-UX, V5.1 v MQSeries for OS/2 Warp, V5.1 v MQSeries for AS/400, V5.1 v MQSeries for OS/390, V2.1 v MQSeries for Sun Solaris, V5.1 v MQSeries for Windows NT, V5.1 MQSeries C++ is also supported by MQSeries clients supplied with these products and installed in the following environments: v AIX v HP-UX
302
v v v v v
MQSeries for HP-UX, V5.1 Quick Beginnings, GC33-1869 MQSeries for OS/2 Warp MQSeries for OS/2 Warp, V5.1 Quick Beginnings, GC33-1868 MQSeries for OS/390 MQSeries for OS/390 Version 2 Release 1 Licensed Program Specifications, GC34-5377 MQSeries for OS/390 Version 2 Release 1 Program Directory MQSeries for OS/390 System Management Guide, SC34-5374 MQSeries for OS/390 Messages and Codes, GC34-5375 MQSeries for OS/390 Problem Determination Guide, GC34-5376 MQSeries link for R/3 MQSeries link for R/3 Version 1.2 Users Guide, GC33-1934 MQSeries for SINIX and DC/OSx MQSeries for SINIX and DC/OSx System Management Guide, GC33-1768 MQSeries for Sun Solaris MQSeries for Sun Solaris, V5.1 Quick Beginnings, GC33-1870 MQSeries for Tandem NonStop Kernel | MQSeries for Tandem NonStop Kernel | System Management Guide, GC33-1893 MQSeries for VSE/ESA MQSeries for VSE/ESA Version 2 Release 1 Licensed Program Specifications, GC34-5365 MQSeries for VSE/ESA System Management Guide, GC34-5364 MQSeries for Windows MQSeries for Windows V2.0 Users Guide, GC33-1822 MQSeries for Windows V2.1 Users Guide, GC33-1965 MQSeries for Windows NT MQSeries for Windows NT, V5.1 Quick Beginnings, GC34-5389 MQSeries for Windows NT Using the Component Object Model Interface, SC34-5387
MQSeries Using Java MQSeries Using Java, SC34-5456, provides both guidance and reference information for users of the MQSeries Bindings for Java and the MQSeries Client for Java. MQSeries classes for Java are supported by these MQSeries products: v MQSeries for AIX, V5.1 | v MQSeries for AS/400, V5.1 v MQSeries for HP-UX, V5.1 | v MQSeries for MVS/ESA V1.2 v MQSeries for OS/2 Warp, V5.1 v MQSeries for Sun Solaris, V5.1 v MQSeries for Windows NT, V5.1 | This book is available in softcopy only.
Bibliography
303
Softcopy books
Most of the MQSeries books are supplied in both hardcopy and softcopy formats.
v v v v v
for HP-UX, V5.1 for OS/2 Warp, V5.1 for Sun Solaris, V5.1 for Windows NT, V5.1 link for R/3 V1.2
BookManager format
The MQSeries library is supplied in IBM BookManager format on a variety of online library collection kits, including the Transaction Processing and Data collection kit, SK2T-0730. You can view the softcopy books in IBM BookManager format using the following IBM licensed programs: BookManager READ/2 BookManager READ/6000 BookManager READ/DOS BookManager READ/MVS BookManager READ/VM BookManager READ for Windows
PDF versions of all current MQSeries books are also available from the MQSeries product family Web site at:
http://www.ibm.com/software/ts/mqseries/
PostScript format
The MQSeries library is provided in PostScript (.PS) format with many MQSeries Version 2 products. Books in PostScript format can be printed on a PostScript printer or viewed with a suitable viewer.
HTML format
Relevant MQSeries documentation is provided in HTML format with these MQSeries products: v MQSeries for AIX, V5.1 v MQSeries for AS/400, V5.1 v MQSeries for HP-UX, V5.1 v MQSeries for OS/2 Warp, V5.1 v MQSeries for Sun Solaris, V5.1 v MQSeries for Windows NT, V5.1 (compiled HTML) v MQSeries link for R/3 V1.2 The MQSeries books are also available in HTML format from the MQSeries product family Web site at:
http://www.ibm.com/software/ts/mqseries/
By following links from this Web site you can: v Obtain latest information about the MQSeries product family. v Access the MQSeries books in HTML and PDF formats. v Download MQSeries SupportPacs.
PDF versions of relevant MQSeries books are supplied with these MQSeries products: v MQSeries for AIX, V5.1 v MQSeries for AS/400, V5.1
304
Index A
ACTION attribute RESET CLUSTER 226 RESET TPIPE 227 RESOLVE CHANNEL 229 RESOLVE INDOUBT 231 active thread, display 214 active trace, display list of 216 administrator commands 254 alias queue alter attributes 47 define 129 delete definition 166 display attributes 197 ALL attribute DISPLAY CHANNEL 173 DISPLAY CHSTATUS 180 DISPLAY CLUSQMGR 185 DISPLAY NAMELIST 193 DISPLAY PROCESS 195 DISPLAY QMGR 207 DISPLAY QUEUE 199 DISPLAY SECURITY 211 DISPLAY STGCLASS 212 ALTDATE attribute DISPLAY CHANNEL 173 DISPLAY CLUSQMGR 187 DISPLAY NAMELIST 193 DISPLAY PROCESS 196 DISPLAY QMGR 207 DISPLAY QUEUE 202 DISPLAY STGCLASS 213 ALTER CHANNEL command 14 ALTER NAMELIST command 43 ALTER PROCESS command 44 ALTER QALIAS command 47 ALTER QLOCAL command 51 ALTER QMGR command 62 ALTER QMODEL command 68 ALTER QREMOTE command 77 ALTER SECURITY command 81 ALTER STGCLASS command 82 ALTER TRACE command 84 ALTTIME attribute DISPLAY CHANNEL 173 DISPLAY CLUSQMGR 187 DISPLAY NAMELIST 194 DISPLAY PROCESS 196 DISPLAY QMGR 207 DISPLAY QUEUE 202 DISPLAY STGCLASS 213 APPLICID attribute ALTER PROCESS 44 DEFINE PROCESS 125 DISPLAY PROCESS 196 APPLTYPE attribute ALTER PROCESS 44 DEFINE PROCESS 125 DISPLAY PROCESS 196 ARCHIVE LOG command 86 Copyright IBM Corp. 1993, 2000 AUTHOREV attribute ALTER QMGR 63 DISPLAY QMGR 207 auto-definition exit program 63, 207 auto-definition of channels 63, 207 AUTOSTART attribute ALTER CHANNEL 28 DEFINE CHANNEL 105 DISPLAY CHANNEL 173
C
CCSID attribute ALTER QMGR 63 DISPLAY QMGR 207 CHAD attribute ALTER QMGR 63 DISPLAY QMGR 207 CHADEV attribute ALTER QMGR 64 DISPLAY QMGR 207 CHADEXIT attribute ALTER QMGR 64 DISPLAY QMGR 208 channel alter attributes 14 auto-definition 63, 207 commands 257 define attributes 90 delete definition 163 display 171 ping 220 reset 225 resolve 229 start 234 start initiator 235 start listener 238 stop 245 CHANNEL attribute, DISPLAY CLUSQMGR 185 channel initiator start 235 stop 247 channel status, displaying 176 channels, rules for names of 6 CHLTYPE attribute ALTER CHANNEL 29 DEFINE CHANNEL 106 DISPLAY CHANNEL 174 CHSTADA attribute, DISPLAY CHSTATUS 182 CHSTATI attribute, DISPLAY CHSTATUS 182 CLASS attribute ALTER TRACE 84 DISPLAY TRACE 217 START TRACE 243 STOP TRACE 252 CLEAR QLOCAL command 88 CLUSDATE attribute DISPLAY CLUSQMGR 186 DISPLAY QUEUE 202 CLUSINFO attribute, DISPLAY QUEUE 199 CLUSNL attribute ALTER CHANNEL 29 ALTER QALIAS 48 ALTER QLOCAL 54 ALTER QREMOTE 79 DEFINE CHANNEL 107 DEFINE QALIAS 131 DEFINE QLOCAL 137
B
backing up the log 86 BATCHES attribute DISPLAY CHSTATUS 182 BATCHINT attribute ALTER CHANNEL 28 DEFINE CHANNEL 106 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 BATCHSZ attribute ALTER CHANNEL 28 DEFINE CHANNEL 106 DISPLAY CHANNEL 174 DISPLAY CHSTATUS 182 DISPLAY CLUSQMGR 187 bibliography 301 BookManager 304 bootstrap data set, recover 222 BOQNAME attribute ALTER QLOCAL 53 ALTER QMODEL 70 DEFINE QLOCAL 137 DEFINE QMODEL 148 DISPLAY QUEUE 202 BOTHRESH attribute ALTER QLOCAL 53 ALTER QMODEL 70 DEFINE QLOCAL 137 DEFINE QMODEL 148 DISPLAY QUEUE 202 BSDS, recover 222 buffer pool, defining 89 BUFFERS attribute, DEFINE BUFFPOOL 89 BUFFPOOL attribute, DEFINE PSID 128 BUFSRCVD attribute, DISPLAY CHSTATUS 182 BUFSSENT attribute, DISPLAY CHSTATUS 182 building command scripts 3 building commands characters with special meanings 2 rules for 1 BYTSRCVD attribute, DISPLAY CHSTATUS 182 BYTSSENT attribute, DISPLAY CHSTATUS 182
305
CLUSNL attribute (continued) DEFINE QREMOTE 157 DISPLAY CHANNEL 174 DISPLAY QUEUE 199, 202 RESUME QMGR 232 SUSPEND QMGR 254 CLUSQMGR attribute, DISPLAY QUEUE 202 CLUSQT attribute, DISPLAY QUEUE 202 cluster commands 258 refresh 223 reset 226 CLUSTER attribute ALTER CHANNEL 29 ALTER QALIAS 48 ALTER QLOCAL 53 ALTER QREMOTE 79 DEFINE CHANNEL 107 DEFINE QALIAS 131 DEFINE QLOCAL 137 DEFINE QREMOTE 157 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 186 DISPLAY QUEUE 199, 202 RESUME QMGR 232 SUSPEND QMGR 254 cluster queue manager, display 184 clusters, rules for names of 6 CLUSTIME attribute DISPLAY CLUSQMGR 186 DISPLAY QUEUE 202 CLWLDATA attribute ALTER QMGR 64 DISPLAY QMGR 208 CLWLEXIT attribute ALTER QMGR 64 DISPLAY QMGR 208 CLWLLEN attribute ALTER QMGR 65 DISPLAY QMGR 208 CMDLEVEL attribute, DISPLAY QMGR 208 coded character set identifier 63 command summary 255 command prefix string 269 command scripts, building 3 command server display status 190 start 237 stop 248 command string entering quotes 2 preserving case 2 COMMANDQ attribute, DISPLAY QMGR 208 commands 254 rules for building 1 rules for naming objects in 4 rules for using 1 synonym 2 COMMENT attribute ALTER TRACE 85 DISPLAY TRACE 217 START TRACE 242
COMMENT attribute (continued) STOP TRACE 252 CONNAME attribute ALTER CHANNEL 29 DEFINE CHANNEL 107 DISPLAY CHANNEL 174 DISPLAY CHSTATUS 179 DISPLAY CLUSQMGR 187 CONVERT attribute ALTER CHANNEL 32 DEFINE CHANNEL 109 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 CPF 269 CPILEVEL attribute, DISPLAY QMGR 208 CRDATE attribute, DISPLAY QUEUE 202 CRTIME attribute, DISPLAY QUEUE 202 CURDEPTH attribute, DISPLAY QUEUE 203 CURLUWID attribute, DISPLAY CHSTATUS 180 CURMSGS attribute, DISPLAY CHSTATUS 180 CURRENT attribute, DISPLAY CHSTATUS 179 CURSEQNO attribute, DISPLAY CHSTATUS 181
D
DATALEN attribute, PING CHANNEL 220 DEADQ attribute ALTER QMGR 65 DISPLAY QMGR 208 DEFBIND attribute ALTER QALIAS 49 ALTER QLOCAL 54 ALTER QREMOTE 79 DEFINE QALIAS 131 DEFINE QLOCAL 138 DEFINE QREMOTE 158 DISPLAY QUEUE 203 DEFINE BUFFPOOL command 89 DEFINE CHANNEL command 90 DEFINE MAXSMSGS command 121 DEFINE NAMELIST command 122 DEFINE PROCESS command 124 DEFINE PSID command 128 DEFINE QALIAS command 129 DEFINE QLOCAL command 134 DEFINE QMODEL command 145 DEFINE QREMOTE command 155 DEFINE STGCLASS command 161 DEFPRTY attribute ALTER QALIAS 48 ALTER QLOCAL 52 ALTER QMODEL 69 ALTER QREMOTE 78 DEFINE QALIAS 130 DEFINE QLOCAL 136 DEFINE QMODEL 147 DEFINE QREMOTE 157 DISPLAY QUEUE 203 DEFPSIST attribute ALTER QALIAS 48
DEFPSIST attribute (continued) ALTER QLOCAL 53 ALTER QMODEL 69 ALTER QREMOTE 78 DEFINE QALIAS 131 DEFINE QLOCAL 136 DEFINE QMODEL 147 DEFINE QREMOTE 157 DISPLAY QUEUE 203 DEFSOPT attribute ALTER QLOCAL 54 ALTER QMODEL 70 DEFINE QLOCAL 138 DEFINE QMODEL 148 DISPLAY QUEUE 203 DEFTYPE attribute ALTER QMODEL 76 DEFINE QMODEL 154 DISPLAY CLUSQMGR 186 DISPLAY QUEUE 203 DEFXMITQ attribute ALTER QMGR 65 DISPLAY QMGR 209 DELETE CHANNEL command 163 DELETE NAMELIST command 164 DELETE PROCESS command 165 DELETE QALIAS command 166 DELETE QLOCAL command 167 DELETE QMODEL command 168 DELETE QREMOTE command 169 DELETE STGCLASS command 170 DESCR attribute ALTER CHANNEL 32 ALTER NAMELIST 43 ALTER PROCESS 45 ALTER QALIAS 48 ALTER QLOCAL 53 ALTER QMGR 65 ALTER QMODEL 69 ALTER QREMOTE 78 ALTER STGCLASS 82 DEFINE CHANNEL 109 DEFINE NAMELIST 123 DEFINE PROCESS 126 DEFINE QALIAS 131 DEFINE QLOCAL 137 DEFINE QMODEL 147 DEFINE QREMOTE 157 DEFINE STGCLASS 161 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 DISPLAY NAMELIST 194 DISPLAY PROCESS 196 DISPLAY QMGR 209 DISPLAY QUEUE 203 DISPLAY STGCLASS 213 DEST attribute DISPLAY TRACE 217 START TRACE 242 STOP TRACE 252 DETAIL attribute, DISPLAY TRACE 217 Digital OpenVMS error messages 263 example command input file 262 example report file 263 issuing commands from a command file 262
306
Digital OpenVMS (continued) issuing commands interactively 261 runmqsc command 261 verifying commands 263 directing OS/390 commands 269 DISCINT attribute ALTER CHANNEL 32 DEFINE CHANNEL 109 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 DISPLAY CHANNEL command 171 DISPLAY CHSTATUS command 176 DISPLAY CLUSQMGR command 184 DISPLAY CMDSERV command 190 DISPLAY DQM command 191 DISPLAY MAXSMSGS command 192 DISPLAY NAMELIST command 193 DISPLAY PROCESS command 195 DISPLAY QMGR command 206 DISPLAY QUEUE command 197 DISPLAY SECURITY command 211 DISPLAY STGCLASS command 212 DISPLAY THREAD command 214 DISPLAY TRACE command 216 DISPLAY USAGE command 219 DISTL attribute ALTER QLOCAL 54 ALTER QMODEL 70 DEFINE QLOCAL 138 DEFINE QMODEL 148 DISPLAY QMGR 209 DISPLAY QUEUE 203 dual BSDS, reestablish 222
F
FIFO queue ALTER QLOCAL 56 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 FORCE option ALTER QALIAS 47 ALTER QLOCAL 52 ALTER QMGR 63 ALTER QREMOTE 77
G
GET attribute ALTER QALIAS 49 ALTER QLOCAL 54 ALTER QMODEL 70 DEFINE QALIAS 132 DEFINE QLOCAL 138 DEFINE QMODEL 148 DISPLAY QUEUE 203 getting help when issuing commands OS/2 Warp 266 UNIX systems 278 Windows NT 282 glossary 289
INDXTYPE attribute ALTER QLOCAL 55 ALTER QMODEL 70 DEFINE QLOCAL 138 DEFINE QMODEL 148 DISPLAY QUEUE 203 INHIBTEV attribute ALTER QMGR 65 DISPLAY QMGR 209 INITQ attribute ALTER QLOCAL 55 ALTER QMODEL 71 DEFINE QLOCAL 139 DEFINE QMODEL 149 DISPLAY QUEUE 203 START CHINIT 235 INTERVAL attribute ALTER SECURITY 81 DISPLAY SECURITY 211 IPPROCS attribute, DISPLAY QUEUE 203
J
JOBNAME attribute, DISPLAY CHSTATUS 182
L
LIKE option DEFINE CHANNEL 110 DEFINE NAMELIST 122 DEFINE PROCESS 125 DEFINE QALIAS 130 DEFINE QLOCAL 136 DEFINE QMODEL 146 DEFINE QREMOTE 156 DEFINE STGCLASS 161 list of queue names alter 43 define 122 delete 164 display 193 listener start 238 stop 249 local queue alter attributes 51 clear 88 define 134 delete definition 167 display attributes 197 LOCALEV attribute ALTER QMGR 66 DISPLAY QMGR 209 log, archive 86 LONGRTS attribute, DISPLAY CHSTATUS 183 LONGRTY attribute ALTER CHANNEL 33 DEFINE CHANNEL 111 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 LONGTMR attribute ALTER CHANNEL 33 DEFINE CHANNEL 111 DISPLAY CHANNEL 174 Index
H
HARDENBO attribute ALTER QLOCAL 56 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 DISPLAY QUEUE 203 HBINT attribute ALTER CHANNEL 32 DEFINE CHANNEL 110 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 how to issue commands Digital OpenVMS 261 OS/2 Warp 265 OS/390 269 OS/400 271 Tandem NSK 273 UNIX systems 277 Windows NT 281 HTML (Hypertext Markup Language) 304 Hypertext Markup Language (HTML) 304
E
ENVPARM attribute START CHINIT 235 START QMGR 240 ENVRDATA attribute ALTER PROCESS 45 DEFINE PROCESS 126 DISPLAY PROCESS 196 error messages Digital OpenVMS 263 OS/2 Warp 267 Tandem NSK 275 UNIX systems 279 Windows NT 283 example OS/400 MQSeries command 271 examples Digital OpenVMS command input file 262 Digital OpenVMS report file 263 OS/2 Warp command input file 266 OS/2 Warp report file 267 OS/400 command input file 271 OS/400 report file 272 Tandem NSK command input file 274 Tandem NSK report file 275 UNIX systems command input file 278 UNIX systems report file 279 Windows NT command input file 282 Windows NT report file 283
I
IFCID attribute ALTER TRACE 85 START TRACE 243 IMS Tpipe, reset sequence numbers manually 227 in-doubt thread display 214 resolve manually 231 INDOUBT attribute, DISPLAY CHSTATUS 181
307
LONGTMR attribute (continued) DISPLAY CLUSQMGR 187 LSTLUWID attribute, DISPLAY CHSTATUS 181 LSTMSGDA attribute, DISPLAY CHSTATUS 183 LSTMSGTI attribute, DISPLAY CHSTATUS 183 LSTSEQNO attribute, DISPLAY CHSTATUS 181
M
MAXDEPTH attribute ALTER QLOCAL 55 ALTER QMODEL 71 DEFINE QLOCAL 139 DEFINE QMODEL 149 DISPLAY QUEUE 203 MAXHANDS attribute ALTER QMGR 66 DISPLAY QMGR 209 maximum number of messages, define 121 MAXMSGL attribute ALTER CHANNEL 33 ALTER QLOCAL 56 ALTER QMGR 66 ALTER QMODEL 71 DEFINE CHANNEL 111 DEFINE QLOCAL 139 DEFINE QMODEL 149 DISPLAY CHANNEL 174 DISPLAY CHSTATUS 183 DISPLAY CLUSQMGR 187 DISPLAY QMGR 209 DISPLAY QUEUE 203 MAXPRTY attribute, DISPLAY QMGR 209 maxsmsgs define 121 display 192 MAXUMSGS attribute, ALTER QMGR 66 MCANAME attribute ALTER CHANNEL 34 DEFINE CHANNEL 111 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 MCASTAT attribute, DISPLAY CHSTATUS 183 MCATYPE attribute ALTER CHANNEL 34 DEFINE CHANNEL 111 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 187 MCAUSER attribute ALTER CHANNEL 34 DEFINE CHANNEL 112 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 188 MODE attribute ARCHIVE LOG 86 STOP CHANNEL 245 STOP QMGR 250 SUSPEND QMGR 254 model queue alter attributes 68
model queue (continued) define 145 delete definition 168 display attributes 197 MODENAME attribute ALTER CHANNEL 34 DEFINE CHANNEL 112 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 188 MQSC commands how to issue on Digital OpenVMS 261 how to issue on OS/2 Warp 265 how to issue on OS/390 269 how to issue on OS/400 271 how to issue on Tandem NSK 273 how to issue on UNIX systems 277 how to issue on Windows NT 281 MQSeries commands 254 MQSeries for AS/400, how to issue commands 271 MQSeries for OS/2 Warp, how to issue commands 265 MQSeries for OS/390 commands directing to the correct queue manager 269 how to issue 269 MQSeries for Windows NT, how to issue commands 281 MQSeries on Digital OpenVMS, how to issue commands 261 MQSeries on Tandem NSK, how to issue commands 273 MQSeries on UNIX systems, how to issue commands 277 MQSeries publications 301 MRDATA attribute ALTER CHANNEL 35 DEFINE CHANNEL 112 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 188 MREXIT attribute ALTER CHANNEL 35 DEFINE CHANNEL 113 DISPLAY CHANNEL 174 DISPLAY CLUSQMGR 188 MRRTY attribute ALTER CHANNEL 35 DEFINE CHANNEL 113 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 MRTMR attribute ALTER CHANNEL 35 DEFINE CHANNEL 113 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 MSGDATA attribute ALTER CHANNEL 35 DEFINE CHANNEL 113 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 MSGDLVSQ attribute ALTER QLOCAL 56 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 DISPLAY QUEUE 204
MSGEXIT attribute ALTER CHANNEL 36 DEFINE CHANNEL 113 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 MSGS attribute, DISPLAY CHSTATUS 183
N
NAMCOUNT attribute, DISPLAY NAMELIST 194 name spaces 4 namelist alter 43 commands 257 define 122 delete 164 display contents 193 rules for names of 6 NAMES attribute ALTER NAMELIST 43 DEFINE NAMELIST 123 DISPLAY NAMELIST 194 NETPRTY attribute ALTER CHANNEL 37 DEFINE CHANNEL 114 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 NID attribute, RESOLVE INDOUBT NOHARDENBO attribute ALTER QLOCAL 56 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 NOPURGE attribute, DELETE QLOCAL 167 NOREPLACE option DEFINE CHANNEL 115 DEFINE NAMELIST 123 DEFINE PROCESS 125 DEFINE QALIAS 130 DEFINE QLOCAL 136 DEFINE QMODEL 147 DEFINE QREMOTE 156 DEFINE STGCLASS 162 NOSHARE attribute ALTER QLOCAL 56 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 NOTRIGGER attribute ALTER QLOCAL 57 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 NPMSPEED attribute ALTER CHANNEL 37 DEFINE CHANNEL 115 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188
231
O
objects, reserved names 6 operator commands 254 OPPROCS attribute DISPLAY QUEUE 204
308
OS/2 Warp error messages 267 example command input file 266 example report file 267 getting help when issuing commands 266 issuing commands from a command file 266 issuing commands interactively 265 runmqsc command 265 verifying commands 267 OS/390 commands directing to the correct queue manager 269 how to issue 269 OS/390 trace alter events being traced 84 display list of active traces 216 start 241 stop 251 OS/400 example command input file 271 example report file 272 how to issue commands 271 verifying commands 272 OS/400 MQSeries command, example 271
processes, rules for names of 6 PSID attribute ALTER STGCLASS 82 DEFINE STGCLASS 162 DISPLAY STGCLASS 212 DISPLAY USAGE 219 publications, MQSeries 301 PURGE attribute, DELETE QLOCAL 167 PUT attribute ALTER QALIAS 48 ALTER QLOCAL 53 ALTER QMODEL 70 ALTER QREMOTE 78 DEFINE QALIAS 131 DEFINE QLOCAL 137 DEFINE QMODEL 147 DEFINE QREMOTE 157 DISPLAY QUEUE 204 PUTAUT attribute ALTER CHANNEL 37 DEFINE CHANNEL 115 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188
Q
QDEPTHHI attribute ALTER QLOCAL 57 ALTER QMODEL 73 DEFINE QLOCAL 141 DEFINE QMODEL 151 DISPLAY QUEUE 204 QDEPTHLO attribute ALTER QLOCAL 57 ALTER QMODEL 73 DEFINE QLOCAL 141 DEFINE QMODEL 151 DISPLAY QUEUE 204 QDPHIEV attribute ALTER QLOCAL 57 ALTER QMODEL 73 DEFINE QLOCAL 141 DEFINE QMODEL 151 DISPLAY QUEUE 204 QDPLOEV attribute ALTER QLOCAL 58 ALTER QMODEL 74 DEFINE QLOCAL 142 DEFINE QMODEL 151 DISPLAY QUEUE 204 QDPMAXEV attribute ALTER QLOCAL 58 ALTER QMODEL 74 DEFINE QLOCAL 142 DEFINE QMODEL 152 DISPLAY QUEUE 204 QMID attribute DISPLAY CLUSQMGR 186 DISPLAY QMGR 209 DISPLAY QUEUE 204 QMNAME attribute ALTER CHANNEL 38 DEFINE CHANNEL 116 DISPLAY CHANNEL 175 DISPLAY QMGR 209 RESET CLUSTER 226
P
page set define 128, 161 display usage 219 PARM attribute START CHINIT 236 START QMGR 240 PASSWORD attribute ALTER CHANNEL 37 DEFINE CHANNEL 115 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 PDF (Portable Document Format) 304 PERFMEV attribute ALTER QMGR 66 DISPLAY QMGR 209 PING CHANNEL command 220 PING QMGR command 221 PLATFORM attribute, DISPLAY QMGR 209 Portable Document Format (PDF) 304 PostScript format 304 priority queue ALTER QLOCAL 56 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 PROCESS attribute ALTER QLOCAL 57 ALTER QMODEL 73 DEFINE QLOCAL 141 DEFINE QMODEL 151 DISPLAY QUEUE 204 process definition alter 44 commands 256 define 124 delete 165 display 195
QMTYPE attribute, DISPLAY CLUSQMGR 186 QSVCIEV attribute ALTER QLOCAL 58 ALTER QMODEL 74 DEFINE QLOCAL 142 DEFINE QMODEL 152 DISPLAY QUEUE 204 QSVCINT attribute ALTER QLOCAL 59 ALTER QMODEL 74 DEFINE QLOCAL 142 DEFINE QMODEL 152 DISPLAY QUEUE 204 QTYPE attribute, DISPLAY QUEUE 204 queue commands 255 queue attributes, display 197 queue manager alter attributes 62 commands 255 directing OS/390 commands to 269 display attributes 206 ping 221 resume 232 start 240 stop 250 suspend 254 queue-manager alias, defining 155 queue names 5 queues reserved names 5 rules for names of 5
R
railroad diagrams, how to read 8 RCVDATA attribute ALTER CHANNEL 38 DEFINE CHANNEL 116 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 RCVEXIT attribute ALTER CHANNEL 38 DEFINE CHANNEL 116 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 RCVSEQ attribute, RESET TPIPE 228 RECOVER BSDS command 222 REFRESH CLUSTER command 223 REFRESH SECURITY command 224 remote queue alter attributes 77 define 155 delete definition 169 display attributes 197 REMOTEEV attribute ALTER QMGR 66 DISPLAY QMGR 209 REPLACE option DEFINE CHANNEL 115 DEFINE NAMELIST 123 DEFINE PROCESS 125 DEFINE QALIAS 130 DEFINE QLOCAL 136 DEFINE QMODEL 147 DEFINE QREMOTE 156 Index
309
REPLACE option (continued) DEFINE STGCLASS 162 reply-to queue alias, defining 155 REPOS attribute ALTER QMGR 67 DISPLAY QMGR 209 REPOSNL attribute ALTER QMGR 67 DISPLAY QMGR 210 reserved names objects 6 queues 5 RESET CHANNEL command 225 RESET CLUSTER command 226 RESET TPIPE command 227 RESOLVE CHANNEL command 229 RESOLVE INDOUBT command 231 RESUME QMGR command 232 RETINTVL attribute ALTER QLOCAL 59 ALTER QMODEL 75 DEFINE QLOCAL 143 DEFINE QMODEL 152 DISPLAY QUEUE 204 RMID attribute DISPLAY TRACE 217 START TRACE 243 STOP TRACE 252 RNAME attribute ALTER QREMOTE 79 DEFINE QREMOTE 158 DISPLAY QUEUE 204 RQMNAME attribute ALTER QREMOTE 79 DEFINE QREMOTE 158 DISPLAY QUEUE 204 rules for using commands 1 runmqsc command using on Digital OpenVMS 261 using on OS/2 Warp 265 using on Tandem NSK 273 using on UNIX systems 277 using on Windows NT 281 RVERIFY SECURITY command 233
S
SAVED attribute, DISPLAY CHSTATUS 180 SCOPE attribute ALTER QALIAS 49 ALTER QLOCAL 59 ALTER QREMOTE 80 DEFINE QALIAS 132 DEFINE QLOCAL 143 DEFINE QREMOTE 158 DISPLAY QUEUE 204 SCYDATA attribute ALTER CHANNEL 38 DEFINE CHANNEL 116 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 SCYEXIT attribute ALTER CHANNEL 39 DEFINE CHANNEL 117 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 security alter attributes 81
security (continued) commands 258 display attributes 211 rebuild 224 refresh 224 reverify 233 SENDDATA attribute ALTER CHANNEL 39 DEFINE CHANNEL 117 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 SENDEXIT attribute ALTER CHANNEL 39 DEFINE CHANNEL 117 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 SENDSEQ attribute, RESET TPIPE 227 SEQNUM attribute, RESET CHANNEL 225 sequence numbers resetting on an IMS Tpipe 227 SEQWRAP attribute ALTER CHANNEL 39 DEFINE CHANNEL 117 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 SHARE attribute ALTER QLOCAL 56 ALTER QMODEL 72 DEFINE QLOCAL 140 DEFINE QMODEL 150 DISPLAY QUEUE 204 SHORTRTS attribute, DISPLAY CHSTATUS 183 SHORTRTY attribute ALTER CHANNEL 40 DEFINE CHANNEL 118 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 SHORTTMR attribute ALTER CHANNEL 40 DEFINE CHANNEL 118 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 softcopy books 304 START CHANNEL command 234 START CHINIT command 235 START CMDSERV command 237 START LISTENER command 238 START QMGR command 240 START TRACE command 241 STATUS attribute DISPLAY CHSTATUS 181 DISPLAY CLUSQMGR 186 STGCLASS attribute ALTER QLOCAL 59 ALTER QMODEL 75 DEFINE QLOCAL 143 DEFINE QMODEL 153 DISPLAY QUEUE 200, 204 STOP CHANNEL command 245 STOP CHINIT command 247 STOP CMDSERV command 248 STOP LISTENER command 249 STOP QMGR command 250 STOP TRACE command 251
STOPREQ attribute, DISPLAY CHSTATUS 183 storage class alter 82 define 161 delete 170 display 212 storage classes, rules for names of 6 STRSTPEV attribute ALTER QMGR 67 DISPLAY QMGR 210 summary of commands 255 SUSPEND attribute, DISPLAY CLUSQMGR 187 SUSPEND QMGR command 254 SWITCHES attribute, DISPLAY SECURITY 211 SYNCPT attribute, DISPLAY QMGR 210 syntax diagrams, how to read 8
T
Tandem NSK error messages 275 example command input file 274 example report file 275 issuing commands from a command file 274 issuing commands interactively 273 runmqsc command 273 verifying commands 275 TARGQ attribute ALTER QALIAS 49 DEFINE QALIAS 132 DISPLAY QUEUE 205 TDATA attribute, START TRACE 244 terminology used in this book 289 thread display information about 214 resolving in-doubt manually 231 TIME attribute, ARCHIVE LOG 86 TIMEOUT attribute ALTER SECURITY 81 DISPLAY SECURITY 211 TNO attribute ALTER TRACE 84 DISPLAY TRACE 217 STOP TRACE 252 TPNAME attribute ALTER CHANNEL 40 DEFINE CHANNEL 118 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 189 TRIGDATA attribute ALTER QLOCAL 60 ALTER QMODEL 75 DEFINE QLOCAL 143 DEFINE QMODEL 153 DISPLAY QUEUE 205 TRIGDPTH attribute ALTER QLOCAL 60 ALTER QMODEL 75 DEFINE QLOCAL 143 DEFINE QMODEL 153 DISPLAY QUEUE 205 TRIGGER attribute ALTER QLOCAL 57 ALTER QMODEL 72
310
TRIGGER attribute (continued) DEFINE QLOCAL 140 DEFINE QMODEL 150 DISPLAY QUEUE 205 TRIGINT attribute ALTER QMGR 67 DISPLAY QMGR 210 TRIGMPRI attribute ALTER QLOCAL 60 ALTER QMODEL 75 DEFINE QLOCAL 144 DEFINE QMODEL 153 DISPLAY QUEUE 205 TRIGTYPE attribute ALTER QLOCAL 60 ALTER QMODEL 75 DEFINE QLOCAL 144 DEFINE QMODEL 153 DISPLAY QUEUE 205 TRPTYPE attribute ALTER CHANNEL 41 DEFINE CHANNEL 119 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 188 TYPE attribute DISPLAY CHANNEL 173 DISPLAY QUEUE 200 DISPLAY THREAD 214
V
verifying commands Digital OpenVMS 263 OS/2 Warp 267 OS/400 272 Tandem NSK 275 UNIX systems 279 Windows NT 283
W
WAIT attribute, ARCHIVE LOG Windows Help Windows NT error messages 283 example command input file 282 example report file 283 getting help when issuing commands 282 issuing commands from a command file 282 issuing commands interactively 281 runmqsc command 281 verifying commands 283 304 86
X U
unit-of-work ID, display 214 UNIX systems error messages 279 example command input file 278 example report file 279 getting help when issuing commands 278 issuing commands from a command file 278 issuing commands interactively 277 runmqsc command 277 verifying commands 279 usage, page set display 219 USAGE attribute ALTER QLOCAL 60 ALTER QMODEL 76 DEFINE QLOCAL 144 DEFINE QMODEL 154 DISPLAY QUEUE 205 USERDATA attribute ALTER PROCESS 46 DEFINE PROCESS 126 DISPLAY PROCESS 196 USERID attribute ALTER CHANNEL 41 DEFINE CHANNEL 119 DISPLAY CHANNEL 175 DISPLAY CLUSQMGR 189 DISPLAY TRACE 218 START TRACE 244 STOP TRACE 253 using commands rules for 1 XCFGNAME attribute ALTER STGCLASS 82 DEFINE STGCLASS 162 DISPLAY STGCLASS 213 RESET TPIPE 228 XCFMNAME attribute ALTER STGCLASS 83 DEFINE STGCLASS 162 DISPLAY STGCLASS 213 RESET TPIPE 227 XMITQ attribute ALTER CHANNEL 41 ALTER QREMOTE 80 DEFINE CHANNEL 119 DEFINE QREMOTE 159 DISPLAY CHANNEL 175 DISPLAY CHSTATUS 179 DISPLAY QUEUE 205
Index
311
312
313
Printed in the United States of America on recycled paper containing 10% recovered post-consumer fiber.
SC33-1369-11
Spine information:
MQSeries