Function
The CODE-SET clause specifies the character code set used to represent data on the external media.
Format
CODE-SET IS alphabet-name
Syntax rules
When the CODE-SET clause is specified for a file, all data in that file must be described as USAGE IS DISPLAY, and any signed numeric data must be described with the SIGN IS SEPARATE clause.
The alphabet-name clause referenced by the CODE-SET clause must not specify the literal phrase (see "SPECIAL-NAMES paragraph").
General rules
If the CODE-SET clause is specified, alphabet-name specifies the character code convention used to represent data on the external media. It also specifies the algorithm for converting the character codes on the external media from/to the native character codes. This code conversion occurs during the execution of an input or output operation (see "SPECIAL-NAMES paragraph").
If the CODE-SET clause is not specified, the native character code set (EBCDIC) is assumed for data on the external media.
If the CODE-SET clause refers to an external file, an identical CODE-SET clause must be specified in all programs that describe this external file.