1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
* Next syntax was saved as "c:\\temp\\test.sps".
GET FILE='c:\\program files\\spss\\employee data.sav'.
SAMPLE .1.
FREQ VAR=jobcat.

* This is the test.bat file (saved in c:\\temp\\).
cd c:\\Program files\\SPSS\\
runsyntx.exe c:\\temp\\test.sps


I am using Win2K and SPSS 11.5. 
1. I opened a DOS window using Start>Run menu 
2. I typed cmd in the "Open:" text window and clicked OK
3. I typed "cd temp" in the DOS window and hit enter
4. I typed "test.bat" and pressed enter.

SPSS was started, the syntax was loaded and run.
The output window contained the required FREQ table.