Format 2: condition-name value >>-88--condition-name-1--+-VALUE--+----+---+--------------------> | '-IS-' | '-VALUES--+-----+-' '-ARE-' .---------------------------------------. V | >----literal-1--+------------------------+-+--.---------------->< '-+-THROUGH-+--literal-2-' '-THRU----'
This format associates a value, values, or ranges of values with a condition-name. Each such condition-name requires a separate level-88 entry. Level-number 88 and the condition-name are not part of the format-2 VALUE clause itself. They are included in the format only for clarity.
Condition-names are tested procedurally in condition-name conditions (see Conditional expressions).
The class of literal-1 must be a valid class for assignment to the associated conditional variable.
literal-1 and literal-2 must be of the same class. The class of literal-1 and literal-2 must be a valid class for assignment to the associated conditional variable.
When literal-1 and literal-2 are DBCS literals, the range of DBCS values specified by the THROUGH phrase is based on the binary collating sequence of the hexadecimal values of the DBCS characters.
When literal-1 and literal-2 are national literals, the range of national character values specified by the THROUGH phrase is based on the binary collating sequence of the hexadecimal values of the national characters represented by the literals.
If the associated conditional variable is of class DBCS, literal-1 and literal-2 must be DBCS literals. The figurative constant SPACE or the figurative constant ALL DBCS-literal can be specified.
If the associated conditional variable is of class national, literal-1 and literal-2 must be either both national literals or both alphanumeric literals for a given condition-name. The figurative constants ZERO, SPACE, QUOTE, HIGH-VALUE, LOW-VALUE, symbolic-character, ALL national-literal, or ALL literal can be specified.
Each entry must end with a separator period.
| Type of conditional variable | Relation condition rules |
|---|---|
| Alphanumeric group item | Group comparisons |
| National group item (treated as elementary data item of class national) | National comparisons |
| Elementary data item of class alphanumeric | Alphanumeric comparisons |
| Elementary data item of class national | National comparisons |
| Elementary data item of class numeric | Numeric comparisons |
| Elementary data item of class DBCS | DBCS comparisons |
The PICTURE associated with COUNTY-NO limits the condition-name value to a two-digit numeric literal.
The PICTURE associated with CITY limits the condition-name value to a three-character alphanumeric literal.
Any values for the condition-names associated with CITY-COUNTY-INFO cannot exceed five characters.
Because this is an alphanumeric group item, the literal must be alphanumeric.
05 CITY-COUNTY-INFO.
88 BRONX VALUE "03NYC".
88 BROOKLYN VALUE "24NYC".
88 MANHATTAN VALUE "31NYC".
88 QUEENS VALUE "41NYC".
88 STATEN-ISLAND VALUE "43NYC".
10 COUNTY-NO PICTURE 99.
88 DUTCHESS VALUE 14.
88 KINGS VALUE 24.
88 NEW-YORK VALUE 31.
88 RICHMOND VALUE 43.
10 CITY PICTURE X(3).
88 BUFFALO VALUE "BUF".
88 NEW-YORK-CITY VALUE "NYC".
88 POUGHKEEPSIE VALUE "POK".
05 POPULATION...
For more information about using condition-names with windowed date fields, see Condition-name conditions and windowed date field comparisons.