z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


STATS—Set or Query Stats Mode

z/OS ISPF Edit and Edit Macros
SC19-3621-00

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

The STATS assignment statement either sets stats mode, or retrieves the setting of stats mode and places it in a variable.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

                   .-ON--.   
>>-ISREDIT--STATS--+-----+-------------------------------------><
                   +-OFF-+   
                   '-EXT-'   

ON
Creates or updates library statistics when the data is saved.
OFF
Does not create or update library statistics.
EXT
Same as for ON, but stores extended line number statistics.
Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(varname)-- = --STATS------------------------------><

Read syntax diagramSkip visual syntax diagram
                        .-ON--.   
>>-ISREDIT--STATS-- = --+-----+--------------------------------><
                        +-OFF-+   
                        '-EXT-'   

varname
The name of a variable to contain the setting of stats mode, either ON or OFF.
ON
Same as macro command syntax.
OFF
Same as macro command syntax.
EXT
Same as macro command syntax.

See Statistics for PDS members for more information.

Return codes

0
Normal completion
20
Severe error

Examples

To put the value of stats mode in variable &LIBSTAT:
ISREDIT (LIBSTAT) = STATS
To set stats mode on:
ISREDIT STATS = ON
To set stats mode off:
ISREDIT STATS OFF
To reset stats mode from the mode saved in variable &LIBSTAT:
ISREDIT STATS = &LIBSTAT

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014