Data Definition Language (DDL) Reference Manual
Definition Attributes
Data Definition Language (DDL) Reference Manual—529431-004
6-25
PICTURE
PICTURE
The PICTURE clause specifies (using COBOL notation) the data type and size of a
field or of a field.
picture-string
specifies the data type and size of a field:
{ alphanumeric-string | numeric-string }
alphanumeric-string
{ A | X | 9 }...[(length)]
numeric-string
{ [S]9...[(length)[V[9...[(length)]]]] }
{ T[9...[(length)[V[9...[(length)]]]]] }
{ 9...[(length)[V[9...[(length)]]]]S }
{ 9...[(length)[V[9...[(length)]]]]T }
X
represents any ASCII character.
A
represents any lowercase or uppercase letter of the alphabet or an
ASCII blank.
DDL Code for DEPENDING ON Clause COBOL Code for DEPENDING ON Clause
DEF xyz.
02 i TYPE BINARY
02 abc TYPE BINARY
OCCURS 1 to 3
TIMES
DEPENDING ON i
INDEXED BY ix.
END.
01 XYZ.
02 I NATIVE-2.
02 ABC NATIVE-2
OCCURS 1 TO 3
TIMES
DEPENDING ON I OF
XYZ
INDEXED BY IX.
PIC[TURE] { "{picture-string }" }
{ {national-picture-string } }
{ }
{ {picture-string } }
{ {national-picture-string } }
Example 6-20. OCCURS DEPENDING ON Clause (page 2 of 2)