UPDATE MSNAME command

Use the UPDATE MSNAME command to set or change the MSC logical link path attributes or to change the status of specified logical link paths.

Environment

The following table lists the environments (DB/DC, DBCTL, and DCCTL) from which the UPDATE MSNAME command and keywords can be issued.

Table 1. Valid environments for the UPDATE MSNAME command and keywords
Command / keywords DB/DC DBCTL DCCTL
UPDATE MSNAME X   X
NAME X   X
SET X   X
START X   X
STOP X   X

Syntax

Read syntax diagramSkip visual syntax diagram
                                  .-,-----------.        
                                  V             |        
>>-+-UPDATE-+--MSNAME--+-NAME--(----+-msname--+-+--)-+---------->
   '-UPD----'          |            '-msname*-'      |   
                       '-NAME(*)---------------------'   

>--+-| A |--------+--------------------------------------------><
   +-| B |--------+   
   +-| C |--------+   
   '-| B |--| C |-'   

A

|--SET--(--+-MSLINK(new_linkname)-------+--)--------------------|
           | .-,----------------------. |      
           | V                        | |      
           '---+-SIDL(local_sysid)--+-+-'      
               '-SIDR(remote_sysid)-'          

B

             .-,--------.      
             V          |      
|--START--(----+-Q----+-+--)------------------------------------|
               '-SEND-'        

C

            .-,--------.      
            V          |      
|--STOP--(----+-Q----+-+--)-------------------------------------|
              '-SEND-'        

Keywords

The following keywords are valid for the UPDATE MSNAME command:

NAME()
Specifies the 1- to 8-character name of the MSC logical link path to be processed. You can specify wildcards (*) for the NAME keyword. NAME(*) and NAME(abc*) are examples of valid names.
SET()
Specifies the updates to attributes or parameters. You can only change attributes for statically-defined MSNAMEs. Dynamic MSNAMEs cannot be changed.
MSLINK()
Assigns the specified logical link path to the logical link for input and output purposes. Enter the 1- to 8-character name of the MSC logical link to which you want to assign this logical link path. The logical link name specified must already exist.

Both the source logical link (where the MSNAME is currently assigned) and the target logical link (where the MSNAME is being assigned to) must be stopped.

SIDL()
Specifies the system identification of a local system in a multiple system configuration. The specified value must be a number from 1 to 2036. The new specified value must be currently undefined or already defined as a local SID on this system. The SID cannot already be defined as remote.

You can change the SIDL value for only one logical link path on a command. Therefore, if you specify the SIDL parameter, you can specify only one NAME parameter.

The logical link and logical link path must be stopped to change the SIDL.

To change the SIDR or SIDL value of a logical link path:
  1. Verify the existing SID values of the logical link path of either /DIS ASMT MSNAME or QUERY MSNAME SHOW(SYSID).

    For SIDL verification only, the operator must verify that the current SIDL value is not the lowest SIDL value in the system. If it is the lowest SIDL value in the system, and there are no other logical link paths in the system with the same SIDL, then the SIDL cannot be changed because the lowest SIDL in the system cannot change.

  2. Verify there are no transactions with the existing SID values of either /DIS SYSID TRAN or QUERY TRAN SHOW(MSNAME).
  3. If any transactions were found in step 2, assign the transactions to a new valid system of either /MSASSIGN TRAN TO MSNAME, UPDATE TRAN SET(MSNAME()) or UPDATE TRAN SET(SIDR(),SIDL()).
  4. Change the SID values of the logical link path using UPDATE MSNAME SET(SIDR(),SIDL()). However, this is not allowed if the new SIDL value is lower than the current lowest SIDL in the system. The lowest SIDL in the system cannot change, and must remain the lowest SIDL in the system.
SIDR()
Specifies the system identification of a remote system in a multiple system configuration. The value specified must be a number from 1 to 2036. The new value specified must be currently undefined on this system (it cannot be already defined as remote or local).

You can change the SIDR value for only one logical link path on a command. Therefore, if you specify the SIDR parameter, you can specify only one NAME parameter.

The logical link and logical link path must be stopped to change the SIDR.

