1 AT_BANNER([IMPORT and EXPORT])
3 AT_SETUP([IMPORT and EXPORT])
4 AT_DATA([import-export.sps], [dnl
5 DATA LIST LIST NOTABLE /X Y.
12 EXPORT /OUTFILE='wiz.por'.
13 IMPORT /FILE='wiz.por'.
17 AT_CHECK([pspp -o pspp.csv import-export.sps])
18 AT_CHECK([cat pspp.csv], [0], [dnl
29 # UNSELECTED=DELETE used to cause a crash if there was actually a
31 AT_SETUP([SAVE -- delete unselected])
32 AT_DATA([data.txt], [dnl
33 0 '1 9:30:05' 1/2/2003 "25/8/1995 15:30:00" "'a,b,c'",0
34 , '-0 5:17' 10/31/2010 "9/4/2008 9:29:00" " xxx ",1
35 1.625,'0 12:00',,,xyzzy,1
37 AT_DATA([save.pspp], [dnl
39 DATA LIST LIST NOTABLE FILE="data.txt"
40 /number(F8.3) time(DTIME10) date(ADATE10) datetime(DATETIME20) string(A8)
42 MISSING VALUES number(0) time('0 12:00') string('xyzzy').
44 SAVE /OUTFILE="data.sav" /UNSELECTED=DELETE.
46 AT_DATA([get.pspp], [dnl
50 AT_CHECK([pspp -O format=csv save.pspp])
51 AT_CHECK([pspp -O format=csv get.pspp], [0], [dnl
53 number,time,date,datetime,string,filter
54 . ,-0 05:17,10/31/2010,09-APR-2008 09:29:00,xxx ,1
55 1.625,0 12:00:00,.,.,xyzzy ,1