Specifying the collating sequence

You can use the PROGRAM COLLATING SEQUENCE clause and the ALPHABET clause of the SPECIAL-NAMES paragraph to establish the collating sequence that is used in several operations on alphanumeric items.

These clauses specify the collating sequence for the following operations on alphanumeric items:

Example: specifying the collating sequence

The sequence that you use can be based on one of these alphabets:

You can also specify a collating sequence that you define.

Restriction: If the code page is DBCS, Extended UNIX Code (EUC), or UTF-8, you cannot use the ALPHABET clause.

The PROGRAM COLLATING SEQUENCE clause does not affect comparisons that involve national or DBCS operands.