The stat data type

The statcollect() and statprint() functions use an SQL data type called stat.

The corresponding C language structure is called mi_statretval. For an exact description of mi_statretval, see the libmi header file.

Most of the information in mi_statretval is manipulated internally. However, two fields must be filled in by statcollect():
  • The statdata field should contain the histogram for the distribution. UDTs are stored in a multirepresentational format.
  • The szind field should be set to either MI_MULTIREP_SMALL or MI_MULTIREP_LARGE.