1 AT_BANNER([DATASET commands])
3 AT_SETUP([DATASET COPY])
4 AT_DATA([dataset.pspp], [dnl
6 DATA LIST NOTABLE /x 1.
18 DATA LIST NOTABLE /y 1.
27 DATASET ACTIVATE clone.
31 DATASET ACTIVATE initial.
38 DATASET ACTIVATE clone.
43 DATASET CLOSE initial.
46 AT_CHECK([pspp -O format=csv dataset.pspp], [0], [dnl
56 initial (active dataset)
60 clone (active dataset)
74 initial (active dataset)
90 unnamed dataset (active dataset)
95 unnamed dataset (active dataset)
99 AT_SETUP([DATASET DECLARE])
100 AT_DATA([dataset.pspp], [dnl
101 DATASET DECLARE second.
103 DATA LIST NOTABLE/x 1.
108 DATASET ACTIVATE second.
112 AT_CHECK([pspp -O format=csv dataset.pspp], [1], [dnl
113 Table: Open datasets.
115 unnamed dataset (active dataset)
122 Table: Open datasets.
124 second (active dataset)
126 dataset.pspp:10: error: LIST: LIST is allowed only after the active dataset has been defined.
130 AT_SETUP([DATASET NAME deletes duplicate name])
131 AT_DATA([dataset.pspp], [dnl
141 AT_CHECK([pspp -O format=csv dataset.pspp], [0], [dnl
142 Table: Open datasets.
148 Table: Open datasets.
154 AT_SETUP([DATASET ACTIVATE deletes unnamed dataset])
155 AT_DATA([dataset.pspp], [dnl
162 AT_CHECK([pspp -O format=csv dataset.pspp], [0], [dnl
163 Table: Open datasets.
165 unnamed dataset (active dataset)
168 Table: Open datasets.
174 AT_SETUP([DATASET ACTIVATE executes pending transformations])
175 AT_DATA([dataset.pspp], [dnl
177 DATASET DECLARE another.
180 DATA LIST NOTABLE /x 1.
182 DATASET ACTIVATE another.
193 DATASET ACTIVATE one.
196 AT_CHECK([pspp -O format=csv dataset.pspp], [1], [dnl
197 Table: Open datasets.
212 dataset.pspp:16: error: LIST: LIST is allowed only after the active dataset has been defined.
224 AT_SETUP([DATASET CLOSE])
225 AT_DATA([dataset.pspp], [dnl
240 DATASET DECLARE that.
241 DATASET DECLARE theother.
242 DATASET DECLARE yetanother.
248 DATASET DECLARE that.
249 DATASET DECLARE theother.
250 DATASET DECLARE yetanother.
255 AT_CHECK([pspp -O format=csv dataset.pspp], [0], [dnl
256 Table: Open datasets.
258 unnamed dataset (active dataset)
260 Table: Open datasets.
262 unnamed dataset (active dataset)
264 Table: Open datasets.
266 this (active dataset)
268 Table: Open datasets.
270 unnamed dataset (active dataset)
272 Table: Open datasets.
274 this (active dataset)
276 Table: Open datasets.
278 unnamed dataset (active dataset)
280 Table: Open datasets.
282 unnamed dataset (active dataset)
287 Table: Open datasets.
289 unnamed dataset (active dataset)
291 Table: Open datasets.
295 this (active dataset)
298 Table: Open datasets.
300 unnamed dataset (active dataset)