Size (content)

Each text or syntax object can be defined with the minimum and maximum sizes in bytes and/or characters. The product determines size for text or syntax objects according to the following rules.
  • When the size of an object is in bytes only, size and validation are calculated according to the size limitations set for bytes.
  • When the size of an object is in characters only, size and validation are calculated according to the size limitations set for characters.
  • When an object has size values defined for both bytes and characters, the object size is determined by characters (based on any character size limitations). Bytes are used to verify that the size of the data did not exceed any byte constraints that were set.

When the content size of a text or syntax item is specified in bytes, initiators, terminators, release characters, and pad characters are excluded from the count.

Min
The minimum size of the data object. You can enter values for bytes and/or characters.

The default value is 0. The largest value allowed is 65535.

Max
The maximum size of the data object. You can enter values for bytes and/or characters.
The default value is 0. The largest value allowed is 65535.
When there is no maximum content size limitation, this value is not required.
During schema analysis, checks are performed on byte and/or character Min and Max values according to the following methods:
  • When values are present for both Min > Bytes and Min > Characters, the Min > Bytes value must be greater than or equal to MinCharacters.
  • When values are present for both MaxBytes and MaxCharacters, MaxBytes must be greater than or equal to MaxCharacters.
  • When no size limitations are present, no verification takes place.
Remember:
  • Some character sets use two or more bytes per character.
  • The trace file and audit log lengths are reported in bytes.