SWNORDER

Read syntax diagramSkip visual syntax diagram
   .-SWNORDER--=--(swnorder_start_option_value1,swnorder_start_option_value2)-----.   
>>-+------------------------------------------------------------------------------+-><
   |              .-(swnorder_start_option_value1,swnorder_start_option_value2)-. |   
   '-SWNORDER--=--+-------------------------------------------------------------+-'   
                  |               .-swnorder_start_option_value2-.              |     
                  +-(--CPNAME--,--+------------------------------+--)-----------+     
                  |                .-swnorder_start_option_value2-.             |     
                  +-(--STATNID--,--+------------------------------+--)----------+     
                  |    .-swnorder_start_option_value1-.                         |     
                  +-(--+------------------------------+--,--FIRST--)------------+     
                  |    .-swnorder_start_option_value1-.                         |     
                  +-(--+------------------------------+--,--ONLY--)-------------+     
                  +-(--CPNAME--,--+-FIRST-+--)----------------------------------+     
                  |               '-ONLY--'                                     |     
                  '-(--STATNID--,--+-FIRST-+--)---------------------------------'     
                                   '-ONLY--'                                          

Specifies the way VTAM® locates a switched PU. If you do not code SWNORDER, the default is the value of the SWNORDER start option. If VTAM does not find the PU using the SWNORDER value you specify, and the second parameter of SWNORDER is FIRST, it searches by the other value. For example, if you code SWNORDER=CPNAME and VTAM cannot find a PU with a matching CPNAME, it searches by the station identifier (IDBLK and IDNUM operands on the PU definition statement for the switched major nodes).

If VTAM does not find the PU using the SWNORDER value you specify and the second parameter of SWNORDER is ONLY, the search for the PU terminates. For example, if you code SWNORDER=(CPNAME,ONLY) and VTAM cannot find a PU with a matching CPNAME, no attempt will be made to find the PU using the station identifier. If dynamic PUs are allowed, a dynamic PU will be created and PU connection processing will continue. If dynamic PUs are not allowed, the PU connection process will fail.

These operands override the SWNORDER start option values for SWNORDER.

SWNORDER=(value_1,value_2) :
value_1=CPNAME
Specifies that VTAM searches for a switched PU by the CPNAME.
value_1=STATNID
Specifies that VTAM searches for a switched PU by the station identifier.
value_2=FIRST
If a switched PU is not found using the value specified by value_1, the alternate value of value_1 will be used to search for a switched PU.
value_2=ONLY
If a switched PU is not found using the value specified by value_1, a search using the alternate value of value_1 will not be performed.

If either value_1 or value_2 are omitted from the SWNORDER definition, the corresponding start option SWNORDER value will be the default for the omitted value.