To change the SIDR or SIDL value of a logical link path:
  1. Verify the existing SID values of the logical link path of either /DIS ASMT MSNAME or QUERY MSNAME SHOW(SYSID).
  2. Verify there are no transactions with the existing SID values of either /DIS SYSID TRAN or QUERY TRAN SHOW(MSNAME).
  3. If any transactions were found in step 2, assign the transactions to a new valid system of either /MSASSIGN TRAN TO MSNAME, UPDATE TRAN SET(MSNAME()) or UPDATE TRAN SET(SIDR(),SIDL()).
  4. Change the SID values of the logical link path using UPDATE MSNAME SET(SIDR(),SIDL()).
START()
Specifies the attributes to start. You cannot specify the START and STOP parameters with the same attributes.
Q
Starts the queuing to the logical link path and starts input for the specified logical link path.
SEND
Starts the sending of messages to the specified logical link path.
STOP()
Specifies the attributes to stop. You cannot specify the START and STOP parameters with the same attributes.
Q
Stops the queuing to the logical link path and stops input for the specified logical link path.
SEND
Stops the sending of messages to the specified logical link path.

Usage notes

You can issue this command only through the Operations Manager (OM) API. This command applies to DB/DC and DCCTL systems.

The syntax for this command is defined in XML and is available to automation programs that communicate with OM.

Equivalent IMS type-1 commands

The following table shows variations of the UPDATE MSNAME command and the type-1 IMS™ commands that perform similar functions.

Table 2. Type-1 equivalents for the UPDATE MSNAME command
UPDATE MSNAME command Similar IMS type-1 command
UPDATE MSNAME NAME(msname) SET(MSLINK(linkname)) /MSASSIGN MSNAME msname TO LINK link #
UPDATE MSNAME NAME(msname) SET(SIDR(remote_sysid)) No similar type-1 IMS command exists.
UPDATE MSNAME NAME(msname) SET(SIDL(local_sysid)) No similar type-1 IMS command exists.
UPDATE MSNAME NAME(msname | msname* | *) START(Q,SEND) /START MSNAME msname | msname* | ALL
UPDATE MSNAME NAME(msname | msname* | *) STOP(Q,SEND) /STOP MSNAME msname | msname* | ALL
UPDATE MSNAME NAME(msname | msname* | *) STOP(Q),START(SEND) /PURGE MSNAME msname | msname* | ALL

Output fields

Short label
Contains the short label that is generated in the XML output.
Keyword
Identifies the keyword on the command that caused the field to be generated. error appears for output fields that can appear for a non-zero completion code. N/A (not applicable) appears for output fields that are always returned.
Meaning
Provides a brief description of the output field.
Table 3. Output field descriptions for the UPDATE MSNAME command
Short label Keyword Meaning
CC N/A Completion code.
CCTXT error Completion code text that briefly explains the meaning of the non-zero completion code.
MBR N/A IMSplex member that built the output line.
MSN N/A Logical link path name.

Return, reason, and completion codes

The return and reason codes that can be returned as a result of the UPDATE MSNAME command are standard for all commands entered through the OM API.

The following table includes the return and reason codes and a brief explanation of the codes. The return or reason code returned for the command might also indicate an error from a CSL request.

Table 4. Return and reason codes for the UPDATE MSNAME command
Return code Reason code Meaning
X'00000000' X'00000000' The UPDATE MSNAME command completed successfully.
X'00000008' X'0000200C' No resources to be updated were found. The resource names specified might be invalid or no resources match the specified filter.
X'00000008' X'00002040' More than one filter value is specified on the UPDATE MSNAME command.
X'00000008' X'00002044' The UPDATE MSNAME command is not processed because the same attribute value was specified for the START and STOP parameters.
X'00000008' X'00002126' The value of SIDL() is invalid. Valid values are 1-2036.
X'00000008' X'00002128' The value of SIDR() is invalid. Valid values are 1-2036.
X'00000008' X'00002136' The name specified in MSLINK() is not a valid logical link name.
X'0000000C' X'00003000' Command was successful for some resources but failed for others. The command output contains a line for each resource, accompanied by its completion code. See the following table for details on completion codes.
X'0000000C' X'00003004' Command was not successful for any of the resources. The command output contains a line for each resource, accompanied by its completion code. See the following table for details on completion codes.
X'00000010' X'00004000' Command is not valid during IMS restart.
X'00000010' X'0000400C' Command is not valid on the XRF alternate.
X'00000010' X'00004014' Command is not valid on the RSR tracker.
X'00000010' X'0000402C' Command is not valid on the non-MSC-capable system.
X'00000014' X'00005004' The UPDATE MSNAME command processing terminated because a DFSOCMD response buffer could not be obtained.
X'00000014' X'00005008' DFSPOOL storage could not be obtained.
X'00000014' X'00005010' A latch could not be obtained.

