Problem:
How do you define a custom collating sequence?
Resolution:
Check the language reference manual. Below is the syntax that can be used to define an alphabet and how to make that alphabet the collating sequence for the program. Changing the collating sequence in this manner impacts everything in the program, if statements, condition name conditions, key sequences in randomly accessed files and sort statements. The alphabet is just an ordered series of literal values. Ranges can be specified with through/thru.
environment division.
configuration section.
object-computer.
program collation sequence is alphabet-name-1.
special-names.
alphabet alphabet-name-1 is
literal-1 thru literal-2
literal-3
also literal-4.
For an example, see attachment below.