Dictionary/3000 Reference Manual (32244-90001)

176 Chapter5
Dictionary/3000 Utilities
DICTVPD
Dictionary converts type to R. Size is 1. Decimal is 0. Storage length is 4.
NUM5 10 I(9,5,4)
(n=5)
Dictionary converts type to I. Size is 9 because the VPLUS field length is 10, and 10 - 1 is
9. Decimal is equal to n which is 5. Storage length is 4.
NUM5 20 P(19,5,10)
(n=5)
Dictionary converts type to P. Size is 19 because the VPLUS field length is 20, and 20 - 1 is
19. Decimal is equal to n which is 5. Storage length is 10 because (20 +1)/2 = 10 (rounded
down).
DIG 10 P+(10,0,6)
Dictionary converts type to P+. Size is equal to the VPLUS field length which is 10.
Decimal is 0. Storage length is 6 because (10 + 2)/2 = 6.
IMP5 10 I(9,5,4)
(n=5)
Dictionary converts type to I. Size is 9 because the VPLUS field length is 10, and 10 - 1 is
9. Decimal is equal to n which is 5. Storage length is 4.
IMP5 20 P(19,5,10)
(n=5)
Dictionary converts type to P. Size is 19 because the VPLUS field length is 20, and 20 - 1 is
19. Decimal is equal to n which is 5. Storage length is 10 because (20 + 1)/2 = 10 (rounded
down).
If the data fields (elements) have not been previously defined in the Dictionary, enter N.
This indicates that new element entries are to be created when the elements are loaded
into the Dictionary.
DATA ELEMENTS ALREADY DEFINED(Y/N)>
If the data fields for the forms file have already been defined as elements in the Dictionary,
enter Y in response to the prompt. This indicates that DICTVPD will use the existing
element entries to define the data fields as long as the existing element data is compatible
with the data for the data fields to be loaded. If DICTVPD finds that the two element
definitions are not compatible, an error will be displayed as the utility tries to load the
data field.
DICTVPD determines that an existing dictionary element and a VPLUS field are
compatible if the display size of the dictionary element is 1 less than (for the signed
numeric data types 9, Z, I, P, R, K, J, and E) or equal to (for the remaining data types such
as 9+, Z+, I+, etc.) the VPLUS field length. The reason that the dictionary display size for
signed numeric data types must be 1 less than the VPLUS field length is that the display
size stored in the dictionary does not include a character position for the sign while the
VPLUS field length does. If DICTVPD determines that the dictionary element and the
VPLUS field are incompatible, the user receives an error message and is prompted for a
new primary element name.