SWITCH FILE Declaration

A SWITCH FILE declaration associates an identifier with a list of file designators. Any of these file designators can later be referenced by using the identifier and a number corresponding to the position of the file designator in the list.

<switch file declaration>

──┬──────────┬─ SWITCH ── FILE ──<identifier>── := ────────────────────►
  └─ DIRECT ─┘
►─<switch file list>───────────────────────────────────────────────────┤

<switch file identifier>

An identifier that is associated with a switch file list in a SWITCH FILE declaration.

<direct switch file identifier>

An identifier that is associated with a switch file list in a DIRECT SWITCH FILE declaration.

<switch file list>

  ┌◄──────── , ───────┐
──┴─<file designator>─┴────────────────────────────────────────────────┤

<file designator>

──┬─<file identifier>───────────────────────────────────────┬──────────┤
  ├─<direct file identifier>────────────────────────────────┤
  ├─<switch file identifier>────────┬─ [ ──<subscript>── ] ─┘
  └─<direct switch file identifier>─┘