Define the maximum number of digits allowed on a numeric data type, fraction part inclusive if there is one.
DEFINE myCode SMALLINT ATTRIBUTES(XSDShort, XSDTotalDigits="4", XSDMaxExclusive="1000", XMLName="MyCode")
DEFINE myRate DECIMAL(4,2) ATTRIBUTES(XSDDecimal, XSDTotalDigits="5", XSDMaxExclusive="299.99", XMLName="MyRate")