Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 31
PICTURE Clause
°
If a numeric, national, or alphanumeric field is not defined in or referenced by a
RECORD statement, the maximum field length is 32,767 bytes.
°
If a numeric, national, or alphanumeric field is defined in or referenced by a
RECORD statement, the maximum field length is the maximum record length,
which depends on file type:
PICTURE Clause Examples
The following example illustrates PICTURE clauses that describe ASCII character
fields:
The following example illustrates PICTURE clauses that describe binary fields:
Appendix C, DDL Data Translation
, contains tables showing how DDL translates
similar PICTURE clauses to host-language source-code output.
Entry-sequenced files
4,072 bytes
Key-sequenced files
4,062 bytes
Relative files
4,072 bytes
Unstructured files
4,096 bytes
DEF ascii-pictures
02 alpha-field PIC A (10) .
02 alphanum-2 PIC X (10) .
02 alphanum-1 PIC AAX (4) 9 (4) .
02 nat-field PIC N (5) .
02 unsigned
PIC 9 (5) .
02 signed-1
PIC S9 (5) .
02 signed-1 PIC 9 (5)S .
02 signed-2 PIC T9 (5) .
02 signed-3 PIC 9 (5)T .
02 imp-decimal PIC 9 (3) V9 (2) .
END .
10 alphabetic characters
10 alphanumeric characters
10 alphanumeric characters
5 two-byte national characters
5 unsigned digits
5 digits plus leading sign
5 digits plus trailing sign
5 digits plus embedded leading sign
5 digits plus embedded training sign
5 digits with implied decimal point
VST604.vsd
DEF binary-pictures .
02 binary-int
PIC 9 (4) COMP .
02 binary-int -s PIC S9 (4) COMP .
02 binary-int 2 PIC 9 (5) COMP.
02 binary-int2-s PIC S9 (5) COMP .
02 binary-int4
PIC 9 (10) COMP .
02 binary-int4-s PIC S9 (10) COMP .
END .
2-byte unsigned integer
8-byte signed integer
8-byte unsigned integer
4-byte signed integer
4-byte unsigned integer
2-byte signed integer
VST605.vsd