Merge remote-tracking branch 'origin/master' into sheet
[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
17 AT_BANNER([data input (data-in)])
18
19 m4_divert_push([PREPARE_TESTS])
20 [data_in_prng () {
21   cat > my-rand.pl <<'EOF'
22 # This random number generator and the test for it below are drawn
23 # from Park and Miller, "Random Number Generators: Good Ones are Hard
24 # to Come By", Communications of the ACM 31:10 (October 1988).  It is
25 # documented to function properly on systems with a 46-bit or longer
26 # real significand, which includes systems that have 64-bit IEEE reals
27 # (with 53-bit significand).  The test should catch any systems for
28 # which this is not true, in any case.
29
30 our ($seed) = 1;
31 sub my_rand {
32   my ($modulo) = @_;
33   my ($a) = 16807;
34   my ($m) = 2147483647;
35   my ($tmp) = $a * $seed;
36   $seed = $tmp - $m * int ($tmp / $m);
37   return $seed % $modulo;
38 }
39 EOF
40   cat > test-my-rand.pl <<'EOF'
41 #! /usr/bin/perl
42 use strict;
43 use warnings;
44 do './my-rand.pl';
45 my_rand (1) foreach 1...10000;
46 our $seed;
47 die $seed if $seed != 1043618065;
48 EOF
49 }
50 date_in () {
51   data_in_prng
52   cat > date-in.pl << 'EOF'
53 #! /usr/bin/perl
54
55 use strict;
56 use warnings;
57
58 do './my-rand.pl';
59
60 my ($fmt_name, @templates) = @ARGV;
61
62 my @dates = (#yyyy  mm  dd  jjj  HH  MM  SS
63              [1648,  6, 10, 162,  0,  0,  0],
64              [1680,  6, 30, 182,  4, 50, 38],
65              [1716,  7, 24, 206, 12, 31, 35],
66              [1768,  6, 19, 171, 12, 47, 53],
67              [1819,  8,  2, 214,  1, 26,  0],
68              [1839,  3, 27,  86, 20, 58, 11],
69              [1903,  4, 19, 109,  7, 36,  5],
70              [1929,  8, 25, 237, 15, 43, 49],
71              [1941,  9, 29, 272,  4, 25,  9],
72              [1943,  4, 19, 109,  6, 49, 27],
73              [1943, 10,  7, 280,  2, 57, 52],
74              [1992,  3, 17,  77, 16, 45, 44],
75              [1996,  2, 25,  56, 21, 30, 57],
76              [1941,  9, 29, 272,  4, 25,  9],
77              [1943,  4, 19, 109,  6, 49, 27],
78              [1943, 10,  7, 280,  2, 57, 52],
79              [1992,  3, 17,  77, 16, 45, 44],
80              [1996,  2, 25,  56, 21, 30, 57],
81              [2038, 11, 10, 314, 22, 30,  4],
82              [2094,  7, 18, 199,  1, 56, 51]);
83
84 open (SYNTAX, '>', "$fmt_name.sps") or die "$fmt_name.sps: create: $!\n";
85 print SYNTAX "SET EPOCH 1930.\n";
86 print SYNTAX "DATA LIST NOTABLE FILE='$fmt_name.in'/$fmt_name 1-40 ($fmt_name).\n";
87 print SYNTAX "PRINT OUTFILE='$fmt_name.out'/$fmt_name (F16.2).\n";
88 print SYNTAX "EXECUTE.\n";
89 close (SYNTAX);
90
91 my ($fn) = "$fmt_name.in";
92 open (DATA, '>', $fn) or die "$fn: create: $!\n";
93 select DATA;
94 for my $template (@templates) {
95     for my $date (@dates) {
96         print_date_with_template ($date, $template) for 1...10;
97     }
98 }
99 close (DATA);
100
101 sub print_date_with_template {
102     my ($date, $template) = @_;
103     my ($year, $month, $day, $julian, $hour, $minute, $second) = @$date;
104     my ($quarter) = int (($month - 1) / 3) + 1;
105     my ($week) = int (($julian - 1) / 7) + 1;
106     my (@year_types) = ('full');
107     push (@year_types, '2digit') if $year >= 1930 && $year < 2030;
108     for my $c (split ('', $template)) {
109         if ($c eq 'd') {
110             printf (+pick ('%d', '%02d'), $day);
111         } elsif ($c eq 'm') {
112             my ($type) = pick ('arabic', 'roman', 'abbrev', 'full');
113             if ($type eq 'arabic') {
114                 printf (+pick ('%d', '%02d'), $month);
115             } elsif ($type eq 'roman') {
116                 my ($mmm) = ('i', 'ii', 'iii',
117                              'iv', 'v', 'vi',
118                              'vii', 'viii', 'ix',
119                              'x', 'xi', 'xii')[$month - 1];
120                 print_rand_case ($mmm);
121             } elsif ($type eq 'abbrev') {
122                 my ($mmm) = qw (jan feb mar apr may jun
123                                 jul aug sep oct nov dec)[$month - 1];
124                 print_rand_case ($mmm);
125             } elsif ($type eq 'full') {
126                 my ($mmm) = qw (january february march
127                                 april may june
128                                 july august september
129                                 october november december)[$month - 1];
130                 print_rand_case ($mmm);
131             } else {
132                 die;
133             }
134         } elsif ($c eq 'y') {
135             my ($type) = pick (@year_types);
136             if ($type eq '2digit') {
137                 printf (+pick ('%d', '%02d'), $year % 100);
138             } elsif ($type eq 'full') {
139                 print $year;
140             } else {
141                 die;
142             }
143         } elsif ($c eq 'j') {
144             my ($type) = pick (@year_types);
145             if ($type eq '2digit') {
146                 printf ("%02d%03d", $year % 100, $julian);
147             } elsif ($type eq 'full') {
148                 printf ("%04d%03d", $year, $julian);
149             } else {
150                 die;
151             }
152         } elsif ($c eq 'q') {
153             print $quarter;
154         } elsif ($c eq 'w') {
155             print $week;
156         } elsif ($c eq 'H') {
157             printf (+pick ('%d', '%02d'), $hour);
158         } elsif ($c eq 'M') {
159             printf (+pick ('%d', '%02d'), $minute);
160         } elsif ($c eq 'S') {
161             printf (+pick ('%d', '%02d'), $second);
162         } elsif ($c eq '-') {
163             print +pick (' ', '-', '.', ',', '/');
164         } elsif ($c eq ':') {
165             print +pick (' ', ':');
166         } elsif ($c eq ' ') {
167             print ' ';
168         } elsif ($c eq 'Q') {
169             maybe_print_space ();
170             print_rand_case ('q');
171             maybe_print_space ();
172         } elsif ($c eq 'W') {
173             maybe_print_space ();
174             print_rand_case ('wk');
175             maybe_print_space ();
176         } elsif ($c eq '+') {
177             print +pick ('', '-', '+');
178         } else {
179             die;
180         }
181     }
182     print "\n";
183 }
184
185 sub print_rand_case {
186     my ($s) = @_;
187     my ($case) = pick (qw (uc lc tc));
188     if ($case eq 'uc') {
189         print uc ($s);
190     } elsif ($case eq 'lc') {
191         print lc ($s);
192     } elsif ($case eq 'tc') {
193         print ucfirst ($s);
194     } else {
195         die;
196     }
197 }
198
199 sub maybe_print_space {
200    print +pick ('', ' ');
201 }
202
203 sub pick {
204    return $_[int (my_rand ($#_
205                            + 1))];
206 }
207 EOF
208 }
209 time_in () {
210   data_in_prng
211   cat > time-in.pl << 'EOF'
212 #! /usr/bin/perl
213
214 use strict;
215 use warnings;
216
217 do './my-rand.pl';
218
219 my ($skip, $fmt_name, @templates) = @ARGV;
220
221 my_rand (1) foreach 1...$skip;
222
223 my @times = (#  D  HH  MM     SS
224              [  0,  0,  0,  0.00],
225              [  1,  4, 50, 38.68],
226              [  5, 12, 31, 35.82],
227              [  0, 12, 47, 53.41],
228              [  3,  1, 26,  0.69],
229              [  1, 20, 58, 11.19],
230              [ 12,  7, 36,  5.98],
231              [ 52, 15, 43, 49.27],
232              [  7,  4, 25,  9.24],
233              [  0,  6, 49, 27.89],
234              [ 20,  2, 57, 52.56],
235              [555, 16, 45, 44.12],
236              [120, 21, 30, 57.27],
237              [  0,  4, 25,  9.98],
238              [  3,  6, 49, 27.24],
239              [  5,  2, 57, 52.13],
240              [  0, 16, 45, 44.35],
241              [  1, 21, 30, 57.32],
242              [ 10, 22, 30,  4.27],
243              [ 22,  1, 56, 51.18]);
244
245 open (SYNTAX, '>', "$fmt_name.sps") or die "$fmt_name.sps: create: $!\n";
246 print SYNTAX "DATA LIST NOTABLE FILE='$fmt_name.data'/$fmt_name 1-40 ($fmt_name).\n";
247 print SYNTAX "PRINT OUTFILE='$fmt_name.out'/$fmt_name (F16.2).\n";
248 print SYNTAX "EXECUTE.\n";
249 close (SYNTAX);
250
251 my ($fn) = "$fmt_name.data";
252 open (DATA, '>', $fn) or die "$fn: create: $!\n";
253 select DATA;
254 for my $template (@templates) {
255     for my $time (@times) {
256         print_time_with_template ($time, $template) for 1...10;
257     }
258 }
259 close (DATA);
260
261 sub print_time_with_template {
262     my ($time, $template) = @_;
263     my ($day, $hour, $minute, $second) = @$time;
264     for my $c (split ('', $template)) {
265         if ($c eq '+') {
266             print +pick ('', '-', '+');
267         } elsif ($c eq 'D') {
268             printf (+pick ('%d', '%02d'), $day);
269             $day = 0;
270         } elsif ($c eq 'H') {
271             printf (+pick ('%d', '%02d'), $hour + 24 * $day);
272         } elsif ($c eq 'M') {
273             printf (+pick ('%d', '%02d'), $minute);
274         } elsif ($c eq 'S') {
275             printf (+pick ('%.0f', '%02.0f', '%.1f', '%.2f'), $second);
276         } elsif ($c eq ':') {
277             print +pick (' ', ':');
278         } elsif ($c eq ' ') {
279             print ' ';
280         } else {
281             die;
282         }
283     }
284     print "\n";
285 }
286
287 sub pick {
288    return $_[int (my_rand ($#_ 
289                            + 1)) ];
290 }
291 EOF
292 }]
293 m4_divert_pop([PREPARE_TESTS])
294
295 AT_SETUP([numeric input formats])
296 AT_KEYWORDS([data-in])
297 data_in_prng
298 AT_CHECK([$PERL test-my-rand.pl])
299 AT_DATA([num-in.pl],
300 [[#! /usr/bin/perl
301
302 use POSIX;
303 use strict;
304 use warnings;
305
306 do './my-rand.pl';
307
308 for my $number (0, 1, .5, .015625, 123) {
309     my ($base_exp) = floor ($number ? log10 ($number) : 0);
310     for my $offset (-3...3) {
311         my ($exponent) = $base_exp + $offset;
312         my ($fraction) = $number / 10**$offset;
313
314         permute_zeros ($fraction, $exponent);
315     }
316 }
317
318 sub permute_zeros {
319     my ($fraction, $exponent) = @_;
320
321     my ($frac_rep) = sprintf ("%f", $fraction);
322     my ($leading_zeros) = length (($frac_rep =~ /^(0*)/)[0]);
323     my ($trailing_zeros) = length (($frac_rep =~ /(\.?0*)$/)[0]);
324     for my $i (0...$leading_zeros) {
325         for my $j (0...$trailing_zeros) {
326             my ($trimmed) = substr ($frac_rep, $i,
327                                     length ($frac_rep) - $i - $j);
328             next if $trimmed eq '.' || $trimmed eq '';
329
330             permute_commas ($trimmed, $exponent);
331         }
332     }
333 }
334
335 sub permute_commas {
336     my ($frac_rep, $exponent) = @_;
337     permute_dot_comma ($frac_rep, $exponent);
338     my ($pos) = int (my_rand (length ($frac_rep) + 1));
339     $frac_rep = substr ($frac_rep, 0, $pos) . "," . substr ($frac_rep, $pos);
340     permute_dot_comma ($frac_rep, $exponent);
341 }
342
343 sub permute_dot_comma {
344     my ($frac_rep, $exponent) = @_;
345     permute_exponent_syntax ($frac_rep, $exponent);
346     if ($frac_rep =~ /[,.]/) {
347         $frac_rep =~ tr/.,/,./;
348         permute_exponent_syntax ($frac_rep, $exponent);
349     }
350 }
351
352 sub permute_exponent_syntax {
353     my ($frac_rep, $exponent) = @_;
354     my (@exp_reps);
355     if ($exponent == 0) {
356         @exp_reps = pick ('', 'e0', 'e-0', 'e+0', '-0', '+0');
357     } elsif ($exponent > 0) {
358         @exp_reps = pick ("e$exponent", "e+$exponent", "+$exponent");
359     } else {
360         my ($abs_exp) = -$exponent;
361         @exp_reps = pick ("e-$abs_exp", , "e-$abs_exp", "-$abs_exp");
362     }
363     permute_sign_and_affix ($frac_rep, $_) foreach @exp_reps;
364 }
365
366 sub permute_sign_and_affix {
367     my ($frac_rep, $exp_rep) = @_;
368     for my $prefix (pick ('', '$'),
369                     pick ('-', '-$', '$-', '$-$'),
370                     pick ('+', '+$', '$+', '$+$')) {
371         for my $suffix ('', '%') {
372             permute_spaces ("$prefix$frac_rep$exp_rep$suffix");
373         }
374     }
375 }
376
377 sub permute_spaces {
378     my ($s) = @_;
379     $s =~ s/([-+\$e%])/ $1 /g;
380     my (@fields) = split (' ', $s);
381     print join ('', @fields), "\n";
382
383     if ($#fields > 0) {
384         my ($pos) = int (my_rand ($#fields)) + 1;
385         print join ('', @fields[0...$pos - 1]);
386         print " ";
387         print join ('', @fields[$pos...$#fields]);
388         print "\n";
389     }
390 }
391
392 sub pick {
393     return $_[int (my_rand ($#_ + 1))];
394 }
395 ]])
396 AT_CHECK([$PERL num-in.pl > num-in.data])
397 AT_DATA([num-in.sps], [dnl
398 SET ERRORS=NONE.
399 SET MXERRS=10000000.
400 SET MXWARNS=10000000.
401 DATA LIST FILE='num-in.data' NOTABLE/
402         f 1-40 (f)
403         comma 1-40 (comma)
404         dot 1-40 (dot)
405         dollar 1-40 (dollar)
406         pct 1-40 (pct)
407         e 1-40 (e).
408 PRINT OUTFILE='num-in.out'/all (6f10.4).
409 EXECUTE.
410 ])
411 AT_CHECK([pspp -O format=csv num-in.sps])
412 AT_CHECK([gzip -cd < $top_srcdir/tests/data/num-in.expected.gz > expout])
413 AT_CHECK([cat num-in.out], [0], [expout])
414 AT_CLEANUP
415
416 dnl Some very old version of PSPP crashed reading big numbers,
417 dnl so this checks for regressions.
418 AT_SETUP([reading big numbers])
419 AT_KEYWORDS([data-in])
420 AT_DATA([bignum.txt], [dnl
421 0
422 0.1
423 0.5
424 0.8
425 0.9
426 0.999
427 1
428 2
429 3
430 4
431 5
432 12
433 123
434 1234
435 12345
436 123456
437 1234567
438 12345678
439 123456789
440 1234567890
441 19999999999
442 199999999999
443 1234567890123
444 19999999999999
445 199999999999999
446 1234567890123456
447 19999999999999999
448 123456789012345678
449 1999999999999999999
450 12345678901234567890
451 199999999999999999999
452 1234567890123456789012
453 19999999999999999999999
454 123456789012345678901234
455 1999999999999999999999999
456 12345678901234567890123456
457 199999999999999999999999999
458 1234567890123456789012345678
459 19999999999999999999999999999
460 123456789012345678901234567890
461 1999999999999999999999999999999
462 12345678901234567890123456789012
463 199999999999999999999999999999999
464 1234567890123456789012345678901234
465 19999999999999999999999999999999999
466 123456789012345678901234567890123456
467 1999999999999999999999999999999999999
468 12345678901234567890123456789012345678
469 199999999999999999999999999999999999999
470 1234567890123456789012345678901234567890
471 1999999999999999999999999999999999999999
472 1e40
473 1.1e40
474 1.5e40
475 1e41
476 1e50
477 1e100
478 1e150
479 1e200
480 1e250
481 1e300
482 1.79641e308
483 wizzah
484 ])
485 AT_DATA([bignum.sps], [dnl
486 title 'Test use of big numbers'.
487
488 *** Do the portable output.
489 data list file='bignum.txt'/BIGNUM 1-40.
490 list.
491
492 *** Do the nonportable output for fun. 
493 descriptives BIGNUM.
494 ])
495 AT_CHECK([pspp -o pspp.csv bignum.sps], [0], [ignore])
496 AT_CLEANUP
497
498 AT_SETUP([DATE input format])
499 AT_KEYWORDS([data-in])
500 date_in
501 AT_CHECK([$PERL test-my-rand.pl])
502 AT_CHECK([$PERL date-in.pl date d-m-y])
503 AT_CHECK([test -s date.sps])
504 AT_CHECK([test -s date.in])
505 AT_CHECK([pspp -O format=csv date.sps])
506 AT_CHECK([cat date.out], [0], [dnl
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     2071958400.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     3083529600.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     4221590400.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     5859561600.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     7472649600.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     8092742400.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    10114329600.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    10945929600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    14392339200.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    16149628800.00
707 ])
708 AT_CLEANUP
709
710 AT_SETUP([ADATE input format])
711 AT_KEYWORDS([data-in])
712 date_in
713 AT_CHECK([$PERL test-my-rand.pl])
714 AT_CHECK([$PERL date-in.pl adate m-d-y])
715 AT_CHECK([test -s adate.sps])
716 AT_CHECK([test -s adate.in])
717 AT_CHECK([pspp -O format=csv adate.sps])
718 AT_CHECK([cat adate.out], [0], [dnl
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     2071958400.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     3083529600.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     4221590400.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     5859561600.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     7472649600.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     8092742400.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    10114329600.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    10945929600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    14392339200.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    16149628800.00
919 ])
920 AT_CLEANUP
921
922 AT_SETUP([EDATE input format])
923 AT_KEYWORDS([data-in])
924 date_in
925 AT_CHECK([$PERL test-my-rand.pl])
926 AT_CHECK([$PERL date-in.pl edate d-m-y])
927 AT_CHECK([test -s edate.sps])
928 AT_CHECK([test -s edate.in])
929 AT_CHECK([pspp -O format=csv edate.sps])
930 AT_CHECK([cat edate.out], [0], [dnl
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     2071958400.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     3083529600.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     4221590400.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     5859561600.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     7472649600.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     8092742400.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    10114329600.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    10945929600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    14392339200.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    16149628800.00
1131 ])
1132 AT_CLEANUP
1133
1134 AT_SETUP([JDATE input format])
1135 AT_KEYWORDS([data-in])
1136 date_in
1137 AT_CHECK([$PERL test-my-rand.pl])
1138 AT_CHECK([$PERL date-in.pl jdate j])
1139 AT_CHECK([test -s jdate.sps])
1140 AT_CHECK([test -s jdate.in])
1141 AT_CHECK([pspp -O format=csv jdate.sps])
1142 AT_CHECK([cat jdate.out], [0], [dnl
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     2071958400.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     3083529600.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     4221590400.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     5859561600.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     7472649600.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     8092742400.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    10114329600.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    10945929600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    14392339200.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    16149628800.00
1343 ])
1344 AT_CLEANUP
1345
1346 AT_SETUP([SDATE input format])
1347 AT_KEYWORDS([data-in])
1348 date_in
1349 AT_CHECK([$PERL test-my-rand.pl])
1350 AT_CHECK([$PERL date-in.pl sdate y-m-d])
1351 AT_CHECK([test -s sdate.sps])
1352 AT_CHECK([test -s sdate.in])
1353 AT_CHECK([pspp -O format=csv sdate.sps])
1354 AT_CHECK([cat sdate.out], [0], [dnl
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     2071958400.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     3083529600.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     4221590400.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     5859561600.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     7472649600.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     8092742400.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    10114329600.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    10945929600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    11327644800.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    11376633600.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    11391408000.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    12920169600.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    13044585600.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    14392339200.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    16149628800.00
1555 ])
1556 AT_CLEANUP
1557
1558 AT_SETUP([QYR input format])
1559 AT_KEYWORDS([data-in])
1560 date_in
1561 AT_CHECK([$PERL test-my-rand.pl])
1562 AT_CHECK([$PERL date-in.pl qyr qQy])
1563 AT_CHECK([test -s qyr.sps])
1564 AT_CHECK([test -s qyr.in])
1565 AT_CHECK([pspp -O format=csv qyr.sps])
1566 AT_CHECK([cat qyr.out], [0], [dnl
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     2065910400.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     3075753600.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     4219603200.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     5852736000.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     7469884800.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     8085398400.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    10112774400.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    10941177600.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    11319868800.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    11375078400.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    11390889600.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    12913603200.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    13039833600.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    11319868800.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    11375078400.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    11390889600.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    12913603200.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    13039833600.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    14388883200.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    16148160000.00
1767 ])
1768 AT_CLEANUP
1769
1770 AT_SETUP([MOYR input format])
1771 AT_KEYWORDS([data-in])
1772 date_in
1773 AT_CHECK([$PERL test-my-rand.pl])
1774 AT_CHECK([$PERL date-in.pl moyr m-y])
1775 AT_CHECK([test -s moyr.sps])
1776 AT_CHECK([test -s moyr.in])
1777 AT_CHECK([pspp -O format=csv moyr.sps])
1778 AT_CHECK([cat moyr.out], [0], [dnl
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     2071180800.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     3081024000.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     4219603200.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     5858006400.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     7472563200.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     8090496000.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    10112774400.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    10943856000.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    11325225600.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    11375078400.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    11390889600.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    12918787200.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    13042512000.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    11325225600.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    11375078400.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    11390889600.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    12918787200.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    13042512000.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    14391561600.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    16148160000.00
1979 ])
1980 AT_CLEANUP
1981
1982 AT_SETUP([WKYR input format])
1983 AT_KEYWORDS([data-in])
1984 date_in
1985 AT_CHECK([$PERL test-my-rand.pl])
1986 AT_CHECK([$PERL date-in.pl wkyr wWy])
1987 AT_CHECK([test -s wkyr.sps])
1988 AT_CHECK([test -s wkyr.in])
1989 AT_CHECK([pspp -O format=csv wkyr.sps])
1990 AT_CHECK([cat wkyr.out], [0], [dnl
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     2071958400.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     3083011200.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     4221417600.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     5859388800.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     7472390400.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     8092656000.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    10114070400.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    10945497600.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    11327212800.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    11376374400.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    11390889600.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    12919651200.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    13044067200.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    11327212800.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    11376374400.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    11390889600.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    12919651200.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    13044067200.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    14391907200.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    16149456000.00
2191 ])
2192 AT_CLEANUP
2193
2194 AT_SETUP([DATETIME input format])
2195 AT_KEYWORDS([data-in])
2196 date_in
2197 AT_CHECK([$PERL test-my-rand.pl])
2198 AT_CHECK([$PERL date-in.pl datetime "d-m-y +H:M" "d-m-y +H:M:S"])
2199 AT_CHECK([test -s datetime.sps])
2200 AT_CHECK([test -s datetime.in])
2201 AT_CHECK([pspp -O format=csv datetime.sps])
2202 AT_CHECK([cat datetime.out], [0], [dnl
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     2071958400.00
2213     3083512200.00
2214     3083512200.00
2215     3083547000.00
2216     3083547000.00
2217     3083547000.00
2218     3083512200.00
2219     3083547000.00
2220     3083547000.00
2221     3083512200.00
2222     3083512200.00
2223     4221545340.00
2224     4221635460.00
2225     4221545340.00
2226     4221545340.00
2227     4221635460.00
2228     4221635460.00
2229     4221545340.00
2230     4221635460.00
2231     4221545340.00
2232     4221635460.00
2233     5859607620.00
2234     5859607620.00
2235     5859515580.00
2236     5859515580.00
2237     5859607620.00
2238     5859607620.00
2239     5859607620.00
2240     5859607620.00
2241     5859515580.00
2242     5859607620.00
2243     7472644440.00
2244     7472654760.00
2245     7472654760.00
2246     7472654760.00
2247     7472654760.00
2248     7472654760.00
2249     7472654760.00
2250     7472654760.00
2251     7472644440.00
2252     7472654760.00
2253     8092817880.00
2254     8092666920.00
2255     8092817880.00
2256     8092666920.00
2257     8092817880.00
2258     8092817880.00
2259     8092666920.00
2260     8092817880.00
2261     8092666920.00
2262     8092817880.00
2263    10114302240.00
2264    10114356960.00
2265    10114302240.00
2266    10114302240.00
2267    10114302240.00
2268    10114356960.00
2269    10114302240.00
2270    10114302240.00
2271    10114302240.00
2272    10114356960.00
2273    10945873020.00
2274    10945986180.00
2275    10945986180.00
2276    10945986180.00
2277    10945873020.00
2278    10945986180.00
2279    10945986180.00
2280    10945873020.00
2281    10945986180.00
2282    10945873020.00
2283    11327628900.00
2284    11327660700.00
2285    11327660700.00
2286    11327660700.00
2287    11327660700.00
2288    11327628900.00
2289    11327628900.00
2290    11327660700.00
2291    11327660700.00
2292    11327660700.00
2293    11376658140.00
2294    11376609060.00
2295    11376658140.00
2296    11376658140.00
2297    11376609060.00
2298    11376658140.00
2299    11376609060.00
2300    11376658140.00
2301    11376658140.00
2302    11376658140.00
2303    11391418620.00
2304    11391418620.00
2305    11391397380.00
2306    11391397380.00
2307    11391418620.00
2308    11391418620.00
2309    11391397380.00
2310    11391418620.00
2311    11391418620.00
2312    11391418620.00
2313    12920229900.00
2314    12920229900.00
2315    12920229900.00
2316    12920229900.00
2317    12920229900.00
2318    12920109300.00
2319    12920229900.00
2320    12920109300.00
2321    12920229900.00
2322    12920229900.00
2323    13044508200.00
2324    13044663000.00
2325    13044508200.00
2326    13044663000.00
2327    13044508200.00
2328    13044508200.00
2329    13044663000.00
2330    13044663000.00
2331    13044663000.00
2332    13044663000.00
2333    11327660700.00
2334    11327628900.00
2335    11327628900.00
2336    11327660700.00
2337    11327628900.00
2338    11327628900.00
2339    11327628900.00
2340    11327628900.00
2341    11327628900.00
2342    11327628900.00
2343    11376609060.00
2344    11376658140.00
2345    11376658140.00
2346    11376609060.00
2347    11376658140.00
2348    11376609060.00
2349    11376658140.00
2350    11376609060.00
2351    11376658140.00
2352    11376658140.00
2353    11391397380.00
2354    11391397380.00
2355    11391418620.00
2356    11391397380.00
2357    11391418620.00
2358    11391418620.00
2359    11391418620.00
2360    11391418620.00
2361    11391418620.00
2362    11391397380.00
2363    12920229900.00
2364    12920229900.00
2365    12920229900.00
2366    12920229900.00
2367    12920229900.00
2368    12920229900.00
2369    12920109300.00
2370    12920229900.00
2371    12920229900.00
2372    12920229900.00
2373    13044508200.00
2374    13044663000.00
2375    13044508200.00
2376    13044508200.00
2377    13044508200.00
2378    13044663000.00
2379    13044663000.00
2380    13044663000.00
2381    13044508200.00
2382    13044508200.00
2383    14392420200.00
2384    14392258200.00
2385    14392420200.00
2386    14392420200.00
2387    14392420200.00
2388    14392420200.00
2389    14392258200.00
2390    14392420200.00
2391    14392420200.00
2392    14392420200.00
2393    16149635760.00
2394    16149635760.00
2395    16149635760.00
2396    16149635760.00
2397    16149635760.00
2398    16149635760.00
2399    16149635760.00
2400    16149635760.00
2401    16149621840.00
2402    16149635760.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     2071958400.00
2413     3083512162.00
2414     3083512162.00
2415     3083512162.00
2416     3083547038.00
2417     3083512162.00
2418     3083512162.00
2419     3083547038.00
2420     3083512162.00
2421     3083547038.00
2422     3083547038.00
2423     4221635495.00
2424     4221545305.00
2425     4221635495.00
2426     4221635495.00
2427     4221635495.00
2428     4221545305.00
2429     4221635495.00
2430     4221635495.00
2431     4221635495.00
2432     4221635495.00
2433     5859607673.00
2434     5859515527.00
2435     5859607673.00
2436     5859607673.00
2437     5859607673.00
2438     5859607673.00
2439     5859515527.00
2440     5859607673.00
2441     5859607673.00
2442     5859607673.00
2443     7472654760.00
2444     7472644440.00
2445     7472654760.00
2446     7472654760.00
2447     7472654760.00
2448     7472644440.00
2449     7472654760.00
2450     7472654760.00
2451     7472644440.00
2452     7472654760.00
2453     8092817891.00
2454     8092817891.00
2455     8092666909.00
2456     8092817891.00
2457     8092817891.00
2458     8092817891.00
2459     8092817891.00
2460     8092817891.00
2461     8092817891.00
2462     8092817891.00
2463    10114302235.00
2464    10114302235.00
2465    10114302235.00
2466    10114356965.00
2467    10114356965.00
2468    10114356965.00
2469    10114356965.00
2470    10114356965.00
2471    10114356965.00
2472    10114302235.00
2473    10945986229.00
2474    10945986229.00
2475    10945872971.00
2476    10945872971.00
2477    10945986229.00
2478    10945986229.00
2479    10945872971.00
2480    10945986229.00
2481    10945986229.00
2482    10945986229.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    11327660709.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    11376658167.00
2503    11391397328.00
2504    11391418672.00
2505    11391418672.00
2506    11391418672.00
2507    11391397328.00
2508    11391418672.00
2509    11391397328.00
2510    11391418672.00
2511    11391418672.00
2512    11391418672.00
2513    12920229944.00
2514    12920229944.00
2515    12920109256.00
2516    12920229944.00
2517    12920229944.00
2518    12920109256.00
2519    12920109256.00
2520    12920109256.00
2521    12920229944.00
2522    12920109256.00
2523    13044663057.00
2524    13044663057.00
2525    13044663057.00
2526    13044508143.00
2527    13044663057.00
2528    13044663057.00
2529    13044663057.00
2530    13044508143.00
2531    13044663057.00
2532    13044663057.00
2533    11327628891.00
2534    11327628891.00
2535    11327660709.00
2536    11327660709.00
2537    11327660709.00
2538    11327628891.00
2539    11327628891.00
2540    11327660709.00
2541    11327660709.00
2542    11327628891.00
2543    11376658167.00
2544    11376658167.00
2545    11376658167.00
2546    11376658167.00
2547    11376658167.00
2548    11376609033.00
2549    11376658167.00
2550    11376609033.00
2551    11376658167.00
2552    11376658167.00
2553    11391418672.00
2554    11391397328.00
2555    11391418672.00
2556    11391397328.00
2557    11391397328.00
2558    11391397328.00
2559    11391397328.00
2560    11391397328.00
2561    11391397328.00
2562    11391397328.00
2563    12920229944.00
2564    12920229944.00
2565    12920229944.00
2566    12920109256.00
2567    12920229944.00
2568    12920229944.00
2569    12920229944.00
2570    12920229944.00
2571    12920229944.00
2572    12920229944.00
2573    13044663057.00
2574    13044663057.00
2575    13044663057.00
2576    13044663057.00
2577    13044508143.00
2578    13044663057.00
2579    13044508143.00
2580    13044508143.00
2581    13044663057.00
2582    13044663057.00
2583    14392258196.00
2584    14392420204.00
2585    14392420204.00
2586    14392420204.00
2587    14392258196.00
2588    14392420204.00
2589    14392420204.00
2590    14392258196.00
2591    14392420204.00
2592    14392420204.00
2593    16149635811.00
2594    16149635811.00
2595    16149635811.00
2596    16149635811.00
2597    16149635811.00
2598    16149621789.00
2599    16149621789.00
2600    16149621789.00
2601    16149635811.00
2602    16149635811.00
2603 ])
2604 AT_CLEANUP
2605
2606 AT_SETUP([TIME input format])
2607 AT_KEYWORDS([data-in])
2608 time_in
2609 AT_CHECK([$PERL test-my-rand.pl])
2610 AT_CHECK([$PERL time-in.pl 0 time +H:M +H:M:S])
2611 AT_CHECK([test -s time.sps])
2612 AT_CHECK([test -s time.data])
2613 AT_CHECK([pspp -O format=csv time.sps])
2614 AT_CHECK([cat time.out], [0], [dnl
2615               .00
2616               .00
2617               .00
2618               .00
2619               .00
2620               .00
2621               .00
2622               .00
2623               .00
2624               .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         103800.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        -477060.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         -46020.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        -264360.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        -161880.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        1064160.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        4549380.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         620700.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          24540.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        1738620.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       48012300.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      -10445400.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          15900.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         283740.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        -442620.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         -60300.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         163800.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         945000.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       -1907760.00
2815               .00
2816               .00
2817               .00
2818               .00
2819               .00
2820               .00
2821               .00
2822               .00
2823               .00
2824               .00
2825         103839.00
2826         103838.68
2827        -103838.70
2828        -103838.68
2829         103838.70
2830         103838.68
2831        -103839.00
2832         103838.68
2833         103838.70
2834        -103839.00
2835         477095.82
2836         477096.00
2837         477096.00
2838         477095.82
2839         477095.82
2840         477095.82
2841         477095.80
2842        -477095.80
2843         477095.82
2844        -477095.82
2845         -46073.00
2846         -46073.40
2847          46073.00
2848          46073.40
2849          46073.40
2850          46073.00
2851         -46073.00
2852          46073.00
2853          46073.00
2854          46073.00
2855         264360.69
2856        -264360.70
2857         264361.00
2858         264360.70
2859         264360.69
2860         264360.70
2861         264361.00
2862         264360.70
2863        -264361.00
2864         264361.00
2865         161891.00
2866        -161891.20
2867        -161891.00
2868         161891.00
2869        -161891.00
2870         161891.20
2871        -161891.20
2872        -161891.20
2873         161891.20
2874        -161891.19
2875       -1064166.00
2876        1064165.98
2877       -1064166.00
2878       -1064166.00
2879       -1064165.98
2880        1064166.00
2881        1064166.00
2882       -1064166.00
2883       -1064165.98
2884        1064166.00
2885        4549429.00
2886        4549429.27
2887        4549429.27
2888       -4549429.30
2889        4549429.00
2890       -4549429.00
2891        4549429.00
2892        4549429.27
2893        4549429.00
2894        4549429.30
2895         620709.00
2896        -620709.24
2897         620709.24
2898         620709.24
2899         620709.24
2900         620709.20
2901        -620709.24
2902         620709.20
2903         620709.24
2904         620709.24
2905          24567.90
2906          24567.89
2907          24567.90
2908          24568.00
2909          24567.90
2910          24568.00
2911          24568.00
2912         -24567.90
2913          24567.90
2914          24568.00
2915        1738672.56
2916        1738673.00
2917       -1738672.60
2918       -1738672.56
2919        1738673.00
2920        1738673.00
2921        1738673.00
2922        1738672.60
2923       -1738672.56
2924        1738672.60
2925      -48012344.10
2926       48012344.12
2927      -48012344.10
2928      -48012344.00
2929      -48012344.00
2930       48012344.00
2931      -48012344.00
2932      -48012344.00
2933      -48012344.00
2934       48012344.00
2935       10445457.27
2936       10445457.00
2937       10445457.30
2938       10445457.00
2939       10445457.27
2940       10445457.00
2941       10445457.27
2942       10445457.00
2943       10445457.00
2944      -10445457.30
2945         -15909.98
2946          15910.00
2947         -15910.00
2948          15910.00
2949         -15909.98
2950          15910.00
2951         -15909.98
2952          15909.98
2953          15910.00
2954          15909.98
2955        -283767.00
2956         283767.20
2957         283767.20
2958         283767.00
2959        -283767.00
2960         283767.00
2961         283767.24
2962         283767.00
2963         283767.24
2964         283767.00
2965        -442672.00
2966         442672.13
2967         442672.00
2968         442672.13
2969         442672.00
2970         442672.00
2971         442672.00
2972         442672.00
2973        -442672.00
2974         442672.13
2975         -60344.40
2976         -60344.00
2977          60344.00
2978          60344.35
2979          60344.00
2980          60344.40
2981          60344.40
2982         -60344.00
2983          60344.00
2984          60344.40
2985         163857.00
2986         163857.00
2987         163857.00
2988         163857.00
2989         163857.30
2990        -163857.30
2991         163857.30
2992        -163857.00
2993        -163857.00
2994         163857.30
2995         945004.30
2996         945004.00
2997         945004.27
2998         945004.30
2999         945004.30
3000         945004.00
3001         945004.30
3002         945004.00
3003         945004.00
3004         945004.00
3005        1907811.00
3006        1907811.00
3007       -1907811.00
3008        1907811.18
3009        1907811.20
3010        1907811.00
3011       -1907811.00
3012        1907811.18
3013       -1907811.00
3014       -1907811.00
3015 ])
3016 AT_CLEANUP
3017
3018 AT_SETUP([DTIME input format])
3019 AT_KEYWORDS([data-in])
3020 time_in
3021 AT_CHECK([$PERL test-my-rand.pl])
3022 AT_CHECK([$PERL time-in.pl 2000 dtime '+D H:M' '+D H:M:S'])
3023 AT_CHECK([test -s dtime.sps])
3024 AT_CHECK([test -s dtime.data])
3025 AT_CHECK([pspp -O format=csv dtime.sps])
3026 AT_CHECK([cat dtime.out], [0], [dnl
3027               .00
3028               .00
3029               .00
3030               .00
3031               .00
3032               .00
3033               .00
3034               .00
3035               .00
3036               .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        -103800.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         477060.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          46020.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        -264360.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        -161880.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        1064160.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        4549380.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         620700.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         -24540.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        1738620.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      -48012300.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       10445400.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          15900.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        -283740.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         442620.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          60300.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        -163800.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        -945000.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       -1907760.00
3227               .00
3228               .00
3229               .00
3230               .00
3231               .00
3232               .00
3233               .00
3234               .00
3235               .00
3236               .00
3237         103838.70
3238         103838.70
3239         103839.00
3240         103838.68
3241         103838.70
3242         103839.00
3243         103838.70
3244        -103839.00
3245         103839.00
3246         103839.00
3247         477095.80
3248         477095.80
3249        -477095.80
3250         477095.82
3251         477095.82
3252         477095.82
3253        -477095.82
3254         477095.82
3255         477096.00
3256        -477096.00
3257         -46073.00
3258          46073.00
3259         -46073.00
3260          46073.41
3261          46073.00
3262          46073.40
3263          46073.00
3264          46073.41
3265          46073.41
3266         -46073.00
3267         264360.70
3268         264360.70
3269         264360.69
3270         264361.00
3271        -264360.70
3272         264360.69
3273        -264360.70
3274         264360.69
3275        -264361.00
3276         264360.69
3277         161891.00
3278        -161891.20
3279        -161891.19
3280         161891.19
3281         161891.00
3282         161891.20
3283         161891.20
3284         161891.00
3285         161891.00
3286         161891.20
3287       -1064165.98
3288        1064166.00
3289        1064166.00
3290        1064166.00
3291        1064165.98
3292        1064166.00
3293        1064166.00
3294       -1064165.98
3295        1064165.98
3296       -1064166.00
3297        4549429.27
3298        4549429.27
3299        4549429.27
3300        4549429.27
3301        4549429.00
3302        4549429.27
3303       -4549429.27
3304        4549429.00
3305        4549429.27
3306        4549429.27
3307        -620709.00
3308         620709.20
3309         620709.00
3310        -620709.20
3311        -620709.24
3312        -620709.00
3313         620709.00
3314         620709.24
3315        -620709.24
3316         620709.00
3317         -24567.89
3318          24567.90
3319          24568.00
3320          24567.89
3321          24568.00
3322          24568.00
3323          24567.90
3324         -24568.00
3325         -24567.89
3326         -24568.00
3327        1738672.56
3328       -1738672.56
3329        1738672.56
3330       -1738672.60
3331       -1738673.00
3332        1738672.56
3333        1738673.00
3334       -1738672.60
3335        1738672.60
3336        1738672.56
3337       48012344.00
3338      -48012344.12
3339      -48012344.00
3340       48012344.12
3341      -48012344.12
3342      -48012344.00
3343       48012344.12
3344      -48012344.00
3345      -48012344.00
3346      -48012344.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.00
3356      -10445457.30
3357         -15909.98
3358          15910.00
3359         -15909.98
3360          15910.00
3361          15910.00
3362         -15910.00
3363         -15910.00
3364         -15910.00
3365         -15910.00
3366          15909.98
3367        -283767.24
3368         283767.20
3369         283767.24
3370         283767.24
3371         283767.00
3372         283767.20
3373         283767.20
3374         283767.24
3375        -283767.00
3376         283767.24
3377         442672.13
3378        -442672.13
3379         442672.00
3380         442672.13
3381         442672.10
3382         442672.00
3383         442672.00
3384        -442672.10
3385         442672.00
3386        -442672.10
3387         -60344.35
3388          60344.00
3389          60344.00
3390         -60344.00
3391          60344.00
3392          60344.35
3393          60344.00
3394          60344.35
3395          60344.00
3396          60344.00
3397        -163857.00
3398        -163857.00
3399         163857.32
3400         163857.00
3401        -163857.30
3402        -163857.00
3403         163857.30
3404         163857.00
3405         163857.00
3406        -163857.00
3407        -945004.00
3408        -945004.30
3409         945004.27
3410         945004.27
3411        -945004.27
3412        -945004.27
3413        -945004.00
3414        -945004.27
3415        -945004.00
3416         945004.30
3417        1907811.00
3418        1907811.00
3419        1907811.00
3420        1907811.00
3421        1907811.20
3422        1907811.18
3423        1907811.18
3424        1907811.18
3425        1907811.18
3426        1907811.00
3427 ])
3428 AT_CLEANUP
3429
3430 AT_SETUP([binary and hexadecimal input (IB, PIB, and PIBHEX formats)])
3431 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > binhex-in.data])
3432 AT_CHECK([[wc -c < binhex-in.data | sed 's/[    ]//g']], [0], [131072
3433 ])
3434 AT_DATA([binhex-in.sps], [dnl
3435 SET RIB=MSBFIRST.
3436 SET ERRORS=NONE.
3437 SET MXWARNS=10000000.
3438 SET MXERRS=10000000.
3439 FILE HANDLE data/NAME='binhex-in.data'/MODE=IMAGE/LRECL=2.
3440 DATA LIST FILE=data NOTABLE/ib 1-2 (IB) pib 1-2 (PIB) pibhex 1-2 (PIBHEX).
3441 COMPUTE x=$CASENUM - 1.
3442 PRINT OUTFILE='binhex-in.out'/x (PIBHEX4) ' ' ib pib pibhex.
3443 EXECUTE.
3444 ])
3445 AT_CHECK([gzip -cd < $top_srcdir/tests/data/binhex-in.expected.cmp.gz | \
3446             $PERL -pe "printf ' %04X ', $.-1" > expout])
3447 AT_CHECK([pspp -O format=csv binhex-in.sps], [0])
3448 AT_CHECK([cat binhex-in.out], [0], [expout])
3449 AT_CLEANUP
3450
3451 AT_SETUP([BCD input (P and PK formats)])
3452 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > bcd-in.data])
3453 AT_CHECK([[wc -c < bcd-in.data | sed 's/[       ]//g']], [0], [131072
3454 ])
3455 AT_DATA([bcd-in.sps], [dnl
3456 SET ERRORS=NONE.
3457 SET MXWARNS=10000000.
3458 SET MXERRS=10000000.
3459 FILE HANDLE data/NAME='bcd-in.data'/MODE=IMAGE/LRECL=2.
3460 DATA LIST FILE=data NOTABLE/p 1-2 (P) pk 1-2 (PK).
3461 COMPUTE x=$CASENUM - 1.
3462 PRINT OUTFILE='bcd-in.out'/x (PIBHEX4) ' ' P PK.
3463 EXECUTE.
3464 ])
3465 AT_CHECK([gzip -cd < $top_srcdir/tests/data/bcd-in.expected.cmp.gz | \
3466             $PERL -pe "printf ' %04X ', $.-1" > expout])
3467 AT_CHECK([pspp -O format=csv bcd-in.sps])
3468 AT_CHECK([cat bcd-in.out], [0], [expout])
3469 AT_CLEANUP
3470
3471 AT_SETUP([legacy input (N and Z formats)])
3472 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > legacy-in.data])
3473 AT_CHECK([[wc -c < legacy-in.data | sed 's/[    ]//g']], [0], [131072
3474 ])
3475 AT_DATA([legacy-in.sps], [dnl
3476 SET ERRORS=NONE.
3477 SET MXWARNS=10000000.
3478 SET MXERRS=10000000.
3479 FILE HANDLE data/NAME='legacy-in.data'/MODE=IMAGE/LRECL=2.
3480 DATA LIST NOTABLE FILE=data/n 1-2 (N) z 1-2 (z).
3481 COMPUTE x=$CASENUM - 1.
3482 PRINT OUTFILE='legacy-in.out'/x (PIBHEX4) ' ' N Z.
3483 EXECUTE.
3484 ])
3485 AT_CHECK([gzip -cd < $top_srcdir/tests/data/legacy-in.expected.cmp.gz | \
3486             $PERL -pe "printf ' %04X ', $.-1" > expout])
3487 AT_CHECK([pspp -O format=csv legacy-in.sps])
3488 AT_CHECK([cat legacy-in.out], [0], [expout])
3489 AT_CLEANUP
3490
3491 AT_SETUP([WKDAY input format])
3492 AT_DATA([wkday.sps], [dnl
3493 DATA LIST NOTABLE /wkday2 1-2 (wkday)
3494                    wkday3 1-3 (wkday)
3495                    wkday4 1-4 (wkday)
3496                    wkday5 1-5 (wkday)
3497                    wkday6 1-6 (wkday)
3498                    wkday7 1-7 (wkday)
3499                    wkday8 1-8 (wkday)
3500                    wkday9 1-9 (wkday)
3501                    wkday10 1-10 (wkday).
3502 BEGIN DATA.
3503
3504 .
3505 monady
3506 tuseday
3507 WEDENSDAY
3508 Thurdsay
3509 fRidya
3510 SAturady
3511 sudnay
3512 sturday
3513 END DATA.
3514 FORMATS ALL (WKDAY2).
3515 PRINT OUTFILE='wkday.out'/ALL.
3516 EXECUTE.
3517 ])
3518 AT_CHECK([pspp -O format=csv wkday.sps], [0], [dnl
3519 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.
3520
3521 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.
3522
3523 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.
3524
3525 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.
3526
3527 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.
3528
3529 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.
3530
3531 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.
3532
3533 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.
3534
3535 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.
3536 ])
3537 AT_CHECK([cat wkday.out], [0], [dnl
3538   .  .  .  .  .  .  .  .  . @&t@
3539   .  .  .  .  .  .  .  .  . @&t@
3540  MO MO MO MO MO MO MO MO MO @&t@
3541  TU TU TU TU TU TU TU TU TU @&t@
3542  WE WE WE WE WE WE WE WE WE @&t@
3543  TH TH TH TH TH TH TH TH TH @&t@
3544  FR FR FR FR FR FR FR FR FR @&t@
3545  SA SA SA SA SA SA SA SA SA @&t@
3546  SU SU SU SU SU SU SU SU SU @&t@
3547   .  .  .  .  .  .  .  .  . @&t@
3548 ])
3549 AT_CLEANUP
3550
3551 AT_SETUP([MONTH input format])
3552 AT_DATA([month.sps], [dnl
3553 DATA LIST NOTABLE /month3 1-3 (MONTH)
3554                    month4 1-4 (MONTH)
3555                    month5 1-5 (MONTH)
3556                    month6 1-6 (MONTH)
3557                    month7 1-7 (MONTH)
3558                    month8 1-8 (MONTH)
3559                    month9 1-9 (MONTH)
3560                    month10 1-10 (MONTH).
3561 BEGIN DATA.
3562
3563 .
3564 i
3565 ii
3566 iii
3567 iiii
3568 iv
3569 v
3570 vi
3571 vii
3572 viii
3573 ix
3574 viiii
3575 x
3576 xi
3577 xii
3578 0
3579 1
3580 2
3581 3
3582 4
3583 5
3584 6
3585 7
3586 8
3587 9
3588 10
3589 11
3590 12
3591 13
3592 january
3593 JANAURY
3594 February
3595 fEbraury
3596 MArch
3597 marhc
3598 apRIL
3599 may
3600 june
3601 july
3602 august
3603 september
3604 october
3605 november
3606 decmeber
3607 december
3608 END DATA.
3609 FORMATS ALL (MONTH3).
3610 PRINT OUTFILE='month.out'/ALL.
3611 EXECUTE.
3612 ])
3613 AT_CHECK([pspp -O format=csv month.sps], [0], [dnl
3614 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.
3615
3616 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.
3617
3618 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.
3619
3620 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.
3621
3622 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.
3623
3624 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.
3625
3626 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.
3627
3628 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.
3629
3630 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.
3631
3632 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.
3633
3634 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.
3635
3636 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.
3637
3638 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.
3639
3640 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.
3641
3642 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.
3643
3644 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.
3645
3646 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.
3647
3648 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.
3649
3650 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.
3651
3652 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.
3653
3654 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.
3655
3656 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.
3657
3658 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.
3659 ])
3660 AT_CHECK([cat month.out], [0], [dnl
3661    .   .   .   .   .   .   .   . @&t@
3662    .   .   .   .   .   .   .   . @&t@
3663  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3664  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3665  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3666  MAR   .   .   .   .   .   .   . @&t@
3667  APR APR APR APR APR APR APR APR @&t@
3668  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3669  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3670  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3671  JUL AUG AUG AUG AUG AUG AUG AUG @&t@
3672  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3673  JUL AUG AUG AUG AUG AUG AUG AUG @&t@
3674  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3675  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3676  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3677    .   .   .   .   .   .   .   . @&t@
3678  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3679  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3680  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3681  APR APR APR APR APR APR APR APR @&t@
3682  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3683  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3684  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3685  AUG AUG AUG AUG AUG AUG AUG AUG @&t@
3686  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3687  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3688  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3689  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3690    .   .   .   .   .   .   .   . @&t@
3691  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3692  JAN JAN JAN JAN JAN JAN JAN JAN @&t@
3693  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3694  FEB FEB FEB FEB FEB FEB FEB FEB @&t@
3695  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3696  MAR MAR MAR MAR MAR MAR MAR MAR @&t@
3697  APR APR APR APR APR APR APR APR @&t@
3698  MAY MAY MAY MAY MAY MAY MAY MAY @&t@
3699  JUN JUN JUN JUN JUN JUN JUN JUN @&t@
3700  JUL JUL JUL JUL JUL JUL JUL JUL @&t@
3701  AUG AUG AUG AUG AUG AUG AUG AUG @&t@
3702  SEP SEP SEP SEP SEP SEP SEP SEP @&t@
3703  OCT OCT OCT OCT OCT OCT OCT OCT @&t@
3704  NOV NOV NOV NOV NOV NOV NOV NOV @&t@
3705  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3706  DEC DEC DEC DEC DEC DEC DEC DEC @&t@
3707 ])
3708 AT_CLEANUP