SWNORDER start option

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

Specifies the way VTAM® locates a switched PU. If you do not code SWNORDER, VTAM searches for a PU by the CPNAME first. If VTAM does not find the PU by the CPNAME, it searches by the station identifier (IDBLK and IDNUM operands on the PU definition statement for the switched major nodes) since the second parameter defaults to FIRST.

If VTAM does not find the PU using the first SWNORDER parameter value you specify, and the second parameter of SWNORDER is specified as 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.

You can change the value of SWNORDER with the MODIFY VTAMOPTS command while VTAM is running. You can override this start otion for specific resources by coding the SWNORDER operand on the GROUP or LINE statements.

SWNORDER=(value_1,value_2)
value_1=CPNAME
Specifies that VTAM searches for a switched PU by the CPNAME first.
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_1=STATNID
Specifies that VTAM searches for a switched PU by the station identifier.
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.
Note: SWNORDER controls only regular (non-DLUR) switched PUs. For DLUR-defined PUs, see the DLRORDER start option.