Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


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, you cannot use the ALPHABET clause.

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

related tasks
Choosing alternate collating sequences
Controlling the collating sequence with a locale
Setting the locale
Comparing national (UTF-16) data


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)