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


Example: specifying the collating sequence

The following example shows the ENVIRONMENT DIVISION coding that you can use to specify a collating sequence in which uppercase and lowercase letters are similarly handled in comparisons and in sorting and merging.

When you change the ASCII sequence in the SPECIAL-NAMES paragraph, the overall collating sequence is affected, not just the collating sequence of the characters that are included in the SPECIAL-NAMES paragraph.

IDENTIFICATION DIVISION.
. . .
ENVIRONMENT DIVISION.
  CONFIGURATION SECTION.
   Object-Computer.
      Program Collating Sequence Special-Sequence.
   Special-Names.
      Alphabet Special-Sequence Is
          “A” Also “a”
          “B” Also “b”
          “C” Also “c”
          “D” Also “d”
          “E” Also “e”
          “F” Also “f”
          “G” Also “g”
          “H” Also “h”
          “I” Also “i”
          “J” Also “j”
          “K” Also “k”
          “L” Also “l”
          “M” Also “m”
          “N” Also “n”
          “O” Also “o”
          “P” Also “p”
          “Q” Also “q”
          “R” Also “r”
          “S” Also “s”
          “T” Also “t”
          “U” Also “u”
          “V” Also “v”
          “W” Also “w”
          “X” Also “x”
          “Y” Also “y”
          “Z” Also “z”.

related tasks
Specifying the collating sequence


Terms of use | Feedback

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