STATS—Generate Library Statistics

The STATS primary command sets stats mode, which creates and maintains statistics for a member of a partitioned data set.

Syntax

Read syntax diagramSkip visual syntax diagramSTATSONOFFEXT
ON
Creates or updates library statistics when the data is saved.

If extended statistics are enabled in the site configuration and any of the line number statistic values exceed 65535, the statistics are automatically stored as extended statistics. Otherwise, the statistics are automatically stored as non-extended statistics. Extended statistics contain extended line count fields that can store values up to 2147483647; non-extended statistics do not contain the extended line count fields and can only store line number values up to 65535. If extended statistics are not enabled in the site configuration, 65535 is stored for line number statistic values that exceed 65535.

OFF
Does not create or update library statistics.

If STATS mode is off when you save a member, any previous statistics are lost.

EXT
Has the same function as ON.

See Statistics for PDS members for more information.

Examples

To set stats mode on:
STATS ON
To set stats mode off:
STATS OFF