Errors that are unique to the processing of the UPDATE MSNAME command are returned as completion codes. A completion code is returned for each action against an individual resource.

Table 5. Completion codes for the UPDATE MSNAME command
Completion code Completion code text Meaning
0   The UPDATE MSNAME command completed successfully for the resource.
10 NO RESOURCES FOUND MSNAME name is invalid, or the specified wildcard parameter does not match any resource names.
45 INVALID SIDR VALUE The value specified in SIDR() is invalid. The value must be currently undefined in this system.
83 INVALID SIDL VALUE The value specified in SIDL() is invalid. The value must be currently undefined or local in this system.
B7 USE MANAGER ERROR IMS encountered an internal error using the USE manager.
102 TARGET MSLINK NOT STOPPED The update cannot complete because the link specified in MSLINK() is not stopped.
109 INVALID FOR DYNAMIC MSNAME The update cannot complete because the logical link path specified in NAME() is dynamic. The update is not valid for dynamic logical link paths that are built in a shared queues system, which represent logical link paths defined only on other IMS systems in the shared queues group.
10A SOURCE MSLINK NOT STOPPED The update cannot complete because the logical link to which the specified logical link path is assigned is not stopped.
10B MSC RESOURCE IS IN USE The update cannot complete because there is in-doubt message activity for a remote transaction or lterm related to the logical link path.
10D INVALID SIDL, LESS THAN LOW SIDL The value specified in SIDL() is invalid. The value cannot be lower than the current lowest local SID in this system.
10E LAST MSNAME FOR LOW SIDL The current local SIDL value cannot be changed for this logical link path because the current SIDL value is the lowest local SIDL value, and this is the only logical link path that has this local SIDL value.
10F SIDL STILL LOCAL IN REMOTE TRAN The current local SIDL value cannot be changed for this logical link path because there are remote transactions defined with this local SIDL value, and this the only logical link path that has this local SIDL value.
110 SIDR STILL LOCAL IN REMOTE TRAN The current remote SIDR value cannot be changed for this logical link path because there are remote transactions defined with this remote SIDR value.

Examples

The following are examples of the UPDATE MSNAME command:

Example 1 for UPDATE MSNAME command

TSO SPOC input: UPD MSNAME NAME(STAR1N1,STAR2N1) STOP(Q,SEND)

TSO SPOC output:
MSName  MbrName CC
STAR1N1 IMSA    0
STAR2N1 IMSA    0

Explanation: This UPDATE MSNAME command is issued to stop queuing and the sending of messages to the named logical link paths. This allows the attributes to be changed by another UPD MSNAME command.

Example 2 for UPDATE MSNAME command

TSO SPOC input:
UPD MSNAME NAME(STAR1N1) SET(SIDR(10),SIDL(20))
TSO SPOC output:
MSName  MbrName CC 
STAR1N1 IMSA    0

Explanation: This UPDATE MSNAME command is issued to do the following:

  • Identify the remote system that is represented by SIDR(10).
  • Identify the local system as SIDL(20) for routing messages back to this system.

Example 3 for UPDATE MSNAME command

TSO SPOC input:

UPD MSNAME NAME(STAR1N1) SET(MSLINK(STAR3L))

TSO SPOC output:

MSName  MbrName CC 
STAR1N1 IMSA    0

Explanation: This UPDATE MSNAME command is issued to assign the specified logical link path STAR1N1 to STAR3L.