Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 29
PICTURE Clause
•
The maximum field length depends on data type:
°
If an alphanumeric or national field is used only in working storage (not in a
record), the maximum field length is 32,767 bytes.
°
If an alphanumeric or national field is defined in or referenced by a RECORD
statement, the maximum field length is the maximum record length, which
depends on file type:
•
The maximum length of a numeric field is 18 digits.
•
The symbols S and V are not counted in the 18-digit COBOL limit on numeric
fields; the symbols 9 and T are each counted as 1 digit in the 18-digit COBOL limit
on numeric fields.
•
The DDL symbol S is not the same as the COBOL PICTURE S:
°
In DDL, the symbol S represents a digit with a separate sign. DDL translates
the symbol S into the COBOL PICTURE S and adds a COBOL SIGN clause
with a SEPARATE phrase.
°
If S is the first symbol in a numeric picture string, DDL adds SIGN LEADING
SEPARATE.
°
If S is the last symbol in a numeric picture string, DDL adds SIGN TRAILING
SEPARATE.
•
For COBOL, the symbol T represents a digit that contains an embedded sign:
°
DDL translates the symbol T into PICTURE S9 and adds the COBOL SIGN
clause.
°
If the T is the first character in the PICTURE string, DDL adds SIGN LEADING.
°
If T is the last character, DDL adds SIGN TRAILING.
°
If T is the only character in the PICTURE string, DDL translates the PICTURE
clause into a PIC S9 SIGN IS LEADING clause for COBOL.
°
The symbol T is counted as one digit in a numeric field.
PICTURE Clause Guidelines for FORTRAN
Consider the following guidelines when generating FORTRAN source code:
Entry-sequenced
files
4,072 bytes
Key-sequenced files
4,062 bytes
Relative files
4,072 bytes
Unstructured files
4,096 bytes
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...