XSDTotalDigits

Define the maximum number of digits allowed on a numeric data type, fraction part inclusive if there is one.

Note:
  1. The total digits value cannot be equal or lower then 0.
  2. On a 4GL decimal, the total digits value cannot be lower than the precision of the 4GL decimal itself.
  3. Notice that a decimal without any precision and scale value is a decimal(16), therefore the total digits value must be equal or greater than 16.
DEFINE myCode SMALLINT ATTRIBUTE(XSDShort, XSDTotalDigits="4",
  XSDMaxExclusive="1000", XMLName="MyCode")
DEFINE myRate DECIMAL(4,2) ATTRIBUTE(XSDDecimal, XSDTotalDigits="5",
  XSDMaxExclusive="299.99", XMLName="MyRate")