COUNT Subcommand (VARSTOCASES command)

When there are no null data, VARSTOCASES generates n new rows for each row in the original data file, where n is the number of variables on the FROM list(s). When the original data file contains null values and you drop them, it is possible to generate a different number of rows for a given subject in the original data file. The COUNT subcommand creates a new variable that contains the number of new rows generated by the original subject.

  • One new variable is named on the COUNT subcommand. It must have a unique name.
  • The label for the new variable is optional and, if specified, must be enclosed in quotes.
  • The format of the new variable is F4.0.