Tally
Syntax
TALLY number
Parameters
- number: A required integer specifying the number of characters to allocate for the output of the tally count.
Description
Counts the number of entries that meet the criteria defined by preceding Select commands.
Remarks
This command is used to produce a summary count. It should be used with Select commands to filter the data you want to count, and with the Message command to label the output.
Examples
To tally the number of females under 30:
Message Females under 30:
Select SEX
= F
And
Select AGE
< 30
Tally 10