Use this position to specify the data type associated with the field. The valid entries for this field for a printer file are:
Figure 1 shows how to code the data type.
If you do not specify a data type, and do not duplicate one from a referenced field, the OS/400 program assigns a default value as follows:
Notes:
The significand sign is not printed for a positive value. The number of digits in the significand is determined by the length specified (positions 30 through 34). The location of the decimal point or the comma is determined by the decimal positions specified (positions 36 and 37). The exponent character and the exponent sign are always printed. The exponent is always 3 digits.
The printed length for a floating-point field is 7 positions greater than the length specified in positions 30 through 34. The 7 extra positions are for (a) the significand sign, (b) the decimal point or comma, (c) the exponent character, (d) the exponent sign, and (e) the 3 exponent digits.
The field length (*DDS positions 30 and 34) for these data types must be blank. The field length is determined by the following rules:
Fields that specify these data types are treated as alphanumeric data when printed. It is up to the application program to provide the data in the correct format and length according to the data type and keywords specified for these fields.
Blank is the only supported value for decimal positions (DDS positions 36 and 37).
Zero suppression is not supported for these data types. EDTCDE and EDTWRD keywords are not valid and the &cpf. program does not perform zero suppression by default as it does for signed-numeric fields.
The following field level keywords are not allowed with these data
types.
BARCODE | FLTFIXDEC |
BLKFOLD | FLTPCN |
DATE | IGCCDEFNT |
DFT | IGCCHRRRT |
EDTCDE | MSGCON |
EDTWRD | PAGNBR |
| TIME |
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.