ILE COBOL Language Reference


ALPHABET Clause

The ALPHABET clause provides a means of relating an alphabet-name to a specified character code set or collating sequence.

ALPHABET Clause - Format
 
>>-ALPHABET--alphabet-name-1--+----+---------------------------->
                              '-IS-'
 
>--+-STANDARD-1--------------------------------+---------------><
   +-STANDARD-2--------------------------------+
   +-NATIVE------------------------------------+
   +-EBCDIC------------------------------------+
   |         (1)                               |
   +-NLSSORT-----------------------------------+
   | .---------------------------------------. |
   | V                                       | |
   '---literal-1--+------------------------+-+-'
                  +-+-THROUGH-+--literal-2-+
                  | '-THRU----'            |
                  | .-----------------.    |
                  | V                 |    |
                  '---ALSO--literal-3-+----'
 
 

Notes:

  1. IBM Extension

It specifies a collating sequence when used in either:

It specifies a character code set when specified in

Note:
The EBCDIC collating sequence is used when the alphabet-name clause is omitted.

Related Information:

alphabet-name-1

Alphabet-name-1 follows the rules for user-defined names. At least one character must be alphabetic. Alphabet-name-1 identifies a specific character code set or collating sequence.
STANDARD-1

Specifies the ASCII character set.
STANDARD-2

Specifies the International Reference Version of the ISO 7-bit code defined in International Standard 646, 7-bit Coded Character Set for Information Processing Interchange.
NATIVE

Specifies the EBCDIC character set.
EBCDIC
Specifies the EBCDIC character set.
NLSSORT

Use the SRTSEQ and LANGID specifications in the compiler options (or implied defaults) for alternate collating sequence aspects of the alphabet-name. An alphabet-name associated with NLSSORT can be referred to only in the PROGRAM COLLATING SEQUENCE clause or in the COLLATING SEQUENCE phrase of the SORT and MERGE statements.
literal-1, literal-2, literal-3
Specifies that the collating sequence is to be determined by the program, according to the following rules:

When literal-1, literal-2, or

literal-3 is specified, the alphabet-name must not be referred to in a CODE-SET clause (see CODE-SET Clause).

+-------------------------------IBM Extension--------------------------------+

DBCS literals and floating-point literals may not be used in a user-specified collating sequence.

+----------------------------End of IBM Extension----------------------------+


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]