1 AT_BANNER([VARIABLE ATTRIBUTES and DATAFILE ATTRIBUTES])
3 AT_SETUP([VARIABLE ATTRIBUTES and DATAFILE ATTRIBUTES])
4 AT_DATA([save-attrs.pspp],
5 [[DATA LIST FREE/a b c.
11 ATTRIBUTE=key('value')
12 array('array element 1')
13 Array[2]('array element 2').
16 ATTRIBUTE=ValidationRule[2]("a + b > 2")
17 ValidationRule[1]('a * b > 3')
19 ATTRIBUTE=QuestionWording('X or Y?').
22 SAVE OUTFILE='attributes.sav'.
24 AT_DATA([get-attrs.pspp],
25 [[GET FILE='attributes.sav'.
28 DELETE=Array[1] Array[2].
33 DELETE=validationrule[2].
37 AT_CHECK([pspp -O format=csv save-attrs.pspp], [0],
38 [[Variable,Description
40 ValidationRule[1],a * b > 3
41 ValidationRule[2],a + b > 2"
43 ValidationRule[1],a * b > 3
44 ValidationRule[2],a + b > 2"
46 QuestionWording,X or Y?"
48 Table: Custom data file attributes.
50 array[1],array element 1
51 array[2],array element 2
54 AT_CHECK([pspp -O format=csv get-attrs.pspp], [0], [dnl
58 ValidationRule,a * b > 3"
60 QuestionWording,X or Y?"
62 Table: Custom data file attributes.