ALTER PROCESS
Use the MQSC command ALTER PROCESS to alter the parameters of an existing IBM MQ process definition.
Use MQSC commands
For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.
We can issue this command from sources 2CR. For an explanation of the source symbols, see Sources from which we can issue MQSC commands on z/OS .
Synonym: ALT PROALTER PROCESS
Notes:- 1 Valid only on z/OS when the queue manager is a member of a queue sharing group.
- 2 Valid only on z/OS.
Parameter descriptions for ALTER PROCESS
- process-name)
-
Name of the IBM MQ process definition (see Rules for naming IBM MQ objects ). process-name is
required.
The name must not be the same as any other process definition currently defined on this queue manager (unless REPLACE is specified).
- APPLICID(string)
-
The name of the application to be started. The name might typically be a fully
qualified file name of an executable object. Qualifying the file name is particularly important if
you have multiple IBM MQ installations, to ensure the
correct version of the application is run. The maximum length is 256 characters.
For a CICS application the name is a CICS transaction ID, and for an IMS application it is an IMS transaction ID.
On z/OS, for distributed queuing, it must be "CSQX start".
- APPLTYPE(string)
-
The type of
application to be started. Valid application types are:
- integer
- A system-defined application type in the range zero through 65 535 or a user-defined application type in the range 65 536 through 999 999 999.
For certain values in the system range, a parameter from the following list can be specified instead of a numeric value:
- CICS
- Represents a CICS transaction.
- IMS
- Represents an IMS transaction.
- MVS
- Represents a z/OS application (batch or TSO).
- NOTESAGENT
- Represents a Lotus Notes agent.
- NSK
- Represents an HP Integrity NonStop Server application.
- OS400
- Represents an IBM i application.
- UNIX
- Represents a UNIX application.
- WINDOWS
- Represents a Windows application.
- WLM
- Represents a z/OS workload manager application.
- DEF
- Specify DEF 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, the default is interpreted as the default application type of the server.
Only use application types (other than user-defined types) that are supported on the platform at which the command runs:
- On z/OS: CICS, IMS, MVS, UNIX, WINDOWS, WLM, and DEF are supported
- On IBM i: OS400, CICS, and DEF are supported
- On UNIX: UNIX, WINDOWS, CICS, and DEF are supported
- On Windows, WINDOWS, UNIX, CICS, and DEF are supported
- CMDSCOPE
-
This parameter applies to z/OS only and
specifies how the command runs when the queue manager is a member of a queue sharing group.
CMDSCOPE must be blank, or the local queue manager, if
QSGDISP is set to GROUP.
- ' '
- The command runs on the queue manager on which it was entered.
- qmgr-name
- The command runs on the queue manager you specify, providing the queue manager is active within
the queue sharing group.
In a shared queue environment, we can provide a different queue manager name from the one we are using to enter the command. The command server must be enabled.
- *
- The command runs on the local queue manager and is also passed to every active queue manager in the queue sharing group. The effect is the same as entering the command on every queue manager in the queue sharing group.
- DESCR(string)
-
Plain-text comment. It
provides descriptive information about the object when an operator issues the DISPLAY
PROCESS command.
It must 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: Use characters from the coded character set identifier (CCSID) for this queue manager. Other characters 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 IBM MQ 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. Note:
- On z/OS, ENVRDATA is not used by the trigger-monitor applications provided by IBM MQ.
- On z/OS, if
APPLTYPE is WLM, the default values for the ServiceName and
ServiceStep fields in the work information header (MQWIH) can be supplied in
ENVRDATA. The format must be:
SERVICENAME=servname,SERVICESTEP=stepname
where:- SERVICENAME=
- is the first 12 characters of ENVRDATA.
- servname
- is a 32-character service name. It can contain embedded blanks or any other data, and have trailing blanks. It is copied to the MQWIH as is.
- SERVICESTEP=
- is the next 13 characters of ENVRDATA.
- stepname
- is a 1 - 8 character service step name. It is copied as-is to the MQWIH, and padded to eight characters with blanks.
If the format is incorrect, the fields in the MQWIH are set to blanks.
- On UNIX, ENVRDATA can be set to the ampersand character to make the started application run in the background.
- QSGDISP
- This parameter applies to z/OS only.
Specifies the disposition of the object to which we are applying the command (that is, where it is defined and how it behaves).
QSGDISP ALTER COPY The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(COPY). Any object residing in the shared repository, or any object defined using a command that had the parameters QSGDISP(QMGR), is not affected by this command. GROUP The object definition resides in the shared repository. The object was defined using a command that had the parameters QSGDISP(GROUP). On the page set of the queue manager that executes the command, only a local copy of the object is altered by this command. If the command is successful, the following command is generated. DEFINE PROCESS(process-name) REPLACE QSGDISP(COPY)
The command is sent to all active queue managers in the queue sharing group to attempt to refresh local copies on page set zero. The ALTER for the group object takes effect regardless of whether the generated command with QSGDISP(COPY) fails.PRIVATE The object resides on the page set of the queue manager that executes the command, and was defined with QSGDISP(QMGR) or QSGDISP(COPY). Any object residing in the shared repository is unaffected. QMGR The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(QMGR). Any object residing in the shared repository, or any local copy of such an object, is not affected by this command. - 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 IBM MQ 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 IBM MQ message channel agents, the format of this field is a channel name of up to 20 characters. See Manage objects for triggering for information about what APPLICID to provide to message channel agents.
For Microsoft Windows, the character string must not contain double quotation marks if the process definition is going to be passed to runmqtrm.
Parent topic: MQSC commands