income.spssIt shows how to read data from the command file and produce descriptive statistics.
set width=80 highres=off
* Read data, set missing values for persinc
data list free / gender race persinc
missing values persinc (99)
begin data
1 1 20
1 1 99
1 1 13
2 1 1
1 1 10
2 2 5
2 1 12
1 1 7
2 1 99
2 2 2
end data
* Produce descriptive statistics
descriptives var=all
end of sample command file
% spss -m < income.spss >! income.lstNOTE: Be sure you DO NOT use the same name for your command file (here income.spss) that you use for your output file (here income.lst).
The results are written to the file
income.lst
