# Count rows/cases in PSPP

I open a .sav file in PSPP (an open-source alternativ to SPSS) with

get file=...sav

Now I would like to see how many rows there exist.

-
 "I cannot guarantee..." sentence is hard to understand. Give more details that would be in line with SPSS. – ttnphns Mar 14 '12 at 14:00

show n in regular old SPSS would do what you want. It doesn't appear to be in the list of commands for PSPP though.
Another possibility would be to compute your own variable based on the casenumber ($casenum), and then print the maximum casenumber. Something like below would do this. compute #mynumber =$casenum.

I think you have to have the variable defined before running a frequency (i.e. I don't think you can do freq var $casenum.). I don't have PSPP around to check, so let me know if this works in that program. -  1. "show n" does not work in PSPP, 2. Your code works! 3. "freq var$casenum." does not work as you guessed – alfonx Mar 14 '12 at 14:00