Cardinality Function

There can be times to use this function, but often it is used poorly. If this function is used poorly, it can contribute to bad performance and to memory abends.

The following guidelines apply to using this function:
  • Don't use it to set an iterative limit on a loop that then uses array index notation.
  • Don't use it to count the number of elements in a large, unparsed file since this will likely cause an abend.
  • Don't use it to test for the existence of an element