Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 14
LN Clause
KEYTAG Clause Example
The PARTINFO record structure is described within the RECORD statement. KEYTAG
clauses, rather than
key-assignment
statements, specify the primary key PARTNUM
and the alternate key PARTNAME in the following example:
CONSTANT partnum-heading VALUE IS "Part/Number".
CONSTANT partnum-display VALUE IS "M<ZZZ,ZZ9.99>".
RECORD partinfo.
FILE IS "$data.sales.parts" KEY-SEQUENCED.
02 partnum PIC 9(4) KEYTAG 0
HEADING partnum-heading.
02 partname PIC X(18) KEYTAG "pn".
02 inventory PIC 9(3)S.
02 location PIC X(3).
02 price PIC 9(6)V99 DISPLAY partnum-display.
END
LN Clause
The LN clause specifies the language, territory, and character set for a text item.
value
specifies the value associated with the clause containing the locale name. See the
other clause descriptions in this section for more information.
locale-name
either of the following:
constant-name
specifies a DDL name for a constant, as previously defined in the DDL
dictionary. The name cannot be the same as a DDL keyword or reserved word.
LN"string"
specifies the value of a string constant;
string
is a string of from 1 to 130
ASCII characters in the following form:
language-code[_territory-code][.charset]
language-code
is a character string forming a language symbol.
{ [value locale-name] ... }