AT_BANNER([SPLIT FILE])

AT_SETUP([SPLIT FILE])
AT_DATA([split-file.sps], [dnl
title 'Test SPLIT FILE utility'.

data list notable /X 1 Y 2.
begin data.
12
16
17
19
15
14
27
20
26
25
28
29
24
end data.
split file by x.
list.
])
AT_CHECK([pspp -o pspp.csv split-file.sps])
AT_CHECK([cat pspp.csv], [0], [dnl
Title: Test SPLIT FILE utility

Variable,Value,Label
X,1,

Table: Data List
X,Y
1,2
1,6
1,7
1,9
1,5
1,4

Variable,Value,Label
X,2,

Table: Data List
X,Y
2,7
2,0
2,6
2,5
2,8
2,9
2,4
])
AT_CLEANUP
