LIST Declaration

A LIST declaration associates an ordered set of list elements with a list identifier. The list identifier is used in a READ statement or WRITE statement to indicate which entities are to be read or written.

<list declaration>

         ┌◄─────────────────────── , ───────────────────────┐
         │                   ┌◄────────── , ──────────┐     │
── LIST ─┴─<identifier>── ( ─┴─┬─────┬─<list element>─┴─ ) ─┴──────────┤
                               └─ * ─┘

<list identifier>

An identifier that is associated with a set of list elements in a LIST declaration.

Although the syntax of the READ statement and WRITE statement allows the list elements to be listed within the statement itself, a LIST declaration provides a way to associate a list identifier with a specific group of list elements.

A simple complex expression or complex value appearing in a list is considered to be a pair of real values: the first value is the real part of the complex value, and the second is the imaginary part.