Dictionary/3000 Reference Manual (32244-90001)

Chapter 5 175
Dictionary/3000 Utilities
DICTVPD
L = VPLUS Field Length
* when computing these numbers always round down
The following examples use the chart above to determine how data types, size, decimal and
storage lengths are converted into the dictionary if the elements have NOT been
previously defined and you have selected DEFAULT conversion.
Example
VPLUS DICTIONARY
Type Field Length Type(Size,Decimal,Storage Length)
CHAR 10 X(10,0,10)
Dictionary converts the CHAR to type X and takes the VPLUS field length as its size and
storage length. Decimal is 0.
NUM 10 R(9,0,8)
Dictionary converts type to R. Size is 9 because the VPLUS field length is 10, and 10 - 1 is
9. Decimal is 0. Storage length is 8.
NUM 1 R(1,0,4)
VPLUS DICTIONARY/3000
TYPE FIELD LENGTH TYPE SIZE DECIMAL STORAGE
LENGTH
CHAR L X L O L
NUM L (if L is 1) R 1 0 4
L (if L is 2, 3, 4, 5 or 6) R L-1 0 8
L (if L is 7 or greater) R L-1 0 8
NUMn L (if L is 1) I 1 n 2
L (if L is 2, 3, 4, or 5) I L-1 n 2
L (if L is 6, 7, 8, 9 or 10) I L-1 n 4
L (if L is 11 or greater) P L-1 n * (L + 1)/2
DIG L (if L is 1, 2, 3, or 4) I+ L 0 2
L (if L is 5, 6, 7, 8 or 9) I+ L 0 4
L (if L is 10 or greater) P+ L 0 * (L +2)/2
IMPn L (if L is 1 I 1 n 2
L (if L is 2, 3, 4, or 5) I L-1 n 2
L (if L is 6, 7, 8, 9 or 10) I L-1 n 2
L (if L is 11 or greater) P L-1 n * (L + 1)/2