AT_BANNER([RENAME VARIABLES])

AT_SETUP([RENAME VARIABLES])
AT_DATA([rename-variables.sps], [dnl
DATA LIST LIST /brakeFluid * y * .
BEGIN DATA.
1 3
2 3
3 3
4 3
END DATA.

LIST.

RENAME VARIABLES (brakeFluid=applecarts).

LIST.

SAVE /OUTFILE='rename.sav'.
])
AT_CHECK([pspp -o pspp.csv rename-variables.sps])
AT_CHECK([cat pspp.csv], [0], [dnl
Table: Reading free-form data from INLINE.
Variable,Format
brakeFluid,F8.0
y,F8.0

Table: Data List
brakeFluid,y
1.00,3.00
2.00,3.00
3.00,3.00
4.00,3.00

Table: Data List
applecarts,y
1.00,3.00
2.00,3.00
3.00,3.00
4.00,3.00
])
AT_CHECK([grep '[bB][rR][aA][kK][eE]' rename.sav], [1], [ignore-nolog])
AT_CLEANUP
