Add copyright and licence notices to files which lack them.
[pspp] / tests / data / data-in.at
1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
3 dnl 
4 dnl This program is free software: you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation, either version 3 of the License, or
7 dnl (at your option) any later version.
8 dnl 
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 dnl GNU General Public License for more details.
13 dnl 
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 dnl AT_BANNER([data input (data-in)])
17
18 m4_divert_push([PREPARE_TESTS])
19 [data_in_prng () {
20   cat > my-rand.pl <<'EOF'
21 # This random number generator and the test for it below are drawn
22 # from Park and Miller, "Random Number Generators: Good Ones are Hard
23 # to Come By", Communications of the ACM 31:10 (October 1988).  It is
24 # documented to function properly on systems with a 46-bit or longer
25 # real significand, which includes systems that have 64-bit IEEE reals
26 # (with 53-bit significand).  The test should catch any systems for
27 # which this is not true, in any case.
28
29 our ($seed) = 1;
30 sub my_rand {
31   my ($modulo) = @_;
32   my ($a) = 16807;
33   my ($m) = 2147483647;
34   my ($tmp) = $a * $seed;
35   $seed = $tmp - $m * int ($tmp / $m);
36   return $seed % $modulo;
37 }
38 EOF
39   cat > test-my-rand.pl <<'EOF'
40 #! /usr/bin/perl
41 use strict;
42 use warnings;
43 do './my-rand.pl';
44 my_rand (1) foreach 1...10000;
45 our $seed;
46 die $seed if $seed != 1043618065;
47 EOF
48 }
49 date_in () {
50   data_in_prng
51   cat > date-in.pl << 'EOF'
52 #! /usr/bin/perl
53
54 use strict;
55 use warnings;
56
57 do './my-rand.pl';
58
59 my ($fmt_name, @templates) = @ARGV;
60
61 my @dates = (#yyyy  mm  dd  jjj  HH  MM  SS
62              [1648,  6, 10, 162,  0,  0,  0],
63              [1680,  6, 30, 182,  4, 50, 38],
64              [1716,  7, 24, 206, 12, 31, 35],
65              [1768,  6, 19, 171, 12, 47, 53],
66              [1819,  8,  2, 214,  1, 26,  0],
67              [1839,  3, 27,  86, 20, 58, 11],
68              [1903,  4, 19, 109,  7, 36,  5],
69              [1929,  8, 25, 237, 15, 43, 49],
70              [1941,  9, 29, 272,  4, 25,  9],
71              [1943,  4, 19, 109,  6, 49, 27],
72              [1943, 10,  7, 280,  2, 57, 52],
73              [1992,  3, 17,  77, 16, 45, 44],
74              [1996,  2, 25,  56, 21, 30, 57],
75              [1941,  9, 29, 272,  4, 25,  9],
76              [1943,  4, 19, 109,  6, 49, 27],
77              [1943, 10,  7, 280,  2, 57, 52],
78              [1992,  3, 17,  77, 16, 45, 44],
79              [1996,  2, 25,  56, 21, 30, 57],
80              [2038, 11, 10, 314, 22, 30,  4],
81              [2094,  7, 18, 199,  1, 56, 51]);
82
83 open (SYNTAX, '>', "$fmt_name.sps") or die "$fmt_name.sps: create: $!\n";
84 print SYNTAX "SET EPOCH 1930.\n";
85 print SYNTAX "DATA LIST NOTABLE FILE='$fmt_name.in'/$fmt_name 1-40 ($fmt_name).\n";
86 print SYNTAX "PRINT OUTFILE='$fmt_name.out'/$fmt_name (F16.2).\n";
87 print SYNTAX "EXECUTE.\n";
88 close (SYNTAX);
89
90 my ($fn) = "$fmt_name.in";
91 open (DATA, '>', $fn) or die "$fn: create: $!\n";
92 select DATA;
93 for my $template (@templates) {
94     for my $date (@dates) {
95         print_date_with_template ($date, $template) for 1...10;
96     }
97 }
98 close (DATA);
99
100 sub print_date_with_template {
101     my ($date, $template) = @_;
102     my ($year, $month, $day, $julian, $hour, $minute, $second) = @$date;
103     my ($quarter) = int (($month - 1) / 3) + 1;
104     my ($week) = int (($julian - 1) / 7) + 1;
105     my (@year_types) = ('full');
106     push (@year_types, '2digit') if $year >= 1930 && $year < 2030;
107     for my $c (split ('', $template)) {
108         if ($c eq 'd') {
109             printf (+pick ('%d', '%02d'), $day);
110         } elsif ($c eq 'm') {
111             my ($type) = pick ('arabic', 'roman', 'abbrev', 'full');
112             if ($type eq 'arabic') {
113                 printf (+pick ('%d', '%02d'), $month);
114             } elsif ($type eq 'roman') {
115                 my ($mmm) = ('i', 'ii', 'iii',
116                              'iv', 'v', 'vi',
117                              'vii', 'viii', 'ix',
118                              'x', 'xi', 'xii')[$month - 1];
119                 print_rand_case ($mmm);
120             } elsif ($type eq 'abbrev') {
121                 my ($mmm) = qw (jan feb mar apr may jun
122                                 jul aug sep oct nov dec)[$month - 1];
123                 print_rand_case ($mmm);
124             } elsif ($type eq 'full') {
125                 my ($mmm) = qw (january february march
126                                 april may june
127                                 july august september
128                                 october november december)[$month - 1];
129                 print_rand_case ($mmm);
130             } else {
131                 die;
132             }
133         } elsif ($c eq 'y') {
134             my ($type) = pick (@year_types);
135             if ($type eq '2digit') {
136                 printf (+pick ('%d', '%02d'), $year % 100);
137             } elsif ($type eq 'full') {
138                 print $year;
139             } else {
140                 die;
141             }
142         } elsif ($c eq 'j') {
143             my ($type) = pick (@year_types);
144             if ($type eq '2digit') {
145                 printf ("%02d%03d", $year % 100, $julian);
146             } elsif ($type eq 'full') {
147                 printf ("%04d%03d", $year, $julian);
148             } else {
149                 die;
150             }
151         } elsif ($c eq 'q') {
152             print $quarter;
153         } elsif ($c eq 'w') {
154             print $week;
155         } elsif ($c eq 'H') {
156             printf (+pick ('%d', '%02d'), $hour);
157         } elsif ($c eq 'M') {
158             printf (+pick ('%d', '%02d'), $minute);
159         } elsif ($c eq 'S') {
160             printf (+pick ('%d', '%02d'), $second);
161         } elsif ($c eq '-') {
162             print +pick (' ', '-', '.', ',', '/');
163         } elsif ($c eq ':') {
164             print +pick (' ', ':');
165         } elsif ($c eq ' ') {
166             print ' ';
167         } elsif ($c eq 'Q') {
168             maybe_print_space ();
169             print_rand_case ('q');
170             maybe_print_space ();
171         } elsif ($c eq 'W') {
172             maybe_print_space ();
173             print_rand_case ('wk');
174             maybe_print_space ();
175         } elsif ($c eq '+') {
176             print +pick ('', '-', '+');
177         } else {
178             die;
179         }
180     }
181     print "\n";
182 }
183
184 sub print_rand_case {
185     my ($s) = @_;
186     my ($case) = pick (qw (uc lc tc));
187     if ($case eq 'uc') {
188         print uc ($s);
189     } elsif ($case eq 'lc') {
190         print lc ($s);
191     } elsif ($case eq 'tc') {
192         print ucfirst ($s);
193     } else {
194         die;
195     }
196 }
197
198 sub maybe_print_space {
199    print +pick ('', ' ');
200 }
201
202 sub pick {
203    return $_[int (my_rand ($#_
204                            + 1))];
205 }
206 EOF
207 }
208 time_in () {
209   data_in_prng
210   cat > time-in.pl << 'EOF'
211 #! /usr/bin/perl
212
213 use strict;
214 use warnings;
215
216 do './my-rand.pl';
217
218 my ($skip, $fmt_name, @templates) = @ARGV;
219
220 my_rand (1) foreach 1...$skip;
221
222 my @times = (#  D  HH  MM     SS
223              [  0,  0,  0,  0.00],
224              [  1,  4, 50, 38.68],
225              [  5, 12, 31, 35.82],
226              [  0, 12, 47, 53.41],
227              [  3,  1, 26,  0.69],
228              [  1, 20, 58, 11.19],
229              [ 12,  7, 36,  5.98],
230              [ 52, 15, 43, 49.27],
231              [  7,  4, 25,  9.24],
232              [  0,  6, 49, 27.89],
233              [ 20,  2, 57, 52.56],
234              [555, 16, 45, 44.12],
235              [120, 21, 30, 57.27],
236              [  0,  4, 25,  9.98],
237              [  3,  6, 49, 27.24],
238              [  5,  2, 57, 52.13],
239              [  0, 16, 45, 44.35],
240              [  1, 21, 30, 57.32],
241              [ 10, 22, 30,  4.27],
242              [ 22,  1, 56, 51.18]);
243
244 open (SYNTAX, '>', "$fmt_name.sps") or die "$fmt_name.sps: create: $!\n";
245 print SYNTAX "DATA LIST NOTABLE FILE='$fmt_name.data'/$fmt_name 1-40 ($fmt_name).\n";
246 print SYNTAX "PRINT OUTFILE='$fmt_name.out'/$fmt_name (F16.2).\n";
247 print SYNTAX "EXECUTE.\n";
248 close (SYNTAX);
249
250 my ($fn) = "$fmt_name.data";
251 open (DATA, '>', $fn) or die "$fn: create: $!\n";
252 select DATA;
253 for my $template (@templates) {
254     for my $time (@times) {
255         print_time_with_template ($time, $template) for 1...10;
256     }
257 }
258 close (DATA);
259
260 sub print_time_with_template {
261     my ($time, $template) = @_;
262     my ($day, $hour, $minute, $second) = @$time;
263     for my $c (split ('', $template)) {
264         if ($c eq '+') {
265             print +pick ('', '-', '+');
266         } elsif ($c eq 'D') {
267             printf (+pick ('%d', '%02d'), $day);
268             $day = 0;
269         } elsif ($c eq 'H') {
270             printf (+pick ('%d', '%02d'), $hour + 24 * $day);
271         } elsif ($c eq 'M') {
272             printf (+pick ('%d', '%02d'), $minute);
273         } elsif ($c eq 'S') {
274             printf (+pick ('%.0f', '%02.0f', '%.1f', '%.2f'), $second);
275         } elsif ($c eq ':') {
276             print +pick (' ', ':');
277         } elsif ($c eq ' ') {
278             print ' ';
279         } else {
280             die;
281         }
282     }
283     print "\n";
284 }
285
286 sub pick {
287    return $_[int (my_rand ($#_ 
288                            + 1)) ];
289 }
290 EOF
291 }]
292 m4_divert_pop([PREPARE_TESTS])
293
294 AT_SETUP([numeric input formats])
295 AT_KEYWORDS([data-in])
296 data_in_prng
297 AT_CHECK([$PERL test-my-rand.pl])
298 AT_DATA([num-in.pl],
299 [[#! /usr/bin/perl
300
301 use POSIX;
302 use strict;
303 use warnings;
304
305 do './my-rand.pl';
306
307 for my $number (0, 1, .5, .015625, 123) {
308     my ($base_exp) = floor ($number ? log10 ($number) : 0);
309     for my $offset (-3...3) {
310         my ($exponent) = $base_exp + $offset;
311         my ($fraction) = $number / 10**$offset;
312
313         permute_zeros ($fraction, $exponent);
314     }
315 }
316
317 sub permute_zeros {
318     my ($fraction, $exponent) = @_;
319
320     my ($frac_rep) = sprintf ("%f", $fraction);
321     my ($leading_zeros) = length (($frac_rep =~ /^(0*)/)[0]);
322     my ($trailing_zeros) = length (($frac_rep =~ /(\.?0*)$/)[0]);
323     for my $i (0...$leading_zeros) {
324         for my $j (0...$trailing_zeros) {
325             my ($trimmed) = substr ($frac_rep, $i,
326                                     length ($frac_rep) - $i - $j);
327             next if $trimmed eq '.' || $trimmed eq '';
328
329             permute_commas ($trimmed, $exponent);
330         }
331     }
332 }
333
334 sub permute_commas {
335     my ($frac_rep, $exponent) = @_;
336     permute_dot_comma ($frac_rep, $exponent);
337     my ($pos) = int (my_rand (length ($frac_rep) + 1));
338     $frac_rep = substr ($frac_rep, 0, $pos) . "," . substr ($frac_rep, $pos);
339     permute_dot_comma ($frac_rep, $exponent);
340 }
341
342 sub permute_dot_comma {
343     my ($frac_rep, $exponent) = @_;
344     permute_exponent_syntax ($frac_rep, $exponent);
345     if ($frac_rep =~ /[,.]/) {
346         $frac_rep =~ tr/.,/,./;
347         permute_exponent_syntax ($frac_rep, $exponent);
348     }
349 }
350
351 sub permute_exponent_syntax {
352     my ($frac_rep, $exponent) = @_;
353     my (@exp_reps);
354     if ($exponent == 0) {
355         @exp_reps = pick ('', 'e0', 'e-0', 'e+0', '-0', '+0');
356     } elsif ($exponent > 0) {
357         @exp_reps = pick ("e$exponent", "e+$exponent", "+$exponent");
358     } else {
359         my ($abs_exp) = -$exponent;
360         @exp_reps = pick ("e-$abs_exp", , "e-$abs_exp", "-$abs_exp");
361     }
362     permute_sign_and_affix ($frac_rep, $_) foreach @exp_reps;
363 }
364
365 sub permute_sign_and_affix {
366     my ($frac_rep, $exp_rep) = @_;
367     for my $prefix (pick ('', '$'),
368                     pick ('-', '-$', '$-', '$-$'),
369                     pick ('+', '+$', '$+', '$+$')) {
370         for my $suffix ('', '%') {
371             permute_spaces ("$prefix$frac_rep$exp_rep$suffix");
372         }
373     }
374 }
375
376 sub permute_spaces {
377     my ($s) = @_;
378     $s =~ s/([-+\$e%])/ $1 /g;
379     my (@fields) = split (' ', $s);
380     print join ('', @fields), "\n";
381
382     if ($#fields > 0) {
383         my ($pos) = int (my_rand ($#fields)) + 1;
384         print join ('', @fields[0...$pos - 1]);
385         print " ";
386         print join ('', @fields[$pos...$#fields]);
387         print "\n";
388     }
389 }
390
391 sub pick {
392     return $_[int (my_rand ($#_ + 1))];
393 }
394 ]])
395 AT_CHECK([$PERL num-in.pl > num-in.data])
396 AT_DATA([num-in.sps], [dnl
397 SET ERRORS=NONE.
398 SET MXERRS=10000000.
399 SET MXWARNS=10000000.
400 DATA LIST FILE='num-in.data' NOTABLE/
401         f 1-40 (f)
402         comma 1-40 (comma)
403         dot 1-40 (dot)
404         dollar 1-40 (dollar)
405         pct 1-40 (pct)
406         e 1-40 (e).
407 PRINT OUTFILE='num-in.out'/all (6f10.4).
408 EXECUTE.
409 ])
410 AT_CHECK([pspp -O format=csv num-in.sps])
411 AT_CHECK([gzip -cd < $top_srcdir/tests/data/num-in.expected.gz > expout])
412 AT_CHECK([cat num-in.out], [0], [expout])
413 AT_CLEANUP
414
415 dnl Some very old version of PSPP crashed reading big numbers,
416 dnl so this checks for regressions.
417 AT_SETUP([reading big numbers])
418 AT_KEYWORDS([data-in])
419 AT_DATA([bignum.txt], [dnl
420 0
421 0.1
422 0.5
423 0.8
424 0.9
425 0.999
426 1
427 2
428 3
429 4
430 5
431 12
432 123
433 1234
434 12345
435 123456
436 1234567
437 12345678
438 123456789
439 1234567890
440 19999999999
441 199999999999
442 1234567890123
443 19999999999999
444 199999999999999
445 1234567890123456
446 19999999999999999
447 123456789012345678
448 1999999999999999999
449 12345678901234567890
450 199999999999999999999
451 1234567890123456789012
452 19999999999999999999999
453 123456789012345678901234
454 1999999999999999999999999
455 12345678901234567890123456
456 199999999999999999999999999
457 1234567890123456789012345678
458 19999999999999999999999999999
459 123456789012345678901234567890
460 1999999999999999999999999999999
461 12345678901234567890123456789012
462 199999999999999999999999999999999
463 1234567890123456789012345678901234
464 19999999999999999999999999999999999
465 123456789012345678901234567890123456
466 1999999999999999999999999999999999999
467 12345678901234567890123456789012345678
468 199999999999999999999999999999999999999
469 1234567890123456789012345678901234567890
470 1999999999999999999999999999999999999999
471 1e40
472 1.1e40
473 1.5e40
474 1e41
475 1e50
476 1e100
477 1e150
478 1e200
479 1e250
480 1e300
481 1.79641e308
482 wizzah
483 ])
484 AT_DATA([bignum.sps], [dnl
485 title 'Test use of big numbers'.
486
487 *** Do the portable output.
488 data list file='bignum.txt'/BIGNUM 1-40.
489 list.
490
491 *** Do the nonportable output for fun. 
492 descriptives BIGNUM.
493 ])
494 AT_CHECK([pspp -o pspp.csv bignum.sps], [0], [ignore])
495 AT_CLEANUP
496
497 AT_SETUP([DATE input format])
498 AT_KEYWORDS([data-in])
499 date_in
500 AT_CHECK([$PERL test-my-rand.pl])
501 AT_CHECK([$PERL date-in.pl date d-m-y])
502 AT_CHECK([test -s date.sps])
503 AT_CHECK([test -s date.in])
504 AT_CHECK([pspp -O format=csv date.sps])
505 AT_CHECK([cat date.out], [0], [dnl
506     2071958400.00
507     2071958400.00
508     2071958400.00
509     2071958400.00
510     2071958400.00
511     2071958400.00
512     2071958400.00
513     2071958400.00
514     2071958400.00
515     2071958400.00
516     3083529600.00
517     3083529600.00
518     3083529600.00
519     3083529600.00
520     3083529600.00
521     3083529600.00
522     3083529600.00
523     3083529600.00
524     3083529600.00
525     3083529600.00
526     4221590400.00
527     4221590400.00
528     4221590400.00
529     4221590400.00
530     4221590400.00
531     4221590400.00
532     4221590400.00
533     4221590400.00
534     4221590400.00
535     4221590400.00
536     5859561600.00
537     5859561600.00
538     5859561600.00
539     5859561600.00
540     5859561600.00
541     5859561600.00
542     5859561600.00
543     5859561600.00
544     5859561600.00
545     5859561600.00
546     7472649600.00
547     7472649600.00
548     7472649600.00
549     7472649600.00
550     7472649600.00
551     7472649600.00
552     7472649600.00
553     7472649600.00
554     7472649600.00
555     7472649600.00
556     8092742400.00
557     8092742400.00
558     8092742400.00
559     8092742400.00
560     8092742400.00
561     8092742400.00
562     8092742400.00
563     8092742400.00
564     8092742400.00
565     8092742400.00
566    10114329600.00
567    10114329600.00
568    10114329600.00
569    10114329600.00
570    10114329600.00
571    10114329600.00
572    10114329600.00
573    10114329600.00
574    10114329600.00
575    10114329600.00
576    10945929600.00
577    10945929600.00
578    10945929600.00
579    10945929600.00
580    10945929600.00
581    10945929600.00
582    10945929600.00
583    10945929600.00
584    10945929600.00
585    10945929600.00
586    11327644800.00
587    11327644800.00
588    11327644800.00
589    11327644800.00
590    11327644800.00
591    11327644800.00
592    11327644800.00
593    11327644800.00
594    11327644800.00
595    11327644800.00
596    11376633600.00
597    11376633600.00
598    11376633600.00
599    11376633600.00
600    11376633600.00
601    11376633600.00
602    11376633600.00
603    11376633600.00
604    11376633600.00
605    11376633600.00
606    11391408000.00
607    11391408000.00
608    11391408000.00
609    11391408000.00
610    11391408000.00
611    11391408000.00
612    11391408000.00
613    11391408000.00
614    11391408000.00
615    11391408000.00
616    12920169600.00
617    12920169600.00
618    12920169600.00
619    12920169600.00
620    12920169600.00
621    12920169600.00
622    12920169600.00
623    12920169600.00
624    12920169600.00
625    12920169600.00
626    13044585600.00
627    13044585600.00
628    13044585600.00
629    13044585600.00
630    13044585600.00
631    13044585600.00
632    13044585600.00
633    13044585600.00
634    13044585600.00
635    13044585600.00
636    11327644800.00
637    11327644800.00
638    11327644800.00
639    11327644800.00
640    11327644800.00
641    11327644800.00
642    11327644800.00
643    11327644800.00
644    11327644800.00
645    11327644800.00
646    11376633600.00
647    11376633600.00
648    11376633600.00
649    11376633600.00
650    11376633600.00
651    11376633600.00
652    11376633600.00
653    11376633600.00
654    11376633600.00
655    11376633600.00
656    11391408000.00
657    11391408000.00
658    11391408000.00
659    11391408000.00
660    11391408000.00
661    11391408000.00
662    11391408000.00
663    11391408000.00
664    11391408000.00
665    11391408000.00
666    12920169600.00
667    12920169600.00
668    12920169600.00
669    12920169600.00
670    12920169600.00
671    12920169600.00
672    12920169600.00
673    12920169600.00
674    12920169600.00
675    12920169600.00
676    13044585600.00
677    13044585600.00
678    13044585600.00
679    13044585600.00
680    13044585600.00
681    13044585600.00
682    13044585600.00
683    13044585600.00
684    13044585600.00
685    13044585600.00
686    14392339200.00
687    14392339200.00
688    14392339200.00
689    14392339200.00
690    14392339200.00
691    14392339200.00
692    14392339200.00
693    14392339200.00
694    14392339200.00
695    14392339200.00
696    16149628800.00
697    16149628800.00
698    16149628800.00
699    16149628800.00
700    16149628800.00
701    16149628800.00
702    16149628800.00
703    16149628800.00
704    16149628800.00
705    16149628800.00
706 ])
707 AT_CLEANUP
708
709 AT_SETUP([ADATE input format])
710 AT_KEYWORDS([data-in])
711 date_in
712 AT_CHECK([$PERL test-my-rand.pl])
713 AT_CHECK([$PERL date-in.pl adate m-d-y])
714 AT_CHECK([test -s adate.sps])
715 AT_CHECK([test -s adate.in])
716 AT_CHECK([pspp -O format=csv adate.sps])
717 AT_CHECK([cat adate.out], [0], [dnl
718     2071958400.00
719     2071958400.00
720     2071958400.00
721     2071958400.00
722     2071958400.00
723     2071958400.00
724     2071958400.00
725     2071958400.00
726     2071958400.00
727     2071958400.00
728     3083529600.00
729     3083529600.00
730     3083529600.00
731     3083529600.00
732     3083529600.00
733     3083529600.00
734     3083529600.00
735     3083529600.00
736     3083529600.00
737     3083529600.00
738     4221590400.00
739     4221590400.00
740     4221590400.00
741     4221590400.00
742     4221590400.00
743     4221590400.00
744     4221590400.00
745     4221590400.00
746     4221590400.00
747     4221590400.00
748     5859561600.00
749     5859561600.00
750     5859561600.00
751     5859561600.00
752     5859561600.00
753     5859561600.00
754     5859561600.00
755     5859561600.00
756     5859561600.00
757     5859561600.00
758     7472649600.00
759     7472649600.00
760     7472649600.00
761     7472649600.00
762     7472649600.00
763     7472649600.00
764     7472649600.00
765     7472649600.00
766     7472649600.00
767     7472649600.00
768     8092742400.00
769     8092742400.00
770     8092742400.00
771     8092742400.00
772     8092742400.00
773     8092742400.00
774     8092742400.00
775     8092742400.00
776     8092742400.00
777     8092742400.00
778    10114329600.00
779    10114329600.00
780    10114329600.00
781    10114329600.00
782    10114329600.00
783    10114329600.00
784    10114329600.00
785    10114329600.00
786    10114329600.00
787    10114329600.00
788    10945929600.00
789    10945929600.00
790    10945929600.00
791    10945929600.00
792    10945929600.00
793    10945929600.00
794    10945929600.00
795    10945929600.00
796    10945929600.00
797    10945929600.00
798    11327644800.00
799    11327644800.00
800    11327644800.00
801    11327644800.00
802    11327644800.00
803    11327644800.00
804    11327644800.00
805    11327644800.00
806    11327644800.00
807    11327644800.00
808    11376633600.00
809    11376633600.00
810    11376633600.00
811    11376633600.00
812    11376633600.00
813    11376633600.00
814    11376633600.00
815    11376633600.00
816    11376633600.00
817    11376633600.00
818    11391408000.00
819    11391408000.00
820    11391408000.00
821    11391408000.00
822    11391408000.00
823    11391408000.00
824    11391408000.00
825    11391408000.00
826    11391408000.00
827    11391408000.00
828    12920169600.00
829    12920169600.00
830    12920169600.00
831    12920169600.00
832    12920169600.00
833    12920169600.00
834    12920169600.00
835    12920169600.00
836    12920169600.00
837    12920169600.00
838    13044585600.00
839    13044585600.00
840    13044585600.00
841    13044585600.00
842    13044585600.00
843    13044585600.00
844    13044585600.00
845    13044585600.00
846    13044585600.00
847    13044585600.00
848    11327644800.00
849    11327644800.00
850    11327644800.00
851    11327644800.00
852    11327644800.00
853    11327644800.00
854    11327644800.00
855    11327644800.00
856    11327644800.00
857    11327644800.00
858    11376633600.00
859    11376633600.00
860    11376633600.00
861    11376633600.00
862    11376633600.00
863    11376633600.00
864    11376633600.00
865    11376633600.00
866    11376633600.00
867    11376633600.00
868    11391408000.00
869    11391408000.00
870    11391408000.00
871    11391408000.00
872    11391408000.00
873    11391408000.00
874    11391408000.00
875    11391408000.00
876    11391408000.00
877    11391408000.00
878    12920169600.00
879    12920169600.00
880    12920169600.00
881    12920169600.00
882    12920169600.00
883    12920169600.00
884    12920169600.00
885    12920169600.00
886    12920169600.00
887    12920169600.00
888    13044585600.00
889    13044585600.00
890    13044585600.00
891    13044585600.00
892    13044585600.00
893    13044585600.00
894    13044585600.00
895    13044585600.00
896    13044585600.00
897    13044585600.00
898    14392339200.00
899    14392339200.00
900    14392339200.00
901    14392339200.00
902    14392339200.00
903    14392339200.00
904    14392339200.00
905    14392339200.00
906    14392339200.00
907    14392339200.00
908    16149628800.00
909    16149628800.00
910    16149628800.00
911    16149628800.00
912    16149628800.00
913    16149628800.00
914    16149628800.00
915    16149628800.00
916    16149628800.00
917    16149628800.00
918 ])
919 AT_CLEANUP
920
921 AT_SETUP([EDATE input format])
922 AT_KEYWORDS([data-in])
923 date_in
924 AT_CHECK([$PERL test-my-rand.pl])
925 AT_CHECK([$PERL date-in.pl edate d-m-y])
926 AT_CHECK([test -s edate.sps])
927 AT_CHECK([test -s edate.in])
928 AT_CHECK([pspp -O format=csv edate.sps])
929 AT_CHECK([cat edate.out], [0], [dnl
930     2071958400.00
931     2071958400.00
932     2071958400.00
933     2071958400.00
934     2071958400.00
935     2071958400.00
936     2071958400.00
937     2071958400.00
938     2071958400.00
939     2071958400.00
940     3083529600.00
941     3083529600.00
942     3083529600.00
943     3083529600.00
944     3083529600.00
945     3083529600.00
946     3083529600.00
947     3083529600.00
948     3083529600.00
949     3083529600.00
950     4221590400.00
951     4221590400.00
952     4221590400.00
953     4221590400.00
954     4221590400.00
955     4221590400.00
956     4221590400.00
957     4221590400.00
958     4221590400.00
959     4221590400.00
960     5859561600.00
961     5859561600.00
962     5859561600.00
963     5859561600.00
964     5859561600.00
965     5859561600.00
966     5859561600.00
967     5859561600.00
968     5859561600.00
969     5859561600.00
970     7472649600.00
971     7472649600.00
972     7472649600.00
973     7472649600.00
974     7472649600.00
975     7472649600.00
976     7472649600.00
977     7472649600.00
978     7472649600.00
979     7472649600.00
980     8092742400.00
981     8092742400.00
982     8092742400.00
983     8092742400.00
984     8092742400.00
985     8092742400.00
986     8092742400.00
987     8092742400.00
988     8092742400.00
989     8092742400.00
990    10114329600.00
991    10114329600.00
992    10114329600.00
993    10114329600.00
994    10114329600.00
995    10114329600.00
996    10114329600.00
997    10114329600.00
998    10114329600.00
999    10114329600.00
1000    10945929600.00
1001    10945929600.00
1002    10945929600.00
1003    10945929600.00
1004    10945929600.00
1005    10945929600.00
1006    10945929600.00
1007    10945929600.00
1008    10945929600.00
1009    10945929600.00
1010    11327644800.00
1011    11327644800.00
1012    11327644800.00
1013    11327644800.00
1014    11327644800.00
1015    11327644800.00
1016    11327644800.00
1017    11327644800.00
1018    11327644800.00
1019    11327644800.00
1020    11376633600.00
1021    11376633600.00
1022    11376633600.00
1023    11376633600.00
1024    11376633600.00
1025    11376633600.00
1026    11376633600.00
1027    11376633600.00
1028    11376633600.00
1029    11376633600.00
1030    11391408000.00
1031    11391408000.00
1032    11391408000.00
1033    11391408000.00
1034    11391408000.00
1035    11391408000.00
1036    11391408000.00
1037    11391408000.00
1038    11391408000.00
1039    11391408000.00
1040    12920169600.00
1041    12920169600.00
1042    12920169600.00
1043    12920169600.00
1044    12920169600.00
1045    12920169600.00
1046    12920169600.00
1047    12920169600.00
1048    12920169600.00
1049    12920169600.00
1050    13044585600.00
1051    13044585600.00
1052    13044585600.00
1053    13044585600.00
1054    13044585600.00
1055    13044585600.00
1056    13044585600.00
1057    13044585600.00
1058    13044585600.00
1059    13044585600.00
1060    11327644800.00
1061    11327644800.00
1062    11327644800.00
1063    11327644800.00
1064    11327644800.00
1065    11327644800.00
1066    11327644800.00
1067    11327644800.00
1068    11327644800.00
1069    11327644800.00
1070    11376633600.00
1071    11376633600.00
1072    11376633600.00
1073    11376633600.00
1074    11376633600.00
1075    11376633600.00
1076    11376633600.00
1077    11376633600.00
1078    11376633600.00
1079    11376633600.00
1080    11391408000.00
1081    11391408000.00
1082    11391408000.00
1083    11391408000.00
1084    11391408000.00
1085    11391408000.00
1086    11391408000.00
1087    11391408000.00
1088    11391408000.00
1089    11391408000.00
1090    12920169600.00
1091    12920169600.00
1092    12920169600.00
1093    12920169600.00
1094    12920169600.00
1095    12920169600.00
1096    12920169600.00
1097    12920169600.00
1098    12920169600.00
1099    12920169600.00
1100    13044585600.00
1101    13044585600.00
1102    13044585600.00
1103    13044585600.00
1104    13044585600.00
1105    13044585600.00
1106    13044585600.00
1107    13044585600.00
1108    13044585600.00
1109    13044585600.00
1110    14392339200.00
1111    14392339200.00
1112    14392339200.00
1113    14392339200.00
1114    14392339200.00
1115    14392339200.00
1116    14392339200.00
1117    14392339200.00
1118    14392339200.00
1119    14392339200.00
1120    16149628800.00
1121    16149628800.00
1122    16149628800.00
1123    16149628800.00
1124    16149628800.00
1125    16149628800.00
1126    16149628800.00
1127    16149628800.00
1128    16149628800.00
1129    16149628800.00
1130 ])
1131 AT_CLEANUP
1132
1133 AT_SETUP([JDATE input format])
1134 AT_KEYWORDS([data-in])
1135 date_in
1136 AT_CHECK([$PERL test-my-rand.pl])
1137 AT_CHECK([$PERL date-in.pl jdate j])
1138 AT_CHECK([test -s jdate.sps])
1139 AT_CHECK([test -s jdate.in])
1140 AT_CHECK([pspp -O format=csv jdate.sps])
1141 AT_CHECK([cat jdate.out], [0], [dnl
1142     2071958400.00
1143     2071958400.00
1144     2071958400.00
1145     2071958400.00
1146     2071958400.00
1147     2071958400.00
1148     2071958400.00
1149     2071958400.00
1150     2071958400.00
1151     2071958400.00
1152     3083529600.00
1153     3083529600.00
1154     3083529600.00
1155     3083529600.00
1156     3083529600.00
1157     3083529600.00
1158     3083529600.00
1159     3083529600.00
1160     3083529600.00
1161     3083529600.00
1162     4221590400.00
1163     4221590400.00
1164     4221590400.00
1165     4221590400.00
1166     4221590400.00
1167     4221590400.00
1168     4221590400.00
1169     4221590400.00
1170     4221590400.00
1171     4221590400.00
1172     5859561600.00
1173     5859561600.00
1174     5859561600.00
1175     5859561600.00
1176     5859561600.00
1177     5859561600.00
1178     5859561600.00
1179     5859561600.00
1180     5859561600.00
1181     5859561600.00
1182     7472649600.00
1183     7472649600.00
1184     7472649600.00
1185     7472649600.00
1186     7472649600.00
1187     7472649600.00
1188     7472649600.00
1189     7472649600.00
1190     7472649600.00
1191     7472649600.00
1192     8092742400.00
1193     8092742400.00
1194     8092742400.00
1195     8092742400.00
1196     8092742400.00
1197     8092742400.00
1198     8092742400.00
1199     8092742400.00
1200     8092742400.00
1201     8092742400.00
1202    10114329600.00
1203    10114329600.00
1204    10114329600.00
1205    10114329600.00
1206    10114329600.00
1207    10114329600.00
1208    10114329600.00
1209    10114329600.00
1210    10114329600.00
1211    10114329600.00
1212    10945929600.00
1213    10945929600.00
1214    10945929600.00
1215    10945929600.00
1216    10945929600.00
1217    10945929600.00
1218    10945929600.00
1219    10945929600.00
1220    10945929600.00
1221    10945929600.00
1222    11327644800.00
1223    11327644800.00
1224    11327644800.00
1225    11327644800.00
1226    11327644800.00
1227    11327644800.00
1228    11327644800.00
1229    11327644800.00
1230    11327644800.00
1231    11327644800.00
1232    11376633600.00
1233    11376633600.00
1234    11376633600.00
1235    11376633600.00
1236    11376633600.00
1237    11376633600.00
1238    11376633600.00
1239    11376633600.00
1240    11376633600.00
1241    11376633600.00
1242    11391408000.00
1243    11391408000.00
1244    11391408000.00
1245    11391408000.00
1246    11391408000.00
1247    11391408000.00
1248    11391408000.00
1249    11391408000.00
1250    11391408000.00
1251    11391408000.00
1252    12920169600.00
1253    12920169600.00
1254    12920169600.00
1255    12920169600.00
1256    12920169600.00
1257    12920169600.00
1258    12920169600.00
1259    12920169600.00
1260    12920169600.00
1261    12920169600.00
1262    13044585600.00
1263    13044585600.00
1264    13044585600.00
1265    13044585600.00
1266    13044585600.00
1267    13044585600.00
1268    13044585600.00
1269    13044585600.00
1270    13044585600.00
1271    13044585600.00
1272    11327644800.00
1273    11327644800.00
1274    11327644800.00
1275    11327644800.00
1276    11327644800.00
1277    11327644800.00
1278    11327644800.00
1279    11327644800.00
1280    11327644800.00
1281    11327644800.00
1282    11376633600.00
1283    11376633600.00
1284    11376633600.00
1285    11376633600.00
1286    11376633600.00
1287    11376633600.00
1288    11376633600.00
1289    11376633600.00
1290    11376633600.00
1291    11376633600.00
1292    11391408000.00
1293    11391408000.00
1294    11391408000.00
1295    11391408000.00
1296    11391408000.00
1297    11391408000.00
1298    11391408000.00
1299    11391408000.00
1300    11391408000.00
1301    11391408000.00
1302    12920169600.00
1303    12920169600.00
1304    12920169600.00
1305    12920169600.00
1306    12920169600.00
1307    12920169600.00
1308    12920169600.00
1309    12920169600.00
1310    12920169600.00
1311    12920169600.00
1312    13044585600.00
1313    13044585600.00
1314    13044585600.00
1315    13044585600.00
1316    13044585600.00
1317    13044585600.00
1318    13044585600.00
1319    13044585600.00
1320    13044585600.00
1321    13044585600.00
1322    14392339200.00
1323    14392339200.00
1324    14392339200.00
1325    14392339200.00
1326    14392339200.00
1327    14392339200.00
1328    14392339200.00
1329    14392339200.00
1330    14392339200.00
1331    14392339200.00
1332    16149628800.00
1333    16149628800.00
1334    16149628800.00
1335    16149628800.00
1336    16149628800.00
1337    16149628800.00
1338    16149628800.00
1339    16149628800.00
1340    16149628800.00
1341    16149628800.00
1342 ])
1343 AT_CLEANUP
1344
1345 AT_SETUP([SDATE input format])
1346 AT_KEYWORDS([data-in])
1347 date_in
1348 AT_CHECK([$PERL test-my-rand.pl])
1349 AT_CHECK([$PERL date-in.pl sdate y-m-d])
1350 AT_CHECK([test -s sdate.sps])
1351 AT_CHECK([test -s sdate.in])
1352 AT_CHECK([pspp -O format=csv sdate.sps])
1353 AT_CHECK([cat sdate.out], [0], [dnl
1354     2071958400.00
1355     2071958400.00
1356     2071958400.00
1357     2071958400.00
1358     2071958400.00
1359     2071958400.00
1360     2071958400.00
1361     2071958400.00
1362     2071958400.00
1363     2071958400.00
1364     3083529600.00
1365     3083529600.00
1366     3083529600.00
1367     3083529600.00
1368     3083529600.00
1369     3083529600.00
1370     3083529600.00
1371     3083529600.00
1372     3083529600.00
1373     3083529600.00
1374     4221590400.00
1375     4221590400.00
1376     4221590400.00
1377     4221590400.00
1378     4221590400.00
1379     4221590400.00
1380     4221590400.00
1381     4221590400.00
1382     4221590400.00
1383     4221590400.00
1384     5859561600.00
1385     5859561600.00
1386     5859561600.00
1387     5859561600.00
1388     5859561600.00
1389     5859561600.00
1390     5859561600.00
1391     5859561600.00
1392     5859561600.00
1393     5859561600.00
1394     7472649600.00
1395     7472649600.00
1396     7472649600.00
1397     7472649600.00
1398     7472649600.00
1399     7472649600.00
1400     7472649600.00
1401     7472649600.00
1402     7472649600.00
1403     7472649600.00
1404     8092742400.00
1405     8092742400.00
1406     8092742400.00
1407     8092742400.00
1408     8092742400.00
1409     8092742400.00
1410     8092742400.00
1411     8092742400.00
1412     8092742400.00
1413     8092742400.00
1414    10114329600.00
1415    10114329600.00
1416    10114329600.00
1417    10114329600.00
1418    10114329600.00
1419    10114329600.00
1420    10114329600.00
1421    10114329600.00
1422    10114329600.00
1423    10114329600.00
1424    10945929600.00
1425    10945929600.00
1426    10945929600.00
1427    10945929600.00
1428    10945929600.00
1429    10945929600.00
1430    10945929600.00
1431    10945929600.00
1432    10945929600.00
1433    10945929600.00
1434    11327644800.00
1435    11327644800.00
1436    11327644800.00
1437    11327644800.00
1438    11327644800.00
1439    11327644800.00
1440    11327644800.00
1441    11327644800.00
1442    11327644800.00
1443    11327644800.00
1444    11376633600.00
1445    11376633600.00
1446    11376633600.00
1447    11376633600.00
1448    11376633600.00
1449    11376633600.00
1450    11376633600.00
1451    11376633600.00
1452    11376633600.00
1453    11376633600.00
1454    11391408000.00
1455    11391408000.00
1456    11391408000.00
1457    11391408000.00
1458    11391408000.00
1459    11391408000.00
1460    11391408000.00
1461    11391408000.00
1462    11391408000.00
1463    11391408000.00
1464    12920169600.00
1465    12920169600.00
1466    12920169600.00
1467    12920169600.00
1468    12920169600.00
1469    12920169600.00
1470    12920169600.00
1471    12920169600.00
1472    12920169600.00
1473    12920169600.00
1474    13044585600.00
1475    13044585600.00
1476    13044585600.00
1477    13044585600.00
1478    13044585600.00
1479    13044585600.00
1480    13044585600.00
1481    13044585600.00
1482    13044585600.00
1483    13044585600.00
1484    11327644800.00
1485    11327644800.00
1486    11327644800.00
1487    11327644800.00
1488    11327644800.00
1489    11327644800.00
1490    11327644800.00
1491    11327644800.00
1492    11327644800.00
1493    11327644800.00
1494    11376633600.00
1495    11376633600.00
1496    11376633600.00
1497    11376633600.00
1498    11376633600.00
1499    11376633600.00
1500    11376633600.00
1501    11376633600.00
1502    11376633600.00
1503    11376633600.00
1504    11391408000.00
1505    11391408000.00
1506    11391408000.00
1507    11391408000.00
1508    11391408000.00
1509    11391408000.00
1510    11391408000.00
1511    11391408000.00
1512    11391408000.00
1513    11391408000.00
1514    12920169600.00
1515    12920169600.00
1516    12920169600.00
1517    12920169600.00
1518    12920169600.00
1519    12920169600.00
1520    12920169600.00
1521    12920169600.00
1522    12920169600.00
1523    12920169600.00
1524    13044585600.00
1525    13044585600.00
1526    13044585600.00
1527    13044585600.00
1528    13044585600.00
1529    13044585600.00
1530    13044585600.00
1531    13044585600.00
1532    13044585600.00
1533    13044585600.00
1534    14392339200.00
1535    14392339200.00
1536    14392339200.00
1537    14392339200.00
1538    14392339200.00
1539    14392339200.00
1540    14392339200.00
1541    14392339200.00
1542    14392339200.00
1543    14392339200.00
1544    16149628800.00
1545    16149628800.00
1546    16149628800.00
1547    16149628800.00
1548    16149628800.00
1549    16149628800.00
1550    16149628800.00
1551    16149628800.00
1552    16149628800.00
1553    16149628800.00
1554 ])
1555 AT_CLEANUP
1556
1557 AT_SETUP([QYR input format])
1558 AT_KEYWORDS([data-in])
1559 date_in
1560 AT_CHECK([$PERL test-my-rand.pl])
1561 AT_CHECK([$PERL date-in.pl qyr qQy])
1562 AT_CHECK([test -s qyr.sps])
1563 AT_CHECK([test -s qyr.in])
1564 AT_CHECK([pspp -O format=csv qyr.sps])
1565 AT_CHECK([cat qyr.out], [0], [dnl
1566     2065910400.00
1567     2065910400.00
1568     2065910400.00
1569     2065910400.00
1570     2065910400.00
1571     2065910400.00
1572     2065910400.00
1573     2065910400.00
1574     2065910400.00
1575     2065910400.00
1576     3075753600.00
1577     3075753600.00
1578     3075753600.00
1579     3075753600.00
1580     3075753600.00
1581     3075753600.00
1582     3075753600.00
1583     3075753600.00
1584     3075753600.00
1585     3075753600.00
1586     4219603200.00
1587     4219603200.00
1588     4219603200.00
1589     4219603200.00
1590     4219603200.00
1591     4219603200.00
1592     4219603200.00
1593     4219603200.00
1594     4219603200.00
1595     4219603200.00
1596     5852736000.00
1597     5852736000.00
1598     5852736000.00
1599     5852736000.00
1600     5852736000.00
1601     5852736000.00
1602     5852736000.00
1603     5852736000.00
1604     5852736000.00
1605     5852736000.00
1606     7469884800.00
1607     7469884800.00
1608     7469884800.00
1609     7469884800.00
1610     7469884800.00
1611     7469884800.00
1612     7469884800.00
1613     7469884800.00
1614     7469884800.00
1615     7469884800.00
1616     8085398400.00
1617     8085398400.00
1618     8085398400.00
1619     8085398400.00
1620     8085398400.00
1621     8085398400.00
1622     8085398400.00
1623     8085398400.00
1624     8085398400.00
1625     8085398400.00
1626    10112774400.00
1627    10112774400.00
1628    10112774400.00
1629    10112774400.00
1630    10112774400.00
1631    10112774400.00
1632    10112774400.00
1633    10112774400.00
1634    10112774400.00
1635    10112774400.00
1636    10941177600.00
1637    10941177600.00
1638    10941177600.00
1639    10941177600.00
1640    10941177600.00
1641    10941177600.00
1642    10941177600.00
1643    10941177600.00
1644    10941177600.00
1645    10941177600.00
1646    11319868800.00
1647    11319868800.00
1648    11319868800.00
1649    11319868800.00
1650    11319868800.00
1651    11319868800.00
1652    11319868800.00
1653    11319868800.00
1654    11319868800.00
1655    11319868800.00
1656    11375078400.00
1657    11375078400.00
1658    11375078400.00
1659    11375078400.00
1660    11375078400.00
1661    11375078400.00
1662    11375078400.00
1663    11375078400.00
1664    11375078400.00
1665    11375078400.00
1666    11390889600.00
1667    11390889600.00
1668    11390889600.00
1669    11390889600.00
1670    11390889600.00
1671    11390889600.00
1672    11390889600.00
1673    11390889600.00
1674    11390889600.00
1675    11390889600.00
1676    12913603200.00
1677    12913603200.00
1678    12913603200.00
1679    12913603200.00
1680    12913603200.00
1681    12913603200.00
1682    12913603200.00
1683    12913603200.00
1684    12913603200.00
1685    12913603200.00
1686    13039833600.00
1687    13039833600.00
1688    13039833600.00
1689    13039833600.00
1690    13039833600.00
1691    13039833600.00
1692    13039833600.00
1693    13039833600.00
1694    13039833600.00
1695    13039833600.00
1696    11319868800.00
1697    11319868800.00
1698    11319868800.00
1699    11319868800.00
1700    11319868800.00
1701    11319868800.00
1702    11319868800.00
1703    11319868800.00
1704    11319868800.00
1705    11319868800.00
1706    11375078400.00
1707    11375078400.00
1708    11375078400.00
1709    11375078400.00
1710    11375078400.00
1711    11375078400.00
1712    11375078400.00
1713    11375078400.00
1714    11375078400.00
1715    11375078400.00
1716    11390889600.00
1717    11390889600.00
1718    11390889600.00
1719    11390889600.00
1720    11390889600.00
1721    11390889600.00
1722    11390889600.00
1723    11390889600.00
1724    11390889600.00
1725    11390889600.00
1726    12913603200.00
1727    12913603200.00
1728    12913603200.00
1729    12913603200.00
1730    12913603200.00
1731    12913603200.00
1732    12913603200.00
1733    12913603200.00
1734    12913603200.00
1735    12913603200.00
1736    13039833600.00
1737    13039833600.00
1738    13039833600.00
1739    13039833600.00
1740    13039833600.00
1741    13039833600.00
1742    13039833600.00
1743    13039833600.00
1744    13039833600.00
1745    13039833600.00
1746    14388883200.00
1747    14388883200.00
1748    14388883200.00
1749    14388883200.00
1750    14388883200.00
1751    14388883200.00
1752    14388883200.00
1753    14388883200.00
1754    14388883200.00
1755    14388883200.00
1756    16148160000.00
1757    16148160000.00
1758    16148160000.00
1759    16148160000.00
1760    16148160000.00
1761    16148160000.00
1762    16148160000.00
1763    16148160000.00
1764    16148160000.00
1765    16148160000.00
1766 ])
1767 AT_CLEANUP
1768
1769 AT_SETUP([MOYR input format])
1770 AT_KEYWORDS([data-in])
1771 date_in
1772 AT_CHECK([$PERL test-my-rand.pl])
1773 AT_CHECK([$PERL date-in.pl moyr m-y])
1774 AT_CHECK([test -s moyr.sps])
1775 AT_CHECK([test -s moyr.in])
1776 AT_CHECK([pspp -O format=csv moyr.sps])
1777 AT_CHECK([cat moyr.out], [0], [dnl
1778     2071180800.00
1779     2071180800.00
1780     2071180800.00
1781     2071180800.00
1782     2071180800.00
1783     2071180800.00
1784     2071180800.00
1785     2071180800.00
1786     2071180800.00
1787     2071180800.00
1788     3081024000.00
1789     3081024000.00
1790     3081024000.00
1791     3081024000.00
1792     3081024000.00
1793     3081024000.00
1794     3081024000.00
1795     3081024000.00
1796     3081024000.00
1797     3081024000.00
1798     4219603200.00
1799     4219603200.00
1800     4219603200.00
1801     4219603200.00
1802     4219603200.00
1803     4219603200.00
1804     4219603200.00
1805     4219603200.00
1806     4219603200.00
1807     4219603200.00
1808     5858006400.00
1809     5858006400.00
1810     5858006400.00
1811     5858006400.00
1812     5858006400.00
1813     5858006400.00
1814     5858006400.00
1815     5858006400.00
1816     5858006400.00
1817     5858006400.00
1818     7472563200.00
1819     7472563200.00
1820     7472563200.00
1821     7472563200.00
1822     7472563200.00
1823     7472563200.00
1824     7472563200.00
1825     7472563200.00
1826     7472563200.00
1827     7472563200.00
1828     8090496000.00
1829     8090496000.00
1830     8090496000.00
1831     8090496000.00
1832     8090496000.00
1833     8090496000.00
1834     8090496000.00
1835     8090496000.00
1836     8090496000.00
1837     8090496000.00
1838    10112774400.00
1839    10112774400.00
1840    10112774400.00
1841    10112774400.00
1842    10112774400.00
1843    10112774400.00
1844    10112774400.00
1845    10112774400.00
1846    10112774400.00
1847    10112774400.00
1848    10943856000.00
1849    10943856000.00
1850    10943856000.00
1851    10943856000.00
1852    10943856000.00
1853    10943856000.00
1854    10943856000.00
1855    10943856000.00
1856    10943856000.00
1857    10943856000.00
1858    11325225600.00
1859    11325225600.00
1860    11325225600.00
1861    11325225600.00
1862    11325225600.00
1863    11325225600.00
1864    11325225600.00
1865    11325225600.00
1866    11325225600.00
1867    11325225600.00
1868    11375078400.00
1869    11375078400.00
1870    11375078400.00
1871    11375078400.00
1872    11375078400.00
1873    11375078400.00
1874    11375078400.00
1875    11375078400.00
1876    11375078400.00
1877    11375078400.00
1878    11390889600.00
1879    11390889600.00
1880    11390889600.00
1881    11390889600.00
1882    11390889600.00
1883    11390889600.00
1884    11390889600.00
1885    11390889600.00
1886    11390889600.00
1887    11390889600.00
1888    12918787200.00
1889    12918787200.00
1890    12918787200.00
1891    12918787200.00
1892    12918787200.00
1893    12918787200.00
1894    12918787200.00
1895    12918787200.00
1896    12918787200.00
1897    12918787200.00
1898    13042512000.00
1899    13042512000.00
1900    13042512000.00
1901    13042512000.00
1902    13042512000.00
1903    13042512000.00
1904    13042512000.00
1905    13042512000.00
1906    13042512000.00
1907    13042512000.00
1908    11325225600.00
1909    11325225600.00
1910    11325225600.00
1911    11325225600.00
1912    11325225600.00
1913    11325225600.00
1914    11325225600.00
1915    11325225600.00
1916    11325225600.00
1917    11325225600.00
1918    11375078400.00
1919    11375078400.00
1920    11375078400.00
1921    11375078400.00
1922    11375078400.00
1923    11375078400.00
1924    11375078400.00
1925    11375078400.00
1926    11375078400.00
1927    11375078400.00
1928    11390889600.00
1929    11390889600.00
1930    11390889600.00
1931    11390889600.00
1932    11390889600.00
1933    11390889600.00
1934    11390889600.00
1935    11390889600.00
1936    11390889600.00
1937    11390889600.00
1938    12918787200.00
1939    12918787200.00
1940    12918787200.00
1941    12918787200.00
1942    12918787200.00
1943    12918787200.00
1944    12918787200.00
1945    12918787200.00
1946    12918787200.00
1947    12918787200.00
1948    13042512000.00
1949    13042512000.00
1950    13042512000.00
1951    13042512000.00
1952    13042512000.00
1953    13042512000.00
1954    13042512000.00
1955    13042512000.00
1956    13042512000.00
1957    13042512000.00
1958    14391561600.00
1959    14391561600.00
1960    14391561600.00
1961    14391561600.00
1962    14391561600.00
1963    14391561600.00
1964    14391561600.00
1965    14391561600.00
1966    14391561600.00
1967    14391561600.00
1968    16148160000.00
1969    16148160000.00
1970    16148160000.00
1971    16148160000.00
1972    16148160000.00
1973    16148160000.00
1974    16148160000.00
1975    16148160000.00
1976    16148160000.00
1977    16148160000.00
1978 ])
1979 AT_CLEANUP
1980
1981 AT_SETUP([WKYR input format])
1982 AT_KEYWORDS([data-in])
1983 date_in
1984 AT_CHECK([$PERL test-my-rand.pl])
1985 AT_CHECK([$PERL date-in.pl wkyr wWy])
1986 AT_CHECK([test -s wkyr.sps])
1987 AT_CHECK([test -s wkyr.in])
1988 AT_CHECK([pspp -O format=csv wkyr.sps])
1989 AT_CHECK([cat wkyr.out], [0], [dnl
1990     2071958400.00
1991     2071958400.00
1992     2071958400.00
1993     2071958400.00
1994     2071958400.00
1995     2071958400.00
1996     2071958400.00
1997     2071958400.00
1998     2071958400.00
1999     2071958400.00
2000     3083011200.00
2001     3083011200.00
2002     3083011200.00
2003     3083011200.00
2004     3083011200.00
2005     3083011200.00
2006     3083011200.00
2007     3083011200.00
2008     3083011200.00
2009     3083011200.00
2010     4221417600.00
2011     4221417600.00
2012     4221417600.00
2013     4221417600.00
2014     4221417600.00
2015     4221417600.00
2016     4221417600.00
2017     4221417600.00
2018     4221417600.00
2019     4221417600.00
2020     5859388800.00
2021     5859388800.00
2022     5859388800.00
2023     5859388800.00
2024     5859388800.00
2025     5859388800.00
2026     5859388800.00
2027     5859388800.00
2028     5859388800.00
2029     5859388800.00
2030     7472390400.00
2031     7472390400.00
2032     7472390400.00
2033     7472390400.00
2034     7472390400.00
2035     7472390400.00
2036     7472390400.00
2037     7472390400.00
2038     7472390400.00
2039     7472390400.00
2040     8092656000.00
2041     8092656000.00
2042     8092656000.00
2043     8092656000.00
2044     8092656000.00
2045     8092656000.00
2046     8092656000.00
2047     8092656000.00
2048     8092656000.00
2049     8092656000.00
2050    10114070400.00
2051    10114070400.00
2052    10114070400.00
2053    10114070400.00
2054    10114070400.00
2055    10114070400.00
2056    10114070400.00
2057    10114070400.00
2058    10114070400.00
2059    10114070400.00
2060    10945497600.00
2061    10945497600.00
2062    10945497600.00
2063    10945497600.00
2064    10945497600.00
2065    10945497600.00
2066    10945497600.00
2067    10945497600.00
2068    10945497600.00
2069    10945497600.00
2070    11327212800.00
2071    11327212800.00
2072    11327212800.00
2073    11327212800.00
2074    11327212800.00
2075    11327212800.00
2076    11327212800.00
2077    11327212800.00
2078    11327212800.00
2079    11327212800.00
2080    11376374400.00
2081    11376374400.00
2082    11376374400.00
2083    11376374400.00
2084    11376374400.00
2085    11376374400.00
2086    11376374400.00
2087    11376374400.00
2088    11376374400.00
2089    11376374400.00
2090    11390889600.00
2091    11390889600.00
2092    11390889600.00
2093    11390889600.00
2094    11390889600.00
2095    11390889600.00
2096    11390889600.00
2097    11390889600.00
2098    11390889600.00
2099    11390889600.00
2100    12919651200.00
2101    12919651200.00
2102    12919651200.00
2103    12919651200.00
2104    12919651200.00
2105    12919651200.00
2106    12919651200.00
2107    12919651200.00
2108    12919651200.00
2109    12919651200.00
2110    13044067200.00
2111    13044067200.00
2112    13044067200.00
2113    13044067200.00
2114    13044067200.00
2115    13044067200.00
2116    13044067200.00
2117    13044067200.00
2118    13044067200.00
2119    13044067200.00
2120    11327212800.00
2121    11327212800.00
2122    11327212800.00
2123    11327212800.00
2124    11327212800.00
2125    11327212800.00
2126    11327212800.00
2127    11327212800.00
2128    11327212800.00
2129    11327212800.00
2130    11376374400.00
2131    11376374400.00
2132    11376374400.00
2133    11376374400.00
2134    11376374400.00
2135    11376374400.00
2136    11376374400.00
2137    11376374400.00
2138    11376374400.00
2139    11376374400.00
2140    11390889600.00
2141    11390889600.00
2142    11390889600.00
2143    11390889600.00
2144    11390889600.00
2145    11390889600.00
2146    11390889600.00
2147    11390889600.00
2148    11390889600.00
2149    11390889600.00
2150    12919651200.00
2151    12919651200.00
2152    12919651200.00
2153    12919651200.00
2154    12919651200.00
2155    12919651200.00
2156    12919651200.00
2157    12919651200.00
2158    12919651200.00
2159    12919651200.00
2160    13044067200.00
2161    13044067200.00
2162    13044067200.00
2163    13044067200.00
2164    13044067200.00
2165    13044067200.00
2166    13044067200.00
2167    13044067200.00
2168    13044067200.00
2169    13044067200.00
2170    14391907200.00
2171    14391907200.00
2172    14391907200.00
2173    14391907200.00
2174    14391907200.00
2175    14391907200.00
2176    14391907200.00
2177    14391907200.00
2178    14391907200.00
2179    14391907200.00
2180    16149456000.00
2181    16149456000.00
2182    16149456000.00
2183    16149456000.00
2184    16149456000.00
2185    16149456000.00
2186    16149456000.00
2187    16149456000.00
2188    16149456000.00
2189    16149456000.00
2190 ])
2191 AT_CLEANUP
2192
2193 AT_SETUP([DATETIME input format])
2194 AT_KEYWORDS([data-in])
2195 date_in
2196 AT_CHECK([$PERL test-my-rand.pl])
2197 AT_CHECK([$PERL date-in.pl datetime "d-m-y +H:M" "d-m-y +H:M:S"])
2198 AT_CHECK([test -s datetime.sps])
2199 AT_CHECK([test -s datetime.in])
2200 AT_CHECK([pspp -O format=csv datetime.sps])
2201 AT_CHECK([cat datetime.out], [0], [dnl
2202     2071958400.00
2203     2071958400.00
2204     2071958400.00
2205     2071958400.00
2206     2071958400.00
2207     2071958400.00
2208     2071958400.00
2209     2071958400.00
2210     2071958400.00
2211     2071958400.00
2212     3083512200.00
2213     3083512200.00
2214     3083547000.00
2215     3083547000.00
2216     3083547000.00
2217     3083512200.00
2218     3083547000.00
2219     3083547000.00
2220     3083512200.00
2221     3083512200.00
2222     4221545340.00
2223     4221635460.00
2224     4221545340.00
2225     4221545340.00
2226     4221635460.00
2227     4221635460.00
2228     4221545340.00
2229     4221635460.00
2230     4221545340.00
2231     4221635460.00
2232     5859607620.00
2233     5859607620.00
2234     5859515580.00
2235     5859515580.00
2236     5859607620.00
2237     5859607620.00
2238     5859607620.00
2239     5859607620.00
2240     5859515580.00
2241     5859607620.00
2242     7472644440.00
2243     7472654760.00
2244     7472654760.00
2245     7472654760.00
2246     7472654760.00
2247     7472654760.00
2248     7472654760.00
2249     7472654760.00
2250     7472644440.00
2251     7472654760.00
2252     8092817880.00
2253     8092666920.00
2254     8092817880.00
2255     8092666920.00
2256     8092817880.00
2257     8092817880.00
2258     8092666920.00
2259     8092817880.00
2260     8092666920.00
2261     8092817880.00
2262    10114302240.00
2263    10114356960.00
2264    10114302240.00
2265    10114302240.00
2266    10114302240.00
2267    10114356960.00
2268    10114302240.00
2269    10114302240.00
2270    10114302240.00
2271    10114356960.00
2272    10945873020.00
2273    10945986180.00
2274    10945986180.00
2275    10945986180.00
2276    10945873020.00
2277    10945986180.00
2278    10945986180.00
2279    10945873020.00
2280    10945986180.00
2281    10945873020.00
2282    11327628900.00
2283    11327660700.00
2284    11327660700.00
2285    11327660700.00
2286    11327660700.00
2287    11327628900.00
2288    11327628900.00
2289    11327660700.00
2290    11327660700.00
2291    11327660700.00
2292    11376658140.00
2293    11376609060.00
2294    11376658140.00
2295    11376658140.00
2296    11376609060.00
2297    11376658140.00
2298    11376609060.00
2299    11376658140.00
2300    11376658140.00
2301    11376658140.00
2302    11391418620.00
2303    11391418620.00
2304    11391397380.00
2305    11391397380.00
2306    11391418620.00
2307    11391418620.00
2308    11391397380.00
2309    11391418620.00
2310    11391418620.00
2311    11391418620.00
2312    12920229900.00
2313    12920229900.00
2314    12920229900.00
2315    12920229900.00
2316    12920229900.00
2317    12920109300.00
2318    12920229900.00
2319    12920109300.00
2320    12920229900.00
2321    12920229900.00
2322    13044508200.00
2323    13044663000.00
2324    13044508200.00
2325    13044663000.00
2326    13044508200.00
2327    13044508200.00
2328    13044663000.00
2329    13044663000.00
2330    13044663000.00
2331    13044663000.00
2332    11327660700.00
2333    11327628900.00
2334    11327628900.00
2335    11327660700.00
2336    11327628900.00
2337    11327628900.00
2338    11327628900.00
2339    11327628900.00
2340    11327628900.00
2341    11327628900.00
2342    11376609060.00
2343    11376658140.00
2344    11376658140.00
2345    11376609060.00
2346    11376658140.00
2347    11376609060.00
2348    11376658140.00
2349    11376609060.00
2350    11376658140.00
2351    11376658140.00
2352    11391397380.00
2353    11391397380.00
2354    11391418620.00
2355    11391397380.00
2356    11391418620.00
2357    11391418620.00
2358    11391418620.00
2359    11391418620.00
2360    11391418620.00
2361    11391397380.00
2362    12920229900.00
2363    12920229900.00
2364    12920229900.00
2365    12920229900.00
2366    12920229900.00
2367    12920229900.00
2368    12920109300.00
2369    12920229900.00
2370    12920229900.00
2371    12920229900.00
2372    13044508200.00
2373    13044663000.00
2374    13044508200.00
2375    13044508200.00
2376    13044508200.00
2377    13044663000.00
2378    13044663000.00
2379    13044663000.00
2380    13044508200.00
2381    13044508200.00
2382    14392420200.00
2383    14392258200.00
2384    14392420200.00
2385    14392420200.00
2386    14392420200.00
2387    14392420200.00
2388    14392258200.00
2389    14392420200.00
2390    14392420200.00
2391    14392420200.00
2392    16149635760.00
2393    16149635760.00
2394    16149635760.00
2395    16149635760.00
2396    16149635760.00
2397    16149635760.00
2398    16149635760.00
2399    16149635760.00
2400    16149621840.00
2401    16149635760.00
2402     2071958400.00
2403     2071958400.00
2404     2071958400.00
2405     2071958400.00
2406     2071958400.00
2407     2071958400.00
2408     2071958400.00
2409     2071958400.00
2410     2071958400.00
2411     2071958400.00
2412     3083512162.00
2413     3083512162.00
2414     3083512162.00
2415     3083547038.00
2416     3083512162.00
2417     3083512162.00
2418     3083547038.00
2419     3083512162.00
2420     3083547038.00
2421     3083547038.00
2422     4221635495.00
2423     4221545305.00
2424     4221635495.00
2425     4221635495.00
2426     4221635495.00
2427     4221545305.00
2428     4221635495.00
2429     4221635495.00
2430     4221635495.00
2431     4221635495.00
2432     5859607673.00
2433     5859515527.00
2434     5859607673.00
2435     5859607673.00
2436     5859607673.00
2437     5859607673.00
2438     5859515527.00
2439     5859607673.00
2440     5859607673.00
2441     5859607673.00
2442     7472654760.00
2443     7472644440.00
2444     7472654760.00
2445     7472654760.00
2446     7472654760.00
2447     7472644440.00
2448     7472654760.00
2449     7472654760.00
2450     7472644440.00
2451     7472654760.00
2452     8092817891.00
2453     8092817891.00
2454     8092666909.00
2455     8092817891.00
2456     8092817891.00
2457     8092817891.00
2458     8092817891.00
2459     8092817891.00
2460     8092817891.00
2461     8092817891.00
2462    10114302235.00
2463    10114302235.00
2464    10114302235.00
2465    10114356965.00
2466    10114356965.00
2467    10114356965.00
2468    10114356965.00
2469    10114356965.00
2470    10114356965.00
2471    10114302235.00
2472    10945986229.00
2473    10945986229.00
2474    10945872971.00
2475    10945872971.00
2476    10945986229.00
2477    10945986229.00
2478    10945872971.00
2479    10945986229.00
2480    10945986229.00
2481    10945986229.00
2482    11327660709.00
2483    11327660709.00
2484    11327660709.00
2485    11327660709.00
2486    11327660709.00
2487    11327660709.00
2488    11327660709.00
2489    11327660709.00
2490    11327660709.00
2491    11327660709.00
2492    11376658167.00
2493    11376658167.00
2494    11376658167.00
2495    11376658167.00
2496    11376658167.00
2497    11376658167.00
2498    11376658167.00
2499    11376658167.00
2500    11376658167.00
2501    11376658167.00
2502    11391397328.00
2503    11391418672.00
2504    11391418672.00
2505    11391418672.00
2506    11391397328.00
2507    11391418672.00
2508    11391397328.00
2509    11391418672.00
2510    11391418672.00
2511    11391418672.00
2512    12920229944.00
2513    12920229944.00
2514    12920109256.00
2515    12920229944.00
2516    12920229944.00
2517    12920109256.00
2518    12920109256.00
2519    12920109256.00
2520    12920229944.00
2521    12920109256.00
2522    13044663057.00
2523    13044663057.00
2524    13044663057.00
2525    13044508143.00
2526    13044663057.00
2527    13044663057.00
2528    13044663057.00
2529    13044508143.00
2530    13044663057.00
2531    13044663057.00
2532    11327628891.00
2533    11327628891.00
2534    11327660709.00
2535    11327660709.00
2536    11327660709.00
2537    11327628891.00
2538    11327628891.00
2539    11327660709.00
2540    11327660709.00
2541    11327628891.00
2542    11376658167.00
2543    11376658167.00
2544    11376658167.00
2545    11376658167.00
2546    11376658167.00
2547    11376609033.00
2548    11376658167.00
2549    11376609033.00
2550    11376658167.00
2551    11376658167.00
2552    11391418672.00
2553    11391397328.00
2554    11391418672.00
2555    11391397328.00
2556    11391397328.00
2557    11391397328.00
2558    11391397328.00
2559    11391397328.00
2560    11391397328.00
2561    11391397328.00
2562    12920229944.00
2563    12920229944.00
2564    12920229944.00
2565    12920109256.00
2566    12920229944.00
2567    12920229944.00
2568    12920229944.00
2569    12920229944.00
2570    12920229944.00
2571    12920229944.00
2572    13044663057.00
2573    13044663057.00
2574    13044663057.00
2575    13044663057.00
2576    13044508143.00
2577    13044663057.00
2578    13044508143.00
2579    13044508143.00
2580    13044663057.00
2581    13044663057.00
2582    14392258196.00
2583    14392420204.00
2584    14392420204.00
2585    14392420204.00
2586    14392258196.00
2587    14392420204.00
2588    14392420204.00
2589    14392258196.00
2590    14392420204.00
2591    14392420204.00
2592    16149635811.00
2593    16149635811.00
2594    16149635811.00
2595    16149635811.00
2596    16149635811.00
2597    16149621789.00
2598    16149621789.00
2599    16149621789.00
2600    16149635811.00
2601    16149635811.00
2602 ])
2603 AT_CLEANUP
2604
2605 AT_SETUP([TIME input format])
2606 AT_KEYWORDS([data-in])
2607 time_in
2608 AT_CHECK([$PERL test-my-rand.pl])
2609 AT_CHECK([$PERL time-in.pl 0 time +H:M +H:M:S])
2610 AT_CHECK([test -s time.sps])
2611 AT_CHECK([test -s time.data])
2612 AT_CHECK([pspp -O format=csv time.sps])
2613 AT_CHECK([cat time.out], [0], [dnl
2614               .00
2615               .00
2616               .00
2617               .00
2618               .00
2619               .00
2620               .00
2621               .00
2622               .00
2623               .00
2624        -103800.00
2625         103800.00
2626         103800.00
2627        -103800.00
2628         103800.00
2629        -103800.00
2630         103800.00
2631         103800.00
2632        -103800.00
2633         103800.00
2634         477060.00
2635         477060.00
2636         477060.00
2637         477060.00
2638        -477060.00
2639         477060.00
2640         477060.00
2641         477060.00
2642         477060.00
2643        -477060.00
2644          46020.00
2645         -46020.00
2646         -46020.00
2647         -46020.00
2648          46020.00
2649          46020.00
2650         -46020.00
2651          46020.00
2652          46020.00
2653         -46020.00
2654         264360.00
2655         264360.00
2656        -264360.00
2657        -264360.00
2658         264360.00
2659        -264360.00
2660         264360.00
2661        -264360.00
2662        -264360.00
2663        -264360.00
2664         161880.00
2665         161880.00
2666         161880.00
2667         161880.00
2668         161880.00
2669        -161880.00
2670         161880.00
2671         161880.00
2672         161880.00
2673        -161880.00
2674        1064160.00
2675        1064160.00
2676        1064160.00
2677        1064160.00
2678        1064160.00
2679        1064160.00
2680       -1064160.00
2681        1064160.00
2682        1064160.00
2683        1064160.00
2684       -4549380.00
2685        4549380.00
2686        4549380.00
2687        4549380.00
2688        4549380.00
2689        4549380.00
2690        4549380.00
2691       -4549380.00
2692        4549380.00
2693        4549380.00
2694         620700.00
2695        -620700.00
2696         620700.00
2697         620700.00
2698        -620700.00
2699         620700.00
2700        -620700.00
2701        -620700.00
2702         620700.00
2703         620700.00
2704          24540.00
2705         -24540.00
2706          24540.00
2707          24540.00
2708          24540.00
2709          24540.00
2710          24540.00
2711          24540.00
2712          24540.00
2713          24540.00
2714       -1738620.00
2715        1738620.00
2716        1738620.00
2717        1738620.00
2718        1738620.00
2719        1738620.00
2720        1738620.00
2721        1738620.00
2722        1738620.00
2723        1738620.00
2724       48012300.00
2725      -48012300.00
2726      -48012300.00
2727       48012300.00
2728       48012300.00
2729       48012300.00
2730       48012300.00
2731       48012300.00
2732       48012300.00
2733       48012300.00
2734       10445400.00
2735      -10445400.00
2736      -10445400.00
2737       10445400.00
2738       10445400.00
2739       10445400.00
2740      -10445400.00
2741       10445400.00
2742       10445400.00
2743      -10445400.00
2744          15900.00
2745          15900.00
2746         -15900.00
2747          15900.00
2748         -15900.00
2749         -15900.00
2750          15900.00
2751          15900.00
2752          15900.00
2753          15900.00
2754         283740.00
2755        -283740.00
2756         283740.00
2757         283740.00
2758         283740.00
2759        -283740.00
2760         283740.00
2761         283740.00
2762        -283740.00
2763         283740.00
2764         442620.00
2765         442620.00
2766         442620.00
2767         442620.00
2768         442620.00
2769         442620.00
2770         442620.00
2771         442620.00
2772         442620.00
2773        -442620.00
2774          60300.00
2775          60300.00
2776          60300.00
2777          60300.00
2778          60300.00
2779         -60300.00
2780         -60300.00
2781          60300.00
2782         -60300.00
2783         -60300.00
2784         163800.00
2785        -163800.00
2786        -163800.00
2787        -163800.00
2788         163800.00
2789         163800.00
2790         163800.00
2791         163800.00
2792        -163800.00
2793         163800.00
2794         945000.00
2795        -945000.00
2796        -945000.00
2797        -945000.00
2798         945000.00
2799         945000.00
2800         945000.00
2801        -945000.00
2802         945000.00
2803         945000.00
2804       -1907760.00
2805        1907760.00
2806       -1907760.00
2807        1907760.00
2808       -1907760.00
2809        1907760.00
2810        1907760.00
2811        1907760.00
2812        1907760.00
2813       -1907760.00
2814               .00
2815               .00
2816               .00
2817               .00
2818               .00
2819               .00
2820               .00
2821               .00
2822               .00
2823               .00
2824         103839.00
2825         103838.68
2826        -103838.70
2827        -103838.68
2828         103838.70
2829         103838.68
2830        -103839.00
2831         103838.68
2832         103838.70
2833        -103839.00
2834         477095.82
2835         477096.00
2836         477096.00
2837         477095.82
2838         477095.82
2839         477095.82
2840         477095.80
2841        -477095.80
2842         477095.82
2843        -477095.82
2844         -46073.00
2845         -46073.40
2846          46073.00
2847          46073.40
2848          46073.40
2849          46073.00
2850         -46073.00
2851          46073.00
2852          46073.00
2853          46073.00
2854         264360.69
2855        -264360.70
2856         264361.00
2857         264360.70
2858         264360.69
2859         264360.70
2860         264361.00
2861         264360.70
2862        -264361.00
2863         264361.00
2864         161891.00
2865        -161891.20
2866        -161891.00
2867         161891.00
2868        -161891.00
2869         161891.20
2870        -161891.20
2871        -161891.20
2872         161891.20
2873        -161891.19
2874       -1064166.00
2875        1064165.98
2876       -1064166.00
2877       -1064166.00
2878       -1064165.98
2879        1064166.00
2880        1064166.00
2881       -1064166.00
2882       -1064165.98
2883        1064166.00
2884        4549429.00
2885        4549429.27
2886        4549429.27
2887       -4549429.30
2888        4549429.00
2889       -4549429.00
2890        4549429.00
2891        4549429.27
2892        4549429.00
2893        4549429.30
2894         620709.00
2895        -620709.24
2896         620709.24
2897         620709.24
2898         620709.24
2899         620709.20
2900        -620709.24
2901         620709.20
2902         620709.24
2903         620709.24
2904          24567.90
2905          24567.89
2906          24567.90
2907          24568.00
2908          24567.90
2909          24568.00
2910          24568.00
2911         -24567.90
2912          24567.90
2913          24568.00
2914        1738672.56
2915        1738673.00
2916       -1738672.60
2917       -1738672.56
2918        1738673.00
2919        1738673.00
2920        1738673.00
2921        1738672.60
2922       -1738672.56
2923        1738672.60
2924      -48012344.10
2925       48012344.12
2926      -48012344.10
2927      -48012344.00
2928      -48012344.00
2929       48012344.00
2930      -48012344.00
2931      -48012344.00
2932      -48012344.00
2933       48012344.00
2934       10445457.27
2935       10445457.00
2936       10445457.30
2937       10445457.00
2938       10445457.27
2939       10445457.00
2940       10445457.27
2941       10445457.00
2942       10445457.00
2943      -10445457.30
2944         -15909.98
2945          15910.00
2946         -15910.00
2947          15910.00
2948         -15909.98
2949          15910.00
2950         -15909.98
2951          15909.98
2952          15910.00
2953          15909.98
2954        -283767.00
2955         283767.20
2956         283767.20
2957         283767.00
2958        -283767.00
2959         283767.00
2960         283767.24
2961         283767.00
2962         283767.24
2963         283767.00
2964        -442672.00
2965         442672.13
2966         442672.00
2967         442672.13
2968         442672.00
2969         442672.00
2970         442672.00
2971         442672.00
2972        -442672.00
2973         442672.13
2974         -60344.40
2975         -60344.00
2976          60344.00
2977          60344.35
2978          60344.00
2979          60344.40
2980          60344.40
2981         -60344.00
2982          60344.00
2983          60344.40
2984         163857.00
2985         163857.00
2986         163857.00
2987         163857.00
2988         163857.30
2989        -163857.30
2990         163857.30
2991        -163857.00
2992        -163857.00
2993         163857.30
2994         945004.30
2995         945004.00
2996         945004.27
2997         945004.30
2998         945004.30
2999         945004.00
3000         945004.30
3001         945004.00
3002         945004.00
3003         945004.00
3004        1907811.00
3005        1907811.00
3006       -1907811.00
3007        1907811.18
3008        1907811.20
3009        1907811.00
3010       -1907811.00
3011        1907811.18
3012       -1907811.00
3013       -1907811.00
3014 ])
3015 AT_CLEANUP
3016
3017 AT_SETUP([DTIME input format])
3018 AT_KEYWORDS([data-in])
3019 time_in
3020 AT_CHECK([$PERL test-my-rand.pl])
3021 AT_CHECK([$PERL time-in.pl 2000 dtime '+D H:M' '+D H:M:S'])
3022 AT_CHECK([test -s dtime.sps])
3023 AT_CHECK([test -s dtime.data])
3024 AT_CHECK([pspp -O format=csv dtime.sps])
3025 AT_CHECK([cat dtime.out], [0], [dnl
3026               .00
3027               .00
3028               .00
3029               .00
3030               .00
3031               .00
3032               .00
3033               .00
3034               .00
3035               .00
3036         103800.00
3037         103800.00
3038        -103800.00
3039         103800.00
3040         103800.00
3041        -103800.00
3042         103800.00
3043        -103800.00
3044         103800.00
3045        -103800.00
3046         477060.00
3047         477060.00
3048         477060.00
3049         477060.00
3050         477060.00
3051         477060.00
3052        -477060.00
3053        -477060.00
3054        -477060.00
3055         477060.00
3056          46020.00
3057          46020.00
3058          46020.00
3059          46020.00
3060         -46020.00
3061         -46020.00
3062         -46020.00
3063          46020.00
3064          46020.00
3065          46020.00
3066         264360.00
3067         264360.00
3068        -264360.00
3069         264360.00
3070         264360.00
3071         264360.00
3072         264360.00
3073        -264360.00
3074        -264360.00
3075        -264360.00
3076        -161880.00
3077        -161880.00
3078         161880.00
3079         161880.00
3080         161880.00
3081        -161880.00
3082         161880.00
3083        -161880.00
3084         161880.00
3085        -161880.00
3086        1064160.00
3087        1064160.00
3088        1064160.00
3089        1064160.00
3090        1064160.00
3091        1064160.00
3092       -1064160.00
3093        1064160.00
3094        1064160.00
3095        1064160.00
3096       -4549380.00
3097        4549380.00
3098       -4549380.00
3099       -4549380.00
3100       -4549380.00
3101        4549380.00
3102        4549380.00
3103        4549380.00
3104        4549380.00
3105        4549380.00
3106        -620700.00
3107         620700.00
3108         620700.00
3109        -620700.00
3110         620700.00
3111         620700.00
3112         620700.00
3113        -620700.00
3114         620700.00
3115         620700.00
3116         -24540.00
3117          24540.00
3118          24540.00
3119          24540.00
3120         -24540.00
3121          24540.00
3122          24540.00
3123         -24540.00
3124          24540.00
3125         -24540.00
3126        1738620.00
3127        1738620.00
3128        1738620.00
3129       -1738620.00
3130       -1738620.00
3131       -1738620.00
3132        1738620.00
3133        1738620.00
3134        1738620.00
3135        1738620.00
3136       48012300.00
3137       48012300.00
3138       48012300.00
3139       48012300.00
3140       48012300.00
3141      -48012300.00
3142      -48012300.00
3143       48012300.00
3144      -48012300.00
3145      -48012300.00
3146      -10445400.00
3147       10445400.00
3148      -10445400.00
3149       10445400.00
3150       10445400.00
3151       10445400.00
3152       10445400.00
3153       10445400.00
3154       10445400.00
3155       10445400.00
3156          15900.00
3157          15900.00
3158          15900.00
3159          15900.00
3160          15900.00
3161         -15900.00
3162          15900.00
3163          15900.00
3164          15900.00
3165          15900.00
3166        -283740.00
3167         283740.00
3168        -283740.00
3169        -283740.00
3170         283740.00
3171         283740.00
3172         283740.00
3173         283740.00
3174         283740.00
3175        -283740.00
3176         442620.00
3177        -442620.00
3178        -442620.00
3179         442620.00
3180         442620.00
3181        -442620.00
3182        -442620.00
3183        -442620.00
3184         442620.00
3185         442620.00
3186          60300.00
3187         -60300.00
3188          60300.00
3189          60300.00
3190          60300.00
3191          60300.00
3192          60300.00
3193          60300.00
3194          60300.00
3195          60300.00
3196         163800.00
3197         163800.00
3198        -163800.00
3199         163800.00
3200        -163800.00
3201        -163800.00
3202        -163800.00
3203         163800.00
3204         163800.00
3205        -163800.00
3206         945000.00
3207         945000.00
3208         945000.00
3209         945000.00
3210        -945000.00
3211         945000.00
3212         945000.00
3213         945000.00
3214         945000.00
3215        -945000.00
3216       -1907760.00
3217        1907760.00
3218        1907760.00
3219        1907760.00
3220       -1907760.00
3221       -1907760.00
3222       -1907760.00
3223        1907760.00
3224       -1907760.00
3225       -1907760.00
3226               .00
3227               .00
3228               .00
3229               .00
3230               .00
3231               .00
3232               .00
3233               .00
3234               .00
3235               .00
3236         103838.70
3237         103838.70
3238         103839.00
3239         103838.68
3240         103838.70
3241         103839.00
3242         103838.70
3243        -103839.00
3244         103839.00
3245         103839.00
3246         477095.80
3247         477095.80
3248        -477095.80
3249         477095.82
3250         477095.82
3251         477095.82
3252        -477095.82
3253         477095.82
3254         477096.00
3255        -477096.00
3256         -46073.00
3257          46073.00
3258         -46073.00
3259          46073.41
3260          46073.00
3261          46073.40
3262          46073.00
3263          46073.41
3264          46073.41
3265         -46073.00
3266         264360.70
3267         264360.70
3268         264360.69
3269         264361.00
3270        -264360.70
3271         264360.69
3272        -264360.70
3273         264360.69
3274        -264361.00
3275         264360.69
3276         161891.00
3277        -161891.20
3278        -161891.19
3279         161891.19
3280         161891.00
3281         161891.20
3282         161891.20
3283         161891.00
3284         161891.00
3285         161891.20
3286       -1064165.98
3287        1064166.00
3288        1064166.00
3289        1064166.00
3290        1064165.98
3291        1064166.00
3292        1064166.00
3293       -1064165.98
3294        1064165.98
3295       -1064166.00
3296        4549429.27
3297        4549429.27
3298        4549429.27
3299        4549429.27
3300        4549429.00
3301        4549429.27
3302       -4549429.27
3303        4549429.00
3304        4549429.27
3305        4549429.27
3306        -620709.00
3307         620709.20
3308         620709.00
3309        -620709.20
3310        -620709.24
3311        -620709.00
3312         620709.00
3313         620709.24
3314        -620709.24
3315         620709.00
3316         -24567.89
3317          24567.90
3318          24568.00
3319          24567.89
3320          24568.00
3321          24568.00
3322          24567.90
3323         -24568.00
3324         -24567.89
3325         -24568.00
3326        1738672.56
3327       -1738672.56
3328        1738672.56
3329       -1738672.60
3330       -1738673.00
3331        1738672.56
3332        1738673.00
3333       -1738672.60
3334        1738672.60
3335        1738672.56
3336       48012344.00
3337      -48012344.12
3338      -48012344.00
3339       48012344.12
3340      -48012344.12
3341      -48012344.00
3342       48012344.12
3343      -48012344.00
3344      -48012344.00
3345      -48012344.00
3346      -10445457.00
3347       10445457.00
3348       10445457.00
3349       10445457.00
3350      -10445457.00
3351      -10445457.00
3352       10445457.00
3353       10445457.00
3354       10445457.00
3355      -10445457.30
3356         -15909.98
3357          15910.00
3358         -15909.98
3359          15910.00
3360          15910.00
3361         -15910.00
3362         -15910.00
3363         -15910.00
3364         -15910.00
3365          15909.98
3366        -283767.24
3367         283767.20
3368         283767.24
3369         283767.24
3370         283767.00
3371         283767.20
3372         283767.20
3373         283767.24
3374        -283767.00
3375         283767.24
3376         442672.13
3377        -442672.13
3378         442672.00
3379         442672.13
3380         442672.10
3381         442672.00
3382         442672.00
3383        -442672.10
3384         442672.00
3385        -442672.10
3386         -60344.35
3387          60344.00
3388          60344.00
3389         -60344.00
3390          60344.00
3391          60344.35
3392          60344.00
3393          60344.35
3394          60344.00
3395          60344.00
3396        -163857.00
3397        -163857.00
3398         163857.32
3399         163857.00
3400        -163857.30
3401        -163857.00
3402         163857.30
3403         163857.00
3404         163857.00
3405        -163857.00
3406        -945004.00
3407        -945004.30
3408         945004.27
3409         945004.27
3410        -945004.27
3411        -945004.27
3412        -945004.00
3413        -945004.27
3414        -945004.00
3415         945004.30
3416        1907811.00
3417        1907811.00
3418        1907811.00
3419        1907811.00
3420        1907811.20
3421        1907811.18
3422        1907811.18
3423        1907811.18
3424        1907811.18
3425        1907811.00
3426 ])
3427 AT_CLEANUP
3428
3429 AT_SETUP([binary and hexadecimal input (IB, PIB, and PIBHEX formats)])
3430 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > binhex-in.data])
3431 AT_CHECK([[wc -c < binhex-in.data | sed 's/[    ]//g']], [0], [131072
3432 ])
3433 AT_DATA([binhex-in.sps], [dnl
3434 SET RIB=MSBFIRST.
3435 SET ERRORS=NONE.
3436 SET MXWARNS=10000000.
3437 SET MXERRS=10000000.
3438 FILE HANDLE data/NAME='binhex-in.data'/MODE=IMAGE/LRECL=2.
3439 DATA LIST FILE=data NOTABLE/ib 1-2 (IB) pib 1-2 (PIB) pibhex 1-2 (PIBHEX).
3440 COMPUTE x=$CASENUM - 1.
3441 PRINT OUTFILE='binhex-in.out'/x (PIBHEX4) ' ' ib pib pibhex.
3442 EXECUTE.
3443 ])
3444 AT_CHECK([gzip -cd < $top_srcdir/tests/data/binhex-in.expected.cmp.gz | \
3445             $PERL -pe "printf ' %04X ', $.-1" > expout])
3446 AT_CHECK([pspp -O format=csv binhex-in.sps], [0])
3447 AT_CHECK([cat binhex-in.out], [0], [expout])
3448 AT_CLEANUP
3449
3450 AT_SETUP([BCD input (P and PK formats)])
3451 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > bcd-in.data])
3452 AT_CHECK([[wc -c < bcd-in.data | sed 's/[       ]//g']], [0], [131072
3453 ])
3454 AT_DATA([bcd-in.sps], [dnl
3455 SET ERRORS=NONE.
3456 SET MXWARNS=10000000.
3457 SET MXERRS=10000000.
3458 FILE HANDLE data/NAME='bcd-in.data'/MODE=IMAGE/LRECL=2.
3459 DATA LIST FILE=data NOTABLE/p 1-2 (P) pk 1-2 (PK).
3460 COMPUTE x=$CASENUM - 1.
3461 PRINT OUTFILE='bcd-in.out'/x (PIBHEX4) ' ' P PK.
3462 EXECUTE.
3463 ])
3464 AT_CHECK([gzip -cd < $top_srcdir/tests/data/bcd-in.expected.cmp.gz | \
3465             $PERL -pe "printf ' %04X ', $.-1" > expout])
3466 AT_CHECK([pspp -O format=csv bcd-in.sps])
3467 AT_CHECK([cat bcd-in.out], [0], [expout])
3468 AT_CLEANUP
3469
3470 AT_SETUP([legacy input (N and Z formats)])
3471 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > legacy-in.data])
3472 AT_CHECK([[wc -c < legacy-in.data | sed 's/[    ]//g']], [0], [131072
3473 ])
3474 AT_DATA([legacy-in.sps], [dnl
3475 SET ERRORS=NONE.
3476 SET MXWARNS=10000000.
3477 SET MXERRS=10000000.
3478 FILE HANDLE data/NAME='legacy-in.data'/MODE=IMAGE/LRECL=2.
3479 DATA LIST NOTABLE FILE=data/n 1-2 (N) z 1-2 (z).
3480 COMPUTE x=$CASENUM - 1.
3481 PRINT OUTFILE='legacy-in.out'/x (PIBHEX4) ' ' N Z.
3482 EXECUTE.
3483 ])
3484 AT_CHECK([gzip -cd < $top_srcdir/tests/data/legacy-in.expected.cmp.gz | \
3485             $PERL -pe "printf ' %04X ', $.-1" > expout])
3486 AT_CHECK([pspp -O format=csv legacy-in.sps])
3487 AT_CHECK([cat legacy-in.out], [0], [expout])
3488 AT_CLEANUP
3489
3490 AT_SETUP([WKDAY input format])
3491 AT_DATA([wkday.sps], [dnl
3492 DATA LIST NOTABLE /wkday2 1-2 (wkday)
3493                    wkday3 1-3 (wkday)
3494                    wkday4 1-4 (wkday)
3495                    wkday5 1-5 (wkday)
3496                    wkday6 1-6 (wkday)
3497                    wkday7 1-7 (wkday)
3498                    wkday8 1-8 (wkday)
3499                    wkday9 1-9 (wkday)
3500                    wkday10 1-10 (wkday).
3501 BEGIN DATA.
3502
3503 .
3504 monady
3505 tuseday
3506 WEDENSDAY
3507 Thurdsay
3508 fRidya
3509 SAturady
3510 sudnay
3511 sturday
3512 END DATA.
3513 FORMATS ALL (WKDAY2).
3514 PRINT OUTFILE='wkday.out'/ALL.
3515 EXECUTE.
3516 ])
3517 AT_CHECK([pspp -O format=csv wkday.sps], [0], [dnl
3518 wkday.sps:20.1-20.2: warning: Data for variable wkday2 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3519
3520 wkday.sps:20.1-20.3: warning: Data for variable wkday3 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3521
3522 wkday.sps:20.1-20.4: warning: Data for variable wkday4 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3523
3524 wkday.sps:20.1-20.5: warning: Data for variable wkday5 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3525
3526 wkday.sps:20.1-20.6: warning: Data for variable wkday6 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3527
3528 wkday.sps:20.1-20.7: warning: Data for variable wkday7 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3529
3530 wkday.sps:20.1-20.8: warning: Data for variable wkday8 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3531
3532 wkday.sps:20.1-20.9: warning: Data for variable wkday9 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3533
3534 wkday.sps:20.1-20.10: warning: Data for variable wkday10 is not valid as format WKDAY: Unrecognized weekday name.  At least the first two letters of an English weekday name must be specified.
3535 ])
3536 AT_CHECK([cat wkday.out], [0], [dnl
3537   .  .  .  .  .  .  .  .  . @&t@
3538   .  .  .  .  .  .  .  .  . @&t@
3539  MO MO MO MO MO MO MO MO MO @&t@
3540  TU TU TU TU TU TU TU TU TU @&t@
3541  WE WE WE WE WE WE WE WE WE @&t@
3542  TH TH TH TH TH TH TH TH TH @&t@
3543  FR FR FR FR FR FR FR FR FR @&t@
3544  SA SA SA SA SA SA SA SA SA @&t@
3545  SU SU SU SU SU SU SU SU SU @&t@
3546   .  .  .  .  .  .  .  .  . @&t@
3547 ])
3548 AT_CLEANUP
3549
3550 AT_SETUP([MONTH input format])
3551 AT_DATA([month.sps], [dnl
3552 DATA LIST NOTABLE /month3 1-3 (MONTH)
3553                    month4 1-4 (MONTH)
3554                    month5 1-5 (MONTH)
3555                    month6 1-6 (MONTH)
3556                    month7 1-7 (MONTH)
3557                    month8 1-8 (MONTH)
3558                    month9 1-9 (MONTH)
3559                    month10 1-10 (MONTH).
3560 BEGIN DATA.
3561
3562 .
3563 i
3564 ii
3565 iii
3566 iiii
3567 iv
3568 v
3569 vi
3570 vii
3571 viii
3572 ix
3573 viiii
3574 x
3575 xi
3576 xii
3577 0
3578 1
3579 2
3580 3
3581 4
3582 5
3583 6
3584 7
3585 8
3586 9
3587 10
3588 11
3589 12
3590 13
3591 january
3592 JANAURY
3593 February
3594 fEbraury
3595 MArch
3596 marhc
3597 apRIL
3598 may
3599 june
3600 july
3601 august
3602 september
3603 october
3604 november
3605 decmeber
3606 december
3607 END DATA.
3608 FORMATS ALL (MONTH3).
3609 PRINT OUTFILE='month.out'/ALL.
3610 EXECUTE.
3611 ])
3612 AT_CHECK([pspp -O format=csv month.sps], [0], [dnl
3613 month.sps:15.1-15.4: warning: Data for variable month4 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3614
3615 month.sps:15.1-15.5: warning: Data for variable month5 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3616
3617 month.sps:15.1-15.6: warning: Data for variable month6 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3618
3619 month.sps:15.1-15.7: warning: Data for variable month7 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3620
3621 month.sps:15.1-15.8: warning: Data for variable month8 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3622
3623 month.sps:15.1-15.9: warning: Data for variable month9 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3624
3625 month.sps:15.1-15.10: warning: Data for variable month10 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3626
3627 month.sps:26.1-26.3: warning: Data for variable month3 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3628
3629 month.sps:26.1-26.4: warning: Data for variable month4 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3630
3631 month.sps:26.1-26.5: warning: Data for variable month5 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3632
3633 month.sps:26.1-26.6: warning: Data for variable month6 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3634
3635 month.sps:26.1-26.7: warning: Data for variable month7 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3636
3637 month.sps:26.1-26.8: warning: Data for variable month8 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3638
3639 month.sps:26.1-26.9: warning: Data for variable month9 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3640
3641 month.sps:26.1-26.10: warning: Data for variable month10 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3642
3643 month.sps:39.1-39.3: warning: Data for variable month3 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3644
3645 month.sps:39.1-39.4: warning: Data for variable month4 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3646
3647 month.sps:39.1-39.5: warning: Data for variable month5 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3648
3649 month.sps:39.1-39.6: warning: Data for variable month6 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3650
3651 month.sps:39.1-39.7: warning: Data for variable month7 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3652
3653 month.sps:39.1-39.8: warning: Data for variable month8 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3654
3655 month.sps:39.1-39.9: warning: Data for variable month9 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3656
3657 month.sps:39.1-39.10: warning: Data for variable month10 is not valid as format MONTH: Unrecognized month format.  Months may be specified as Arabic or Roman numerals or as at least 3 letters of their English names.
3658 ])
3659 AT_CHECK([cat month.out], [0], [dnl
3660    .   .   .   .   .   .   .   . @&t@
3661    .   .   .   .   .   .   .   . @&t@
3662  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3663  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3664  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3665  MAR   .   .   .   .   .   .   . @&t@
3666  APR APR APR APR APR APR APR APR @&t@
3667  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3668  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3669  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3670  JUL AUG AUG AUG AUG AUG AUG AUG @&t@
3671  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3672  JUL AUG AUG AUG AUG AUG AUG AUG @&t@
3673  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3674  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3675  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3676    .   .   .   .   .   .   .   . @&t@
3677  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3678  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3679  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3680  APR APR APR APR APR APR APR APR @&t@
3681  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3682  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3683  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3684  AUG AUG AUG AUG AUG AUG AUG AUG @&t@
3685  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3686  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3687  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3688  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3689    .   .   .   .   .   .   .   . @&t@
3690  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3691  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3692  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3693  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3694  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3695  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3696  APR APR APR APR APR APR APR APR @&t@
3697  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3698  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3699  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3700  AUG AUG AUG AUG AUG AUG AUG AUG @&t@
3701  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3702  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3703  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3704  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3705  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3706 ])
3707 AT_CLEANUP