This syntax prepares data for the following 2 scripts:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
****************************.
* To shorten variable names.
****************************.
GET FILE='c:\program files\spss\employee data.sav'.
RENAME VARIABLES (salary salbegin =salarydata1 salarydata2).

oms select log
/destination format=oxml outfile='c:\\temp\\namelist.xml'.
save outfile='c:\\temp\\fred.sav' /names.
omsend.
* Run the script "RenameLongToShort.sbs".


****************************.
* To preserve long variable names when portable file format is used.
****************************.

GET FILE='c:\\program files\\spss\\employee data.sav'.
RENAME VARIABLES (salary salbegin =salarydata1 salarydata2).
oms select log
/destination format=oxml outfile='c:\\temp\\exportnamelist.xml'.
export outfile='c:\\temp\\fred.por' .
omsend.

* send fred.por and exportnamelist.xml files to your contact.
* Contact would import file using.
import file='c:\\temp\\fred.por' .
* then run the script "RenamePortShortToLong.sbs" to 
* reinstate long file names.