The CODE-SET clause specifies the alphabet to use for a sequential file.

General Format

CODE-SET IS alphabet

Syntax Rules

  1. alphabet is the name of an alphabet declared in the SPECIAL-NAMES section.
  2. The CODE-SET clause may be associated only with a sequential file.
  3. If the CODE-SET clause is used, then only USAGE DISPLAY items may appear in the file's record description entry. Furthermore, every signed numeric field must have a SIGN IS SEPARATE clause.

General Rule

The CODE-SET clause associates a character set with a sequential file. If the character set is not the native character set, then a translation to the native set is also implied.