Creating a Synonym for a Command or Command List

To create a synonym for a command or a command list, use the CMDSYN definition statement. Operators can then enter either the original command name or the new command name.

To create a command synonym:
  1. Add a CMDSYN definition on the CMDDEF statement. If you use multiple CMDSYN statements, specify *PREV* to continue the list of synonyms. Otherwise the synonyms replace synonyms defined in previous statements. For example:
    CMDDEF.command.CMDSYN=*PREV*,synonym1,synonym2
  2. Inform the operators of the new command name.

Be careful not to use a name that is a VTAM® command, another NetView® command or command synonym, or a command in an application program that runs with the NetView program. Also, do not modify the command names on the CMDDEF statements that are supplied by the NetView product in CNMCMD. Some of these command processors depend on the name of the command to process correctly.

In the sample, you can create a synonym for the AUTOWRAP command in the following way:
CMDDEF.AUTOWRAP.CMDSYN=A
Now, the AUTOWRAP command is also named A. You can request AUTOWRAP by entering A.
Note: You can use the ADDCMD command to add or replace synonyms without having to recycle NetView.
Some CMDDEF statements in the samples already have CMDSYNs assigned to them, such as the following NetView command list:
CMDDEF.CNME0001.CMDSYN=ACQ 

If you assign additional names, use *PREV* as one of the values on the CMDSYN statement. Otherwise, the new value replaces the previous value. When you assign a CMDSYN, ensure that the name is unique.

If you want information about... Refer to...
Operands of the CMDDEF definition statement IBM® Tivoli® NetView for z/OS® Administration Reference
ADDCMD command IBM Tivoli NetView for z/OS Command Reference Volume 1 (A-N)