1dnl PSPP - a program for statistical analysis. 2dnl Copyright (C) 2017 Free Software Foundation, Inc. 3dnl 4dnl This program is free software: you can redistribute it and/or modify 5dnl it under the terms of the GNU General Public License as published by 6dnl the Free Software Foundation, either version 3 of the License, or 7dnl (at your option) any later version. 8dnl 9dnl This program is distributed in the hope that it will be useful, 10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12dnl GNU General Public License for more details. 13dnl 14dnl You should have received a copy of the GNU General Public License 15dnl along with this program. If not, see <http://www.gnu.org/licenses/>. 16dnl 17AT_BANNER([FILTER]) 18 19AT_SETUP([FILTER]) 20AT_DATA([filter.sps], [dnl 21data list notable /X 1-2. 22begin data. 231 242 253 264 275 286 297 308 319 3210 33end data. 34compute FILTER_$ = mod(x,2). 35 36filter by filter_$. 37list. 38filter off. 39list. 40compute filter_$ = 1 - filter_$. 41filter by filter_$. 42list. 43]) 44AT_CHECK([pspp -o pspp.csv filter.sps]) 45AT_CHECK([cat pspp.csv], [0], [dnl 46Table: Data List 47X,FILTER_$ 481,1.00 493,1.00 505,1.00 517,1.00 529,1.00 53 54Table: Data List 55X,FILTER_$ 561,1.00 572,.00 583,1.00 594,.00 605,1.00 616,.00 627,1.00 638,.00 649,1.00 6510,.00 66 67Table: Data List 68X,FILTER_$ 692,1.00 704,1.00 716,1.00 728,1.00 7310,1.00 74]) 75AT_CLEANUP 76