── SERIALNO ── = ── <serial number list> ──────────────────────────────┤
──┬─<serial number>────────────────────────┬───────────────────────────┤ │ ┌◄──────────── , ────────────┐ │ └─ ( ─┴─/9999\─┬─────────────────┬─┴─ ) ─┘ └─<serial number>─┘
──┬─ <integer expression> ─┬───────────────────────────────────────────┤ └─ <string expression> ──┘
Explanation
Serial number assignments assign values to the SERIALNO file attribute. When the WFL job or its tasks create or search for the file, they do so on the volumes with the specified serial numbers. For further details, refer to the File Attributes Programming Reference Manual.
The value assigned to the SERIALNO attribute is a string six characters long. If the serial number given is an integer constant, it must be a positive integer less than or equal to 999999. The integer constant is automatically converted to a string with the correct length. If the serial number given is a string constant less than six characters long, then it is automatically padded with blanks at the end to ensure that the resulting string is the correct length.
If a real constant or expression is specified for a serial number, it will be integerized with truncation. This is equivalent to the WFL statement INTEGER (<real expression>).
When specifying a list of serial numbers for the reels of a multiple reel tape file, an empty serial number can be specified for any of the reels.
Example
The following file equation assigns no serial number to the third reel of file T1:
FILE T1(KIND=TAPE, SERIALNO=(1,2,,4));