1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
на выбранные.
* Автор: Raynald Levesque, 7.4.2004.

GET FILE='c:\\program files\\spss\\employee data.sav'.

* Экспорт переменных id gender и jobcat на лист "id_gender_job".
SAVE TRANSLATE
 /TYPE=odbc
 /CONNECT="DSN=Excel Files;DBQ=C:\\temp\\demo.xls;"
 /TABLE="id_gender_job"
 /KEEP=id gender jobcat
 /UNSELECT=retain
 /REPLACE.

* Экспорт переменных id gender и salary на лист "id_gender_sal".
SAVE TRANSLATE
 /TYPE=odbc
 /CONNECT="DSN=Excel Files;DBQ=C:\\temp\\demo.xls;"
 /TABLE="id_gender_sal"
 /KEEP=id gender salary
 /UNSELECT=retain
 /REPLACE.