1 AT_BANNER([system file reader - positive])
3 AT_SETUP([variable labels and missing values])
4 AT_KEYWORDS([sack synthetic system file positive])
5 AT_DATA([sys-file.sack], [dnl
7 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
9 22; dnl Nominal case size
14 "01 Jan 11"; "20:53:52";
15 "PSPP synthetic test file: "; i8 244; i8 245; i8 246; i8 248; s34 "";
18 dnl Numeric variable, no label or missing values.
19 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
21 dnl Numeric variable, variable label.
22 2; 0; 1; 0; 0x050800 *2; s8 "NUM2";
23 32; "Numeric variable 2's label ("; i8 249; i8 250; i8 251; ")";
25 dnl Numeric variable, one missing value.
26 2; 0; 0; 1; 0x050800 *2; s8 "NUM3";
29 dnl Numeric variable, variable label and missing value.
30 2; 0; 1; 1; 0x050800 *2; s8 "NUM4";
31 30; "Another numeric variable label"; i8 0 * 2;
34 dnl Numeric variable, two missing values.
35 2; 0; 0; 2; 0x050800 *2; s8 "NUM5"; 1.0; 2.0;
37 dnl Numeric variable, three missing values.
38 2; 0; 0; 3; 0x050800 *2; s8 "NUM6"; 1.0; 2.0; 3.0;
40 dnl Numeric variable, range of missing values.
41 2; 0; 0; -2; 0x050800 *2; s8 "NUM7"; 1.0; 3.0;
43 dnl Numeric variables, range of missing values plus discrete value.
44 2; 0; 0; -3; 0x050800 *2; s8 "NUM8"; 1.0; 3.0; 5.0;
45 2; 0; 0; -3; 0x050800 *2; s8 "NUM9"; 1.0; HIGHEST; -5.0;
46 2; 0; 0; -3; 0x050800 *2; "NUM"; i8 192; i8 200; i8 204; i8 209; i8 210;
49 dnl String variable, no label or missing values.
50 2; 4; 0; 0; 0x010400 *2; s8 "STR1";
52 dnl String variable, variable label.
53 2; 4; 1; 0; 0x010400 *2; s8 "STR2";
54 25; "String variable 2's label"; i8 0 * 3;
56 dnl String variable, one missing value.
57 2; 4; 0; 1; 0x010400 *2; s8 "STR3"; s8 "MISS";
59 dnl String variable, variable label and missing value.
60 2; 4; 1; 1; 0x010400 *2; s8 "STR4";
61 29; "Another string variable label"; i8 0 * 3;
64 dnl String variable, two missing values.
65 2; 4; 0; 2; 0x010400 *2; s8 "STR5"; s8 "MISS"; s8 "OTHR";
67 dnl String variable, three missing values.
68 2; 4; 0; 3; 0x010400 *2; s8 "STR6"; s8 "MISS"; s8 "OTHR"; s8 "MORE";
70 dnl Long string variable, one missing value.
71 2; 11; 0; 1; 0x010b00 *2; s8 "STR7"; "first8by";
72 2; -1; 0; 0; 0; 0; s8 "";
74 dnl Long string variable, value label.
75 2; 25; 1; 0; 0x011900 *2; s8 "STR8"; 14; "25-byte string"; i8 0 * 2;
76 ( 2; -1; 0; 0; 0; 0; s8 ""; ) * 2;
77 dnl Variable label fields on continuation records have been spotted in system
78 dnl files created by "SPSS Power Macintosh Release 6.1".
79 2; -1; 1; 0; 0; 0; s8 ""; 20; "dummy variable label";
81 dnl Machine integer info record.
82 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
84 dnl Machine floating-point info record.
85 7; 4; 8; 3; SYSMIS; HIGHEST; LOWEST;
87 dnl Character encoding record.
88 7; 20; 1; 12; "windows-1252";
90 dnl Dictionary termination record.
94 1.0; 2.0; 3.0; 4.0; 5.0; 6.0; 7.0; 8.0; 9.0; 10.0;
95 s8 "abcd"; s8 "efgh"; s8 "ijkl"; s8 "mnop"; s8 "qrst"; s8 "uvwx";
96 s16 "yzABCDEFGHI"; s32 "JKLMNOPQRSTUVWXYZ01234567";
99 "be 94338da4d8d44244d43f31e2ea4d0a6a" \
100 "le e3e7eefb984b81be5531b579293cb127"
103 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
105 AT_DATA([sys-file.sps], [dnl
106 GET FILE='sys-file.sav'.
111 AT_CHECK([pspp -o pspp.csv sys-file.sps])
112 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
113 File label: PSPP synthetic test file: ôõöø
115 Variable,Description,,Position
117 num2,Numeric variable 2's label (ùúû),,2
121 num4,Another numeric variable label,,4
125 ,Missing Values: 1; 2,,
127 ,Missing Values: 1; 2; 3,,
129 ,Missing Values: 1 THRU 3,,
131 ,Missing Values: 1 THRU 3; 5,,
133 ,Missing Values: 1 THRU HIGHEST; -5,,
134 numàèìñò,Format: F8.0,,10
135 ,Missing Values: LOWEST THRU 1; 5,,
137 str2,String variable 2's label,,12
140 ,"Missing Values: ""MISS""",,
141 str4,Another string variable label,,14
143 ,"Missing Values: ""OTHR""",,
145 ,"Missing Values: ""MISS""; ""OTHR""",,
147 ,"Missing Values: ""MISS""; ""OTHR""; ""MORE""",,
149 ,"Missing Values: ""first8by""",,
150 str8,25-byte string,,18
154 num1,num2,num3,num4,num5,num6,num7,num8,num9,numàèìñò,str1,str2,str3,str4,str5,str6,str7,str8
155 1,2,3,4,5,6,7,8,9,10,abcd,efgh,ijkl,mnop,qrst,uvwx,yzABCDEFGHI,JKLMNOPQRSTUVWXYZ01234567
160 AT_SETUP([unspecified number of variable positions])
161 AT_KEYWORDS([sack synthetic system file positive])
162 AT_DATA([sys-file.sack], [dnl
164 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
166 -1; dnl Nominal case size (unspecified)
167 0; dnl Not compressed
171 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
174 dnl Numeric variable, no label or missing values.
175 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
177 dnl Numeric variable, variable label.
178 2; 0; 1; 0; 0x050800 *2; s8 "NUM2";
179 26; "Numeric variable 2's label"; i8 0 *2;
181 dnl Dictionary termination record.
188 "be 413e7bc80a47fcd7e4c8020e8e120060" \
189 "le d7db9120b1ff28c83aa6fe9fc405d903"
192 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
194 AT_DATA([sys-file.sps], [dnl
195 GET FILE='sys-file.sav'.
199 AT_CHECK([pspp -o pspp.csv sys-file.sps])
200 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
201 Variable,Description,,Position
203 num2,Numeric variable 2's label,,2
213 AT_SETUP([wrong number of variable positions but version 13])
214 AT_KEYWORDS([sack synthetic system file positive])
215 AT_DATA([sys-file.sack], [dnl
217 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
219 -1; dnl Nominal case size (unspecified)
220 0; dnl Not compressed
224 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
227 dnl Numeric variable, no label or missing values.
228 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
230 dnl Numeric variable, variable label.
231 2; 0; 1; 0; 0x050800 *2; s8 "NUM2";
232 26; "Numeric variable 2's label"; i8 0 *2;
234 dnl Machine integer info record (SPSS 13).
235 7; 3; 4; 8; 13; 2; 3; -1; 1; 1; ENDIAN; 1252;
237 dnl Dictionary termination record.
244 "be 3d17aae7d99538dc73c5cb42692b1038" \
245 "le 8ad1000df598617d5258f323c882d749"
248 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
250 AT_DATA([sys-file.sps], [dnl
251 GET FILE='sys-file.sav'.
255 AT_CHECK([pspp -o pspp.csv sys-file.sps])
256 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
257 Variable,Description,,Position
259 num2,Numeric variable 2's label,,2
269 AT_SETUP([value labels])
270 AT_KEYWORDS([sack synthetic system file positive])
271 AT_DATA([sys-file.sack], [dnl
273 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
275 22; dnl Nominal case size
276 0; dnl Not compressed
280 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
283 dnl Numeric variables.
284 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
285 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
286 2; 0; 0; 0; 0x050800 *2; s8 "NUM3";
287 2; 0; 0; 0; 0x050800 *2; s8 "NUM4";
288 2; 0; 0; 0; 0x050800 *2; s8 "NUM5";
290 dnl String variables.
291 2; 1; 0; 0; 0x010100 *2; s8 "STR1"; dnl index 6
292 2; 2; 0; 0; 0x010200 *2; s8 "STR2"; dnl index 7
293 2; 3; 0; 0; 0x010300 *2; s8 "STR3"; dnl index 8
294 2; 4; 0; 0; 0x010400 *2; s8 "STR4"; dnl index 9
295 2; 4; 0; 0; 0x010400 *2; s8 "STR5"; dnl index 10
296 2; 6; 0; 0; 0x010600 *2; s8 "STR6"; dnl index 11
297 2; 7; 0; 0; 0x010700 *2; s8 "STR7"; dnl index 12
298 2; 8; 0; 0; 0x010800 *2; s8 "STR8"; dnl index 13
299 2; 9; 0; 0; 0x010900 *2; "STR9"; i8 230; s3 ""; dnl index 14
300 2; -1; 0; 0; 0; 0; s8 "";
301 2; 12; 0; 0; 0x010c00 *2; s8 "STR12"; dnl index 16
302 2; -1; 0; 0; 0; 0; s8 "";
303 2; 16; 0; 0; 0x011000 *2; s8 "STR16"; dnl index 18
304 2; -1; 0; 0; 0; 0; s8 "";
305 2; 17; 0; 0; 0x011100 *2; s8 "STR17"; dnl index 20
306 ( 2; -1; 0; 0; 0; 0; s8 ""; ) * 2;
308 dnl One value label for NUM1.
309 3; 1; 1.0; i8 17; i8 238; i8 228; i8 232; i8 237; s19 " (in Russian)"; 4; 1; 1;
311 dnl Two value labels for NUM2, as a single pair of type 3 and type 4 records.
312 3; 2; 1.0; i8 3; s7 "one"; 2.0; i8 3; s7 "two"; 4; 1; 2;
314 dnl Two value labels for NUM3, as two pairs of type 3 and type 4 records.
315 3; 1; 3.0; i8 5; s7 "three"; 4; 1; 3;
316 3; 1; 4.0; i8 4; s7 "four"; 4; 1; 3;
318 dnl Two common value labels for NUM4 and NUM5, plus two different ones for each.
319 3; 1; 5.0; i8 4; s7 "five"; 4; 1; 4;
320 3; 1; 6.0; i8 3; s7 "six"; 4; 1; 5;
321 3; 2; 7.0; i8 5; s7 "seven"; 8.0; i8 5; s7 "eight"; 4; 2; 4; 5;
322 3; 1; 9.0; i8 4; s7 "nine"; 4; 1; 4;
323 3; 1; 10.0; i8 3; s7 "ten"; 4; 1; 5;
325 dnl One value label for STR1.
326 3; 1; s8 "a"; i8 19; s23 "value label for `a'"; 4; 1; 6;
328 dnl Two value labels for STR2, as a single pair of type 3 and type 4 records.
330 s8 "bc"; i8 20; s23 "value label for `bc'";
331 s8 "de"; i8 20; s23 "value label for `de'";
334 dnl Two value labels for STR3, as two pairs of type 3 and type 4 records.
335 3; 1; s8 "fgh"; i8 21; s23 "value label for `fgh'"; 4; 1; 8;
336 3; 1; s8 "ijk"; i8 21; s23 "value label for `ijk'"; 4; 1; 8;
338 dnl Two common value labels for STR4 and STR5, plus two different ones for each.
339 3; 1; s8 "lmno"; i8 22; s23 "value label for `lmno'"; 4; 1; 9;
340 3; 1; s8 "pqrs"; i8 22; s23 "value label for `pqrs'"; 4; 1; 10;
342 s8 "tuvw"; i8 22; s23 "value label for `tuvw'";
343 s8 "xyzA"; i8 22; s23 "value label for `xyzA'";
345 3; 1; s8 "BCDE"; i8 22; s23 "value label for `BCDE'"; 4; 1; 9;
346 3; 1; s8 "FGHI"; i8 22; s23 "value label for `FGHI'"; 4; 1; 10;
348 dnl One value label for STR6, STR7, STR8.
349 3; 1; s8 "JKLMNO"; i8 24; s31 "value label for `JKLMNO'"; 4; 1; 11;
350 3; 1; s8 "JKLMNOP"; i8 25; s31 "value label for `JKLMNOP'"; 4; 1; 12;
351 3; 1; s8 "JKLMNOPQ"; i8 26; s31 "value label for `JKLMNOPQ'"; 4; 1; 13;
353 dnl Machine integer info record.
354 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1251;
356 dnl Character encoding record.
357 7; 20; 1; 12; "windows-1251";
360 dnl One value label for STR9ж,
361 COUNT("STR9"; i8 230); 9; 1; COUNT("RSTUVWXYZ"); COUNT("value label for `RSTUVWXYZ'");
363 dnl Two value labels for STR12.
364 COUNT("STR12"); 12; 2;
365 COUNT("0123456789ab"); COUNT("value label for `0123456789ab'");
366 COUNT("cdefghijklmn"); COUNT("value label for `cdefghijklmn'");
368 dnl Three value labels for STR16.
369 COUNT("STR16"); 16; 3;
370 COUNT("opqrstuvwxyzABCD"); COUNT("value label for `opqrstuvwxyzABCD'");
371 COUNT("EFGHIJKLMNOPQRST"); COUNT("value label for `EFGHIJKLMNOPQRST'");
372 COUNT("UVWXYZ0123456789"); COUNT("value label for `UVWXYZ0123456789' with Cyrillic letters: `"; i8 244; i8 245; i8 246; "'");
374 dnl One value label for STR17.
375 COUNT("STR17"); 17; 1;
376 COUNT("abcdefghijklmnopq"); COUNT("value label for `abcdefghijklmnopq'");
379 dnl Dictionary termination record.
383 "be b27d766d8a5ad9e901c8b244591a5942" \
384 "le eb2e93f3cc29acd605b80e6c3af25ba6"
387 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
389 AT_DATA([sys-file.sps], [dnl
390 GET FILE='sys-file.sav'.
393 AT_CHECK([pspp -o pspp.csv sys-file.sps])
394 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
395 Variable,Description,,Position
397 ,1,один (in Russian),
415 ,a,value label for `a',
417 ,bc,value label for `bc',
418 ,de,value label for `de',
420 ,fgh,value label for `fgh',
421 ,ijk,value label for `ijk',
423 ,BCDE,value label for `BCDE',
424 ,lmno,value label for `lmno',
425 ,tuvw,value label for `tuvw',
426 ,xyzA,value label for `xyzA',
428 ,FGHI,value label for `FGHI',
429 ,pqrs,value label for `pqrs',
430 ,tuvw,value label for `tuvw',
431 ,xyzA,value label for `xyzA',
433 ,JKLMNO,value label for `JKLMNO',
435 ,JKLMNOP,value label for `JKLMNOP',
437 ,JKLMNOPQ,value label for `JKLMNOPQ',
439 ,RSTUVWXYZ,value label for `RSTUVWXYZ',
440 str12,Format: A12,,15
441 ,0123456789ab,value label for `0123456789ab',
442 ,cdefghijklmn,value label for `cdefghijklmn',
443 str16,Format: A16,,16
444 ,EFGHIJKLMNOPQRST,value label for `EFGHIJKLMNOPQRST',
445 ,UVWXYZ0123456789,value label for `UVWXYZ0123456789' with Cyrillic letters: `фхц',
446 ,opqrstuvwxyzABCD,value label for `opqrstuvwxyzABCD',
447 str17,Format: A17,,17
448 ,abcdefghijklmnopq,value label for `abcdefghijklmnopq',
453 AT_SETUP([documents])
454 AT_KEYWORDS([sack synthetic system file positive])
455 AT_DATA([sys-file.sack], [dnl
457 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
459 1; dnl Nominal case size
460 0; dnl Not compressed
464 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
467 dnl Numeric variable, no label or missing values.
468 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
470 dnl Machine integer info record.
471 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
475 s80 "First line of documents";
476 s80 "Second line of documents";
477 "abb"; i8 233; " appliqu"; i8 233; " attach"; i8 233; " blas"; i8 233; " caf"; i8 233; " canap"; i8 233; " clich"; i8 233; " consomm"; i8 233;
480 s80 "Last line of documents";
482 dnl Character encoding record.
483 7; 20; 1; 12; "windows-1252";
485 dnl Dictionary termination record.
492 "be 3555f74f3e714a3a703de7df56ce6d24" \
493 "le ede5a0f805a1aab096ea86abf677ff34"
496 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
498 AT_DATA([sys-file.sps], [dnl
499 GET FILE='sys-file.sav'.
503 AT_CHECK([pspp -o pspp.csv sys-file.sps])
504 AT_CHECK([cat pspp.csv], [0], [dnl
505 Documents in the active dataset:
507 First line of documents
509 Second line of documents
511 abbé appliqué attaché blasé café canapé cliché consommé
515 Last line of documents
524 AT_SETUP([multiple response sets])
525 AT_KEYWORDS([sack synthetic system file positive])
526 AT_DATA([sys-file.sack], [dnl
528 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
530 16; dnl Nominal case size
531 0; dnl Not compressed
535 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
539 2; 0; 0; 0; 0x050800 *2; i8 0x82; i8 0xa0; s6 "";
540 2; 0; 0; 0; 0x050800 *2; s8 "B";
541 2; 0; 0; 0; 0x050800 *2; s8 "C";
544 2; 0; 0; 0; 0x050800 *2; s8 "D";
545 2; 0; 0; 0; 0x050800 *2; s8 "E";
546 2; 0; 0; 0; 0x050800 *2; s8 "F";
547 2; 0; 0; 0; 0x050800 *2; s8 "G";
550 2; 4; 0; 0; 0x010400 *2; s8 "H";
551 2; 4; 0; 0; 0x010400 *2; s8 "I";
552 2; 4; 0; 0; 0x010400 *2; s8 "J";
555 2; 0; 0; 0; 0x050800 *2; s8 "K";
556 2; 0; 0; 0; 0x050800 *2; s8 "L";
557 2; 0; 0; 0; 0x050800 *2; s8 "M";
560 2; 6; 0; 0; 0x010600 *2; s8 "N";
561 2; 6; 0; 0; 0x010600 *2; s8 "O";
562 2; 6; 0; 0; 0x010600 *2; s8 "P";
564 dnl Machine integer info record.
565 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 932;
569 "$a=C 10 my mcgroup "; i8 0x82; i8 0xa0; " b c"; i8 10;
570 "$b=D2 55 0 g e f d"; i8 10;
571 "$c=D4 "; i8 0x82; i8 0xcd; i8 0x82; i8 0xa2; " 10 mdgroup #2 h i j"; i8 10);
575 "$d=E 1 2 34 13 third mdgroup k l m"; i8 10;
576 "$e=E 11 6 choice 0 n o p"; i8 10);
578 dnl Character encoding record.
579 7; 20; 1; 9; "shift_jis";
581 dnl Dictionary termination record.
585 "be fdf260a05220e08c748967dcb90d8b15" \
586 "le 4c9b0c0636bc0aa0cc16684c8188d1c7"
589 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
591 AT_DATA([sys-file.sps], [dnl
592 GET FILE='sys-file.sav'.
593 MRSETS /DISPLAY NAME=ALL.
595 AT_CHECK([pspp -o pspp.csv sys-file.sps])
596 AT_CHECK([cat pspp.csv], [0], [dnl
597 Table: Multiple Response Sets
598 Name,Variables,Details
602 ","Multiple category set
609 ","Multiple dichotomy set
611 Category label source: Variable labels
616 ","Multiple dichotomy set
618 Label source: Provided by user
620 Category label source: Variable labels
625 ","Multiple dichotomy set
627 Label source: Provided by user
629 Category label source: Value labels of counted value
634 ","Multiple dichotomy set
635 Label source: First variable label among variables
636 Counted value: `choice'
637 Category label source: Value labels of counted value
643 dnl Also checks for handling of CR-only line ends in file label and
644 dnl extra product info.
645 AT_SETUP([extra product info])
646 AT_KEYWORDS([sack synthetic system file positive])
647 AT_DATA([sys-file.sack], [dnl
649 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
651 4; dnl Nominal case size
652 0; dnl Not compressed
656 "01 Jan 11"; "20:53:52"; "PSPP synthetic"; i8 13; s49 "test file";
659 dnl Numeric variables.
660 2; 0; 0; 0; 0x050800 *2; s8 "A";
661 2; 0; 0; 0; 0x050800 *2; s8 "B";
662 2; 0; 0; 0; 0x050800 *2; s8 "C";
663 2; 0; 0; 0; 0x050800 *2; s8 "D";
665 dnl Extra product info.
666 7; 10; 1; COUNT ("Extra product info"; i8 13; "another line"; i8 13; "blah");
668 dnl Dictionary termination record.
672 "be 0e1cac77501322b012637dcaeb3858ab" \
673 "le ecffd25cae41bbc89c29487abe192016"
676 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
678 AT_DATA([sys-file.sps], [dnl
679 SYSFILE INFO FILE='sys-file.sav'.
681 AT_CHECK([pspp -o pspp.csv sys-file.sps])
682 AT_CHECK([sed 7q pspp.csv], [0], [dnl
684 Label:,"PSPP synthetic
686 Created:,01 Jan 11 20:53:52 by $(@%:@) SPSS DATA FILE PSPP synthetic test file
687 Product:,"Extra product info
694 AT_SETUP([variable display parameters, without width])
695 AT_KEYWORDS([sack synthetic system file positive])
696 AT_DATA([sys-file.sack], [dnl
698 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
700 19; dnl Nominal case size
701 0; dnl Not compressed
705 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
708 dnl Numeric variables.
709 2; 0; 0; 0; 0x050800 *2; s8 "A";
710 2; 0; 0; 0; 0x050800 *2; s8 "B";
711 2; 0; 0; 0; 0x050800 *2; s8 "C";
712 2; 0; 0; 0; 0x050800 *2; s8 "D";
714 dnl Short string variables.
715 2; 3; 0; 0; 0x010300 *2; s8 "H";
716 2; 3; 0; 0; 0x010300 *2; s8 "I";
717 2; 3; 0; 0; 0x010300 *2; s8 "J";
718 2; 3; 0; 0; 0x010300 *2; s8 "K";
720 dnl Long string variables.
721 2; 9; 0; 0; 0x010900 *2; s8 "L";
722 2; -1; 0; 0; 0; 0; s8 "";
723 2; 10; 0; 0; 0x010a00 *2; s8 "M";
724 2; -1; 0; 0; 0; 0; s8 "";
725 2; 17; 0; 0; 0x011100 *2; s8 "N";
726 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 2;
727 2; 25; 0; 0; 0x011900 *2; s8 "O";
728 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 3;
730 dnl Variable display parameters
745 dnl Dictionary termination record.
749 "be c130d9345080579b8862b360924edbfa" \
750 "le 6fde96f5a7c7386bff6cca049cd84d6a"
753 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
755 AT_DATA([sys-file.sps], [dnl
756 GET FILE='sys-file.sav'.
759 AT_CHECK([pspp -o pspp.csv sys-file.sps])
760 AT_CHECK([cat pspp.csv], [0], [dnl
761 Variable,Description,,Position
764 ,Display Alignment: Left,,
768 ,Display Alignment: Left,,
772 ,Display Alignment: Left,,
776 ,Display Alignment: Right,,
780 ,Display Alignment: Right,,
784 ,Display Alignment: Right,,
788 ,Display Alignment: Center,,
792 ,Display Alignment: Center,,
796 ,Display Alignment: Center,,
800 ,Display Alignment: Left,,
804 ,Display Alignment: Right,,
808 ,Display Alignment: Center,,
814 AT_SETUP([variable display parameters, with width])
815 AT_KEYWORDS([sack synthetic system file positive])
816 AT_DATA([sys-file.sack], [dnl
818 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
820 19; dnl Nominal case size
821 0; dnl Not compressed
825 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
828 dnl Numeric variables.
829 2; 0; 0; 0; 0x050800 *2; s8 "A";
830 2; 0; 0; 0; 0x050800 *2; s8 "B";
831 2; 0; 0; 0; 0x050800 *2; s8 "C";
832 2; 0; 0; 0; 0x050800 *2; s8 "D";
834 dnl Short string variables.
835 2; 3; 0; 0; 0x010300 *2; s8 "H";
836 2; 3; 0; 0; 0x010300 *2; s8 "I";
837 2; 3; 0; 0; 0x010300 *2; s8 "J";
838 2; 3; 0; 0; 0x010300 *2; s8 "K";
840 dnl Long string variables.
841 2; 9; 0; 0; 0x010900 *2; s8 "L";
842 2; -1; 0; 0; 0; 0; s8 "";
843 2; 10; 0; 0; 0x010a00 *2; s8 "M";
844 2; -1; 0; 0; 0; 0; s8 "";
845 2; 17; 0; 0; 0x011100 *2; s8 "N";
846 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 2;
847 2; 25; 0; 0; 0x011900 *2; s8 "O";
848 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 3;
850 dnl Variable display parameters
865 dnl Dictionary termination record.
869 "be 3ace75689a0b7faa9360936bbfe26055" \
870 "le 6e93f35d19a9882eb53ffb1b067ef7cd"
873 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
875 AT_DATA([sys-file.sps], [dnl
876 GET FILE='sys-file.sav'.
879 AT_CHECK([pspp -o pspp.csv sys-file.sps])
880 AT_CHECK([cat pspp.csv], [0], [dnl
881 Variable,Description,,Position
884 ,Display Alignment: Left,,
888 ,Display Alignment: Left,,
892 ,Display Alignment: Left,,
896 ,Display Alignment: Right,,
900 ,Display Alignment: Right,,
904 ,Display Alignment: Right,,
908 ,Display Alignment: Center,,
912 ,Display Alignment: Center,,
916 ,Display Alignment: Center,,
920 ,Display Alignment: Left,,
924 ,Display Alignment: Right,,
928 ,Display Alignment: Center,,
934 AT_SETUP([long variable names])
935 AT_KEYWORDS([sack synthetic system file positive])
936 AT_DATA([sys-file.sack], [dnl
938 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
940 7; dnl Nominal case size
941 0; dnl Not compressed
945 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
948 dnl Numeric variables.
949 2; 0; 0; 0; 0x050800 *2; s8 "LONGVARI";
950 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_A";
951 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_B";
952 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_C";
953 2; 0; 0; 0; 0x050800 *2; "CO"; i8 214; "RDINA";
954 2; 0; 0; 0; 0x050800 *2; "CO"; i8 214; "RDI_A";
955 2; 0; 0; 0; 0x050800 *2; "CO"; i8 214; "RDI_B";
957 dnl Machine integer info record.
958 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
960 dnl Machine floating-point info record.
961 7; 4; 8; 3; SYSMIS; HIGHEST; LOWEST;
963 dnl Long variable names.
965 "LONGVARI=LongVariableName1"; i8 9;
966 "LONGVA_A=LongVariableName2"; i8 9;
967 "LONGVA_B=LongVariableName3"; i8 9;
968 "LONGVA_C=LongVariableName4"; i8 9;
969 "CO"; i8 214; "RDINA=Co"; i8 246; "rdinate_X"; i8 9;
970 "CO"; i8 214; "RDI_A=Co"; i8 246; "rdinate_Y"; i8 9;
971 "CO"; i8 214; "RDI_B=Co"; i8 246; "rdinate_Z";
974 dnl Character encoding record.
975 7; 20; 1; 12; "windows-1252";
977 dnl Dictionary termination record.
981 "be 8ea5a72f3ae6e732371e92a7719c3951" \
982 "le 02bcf02cf08b1e8fc80a858101ae22fc"
985 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
987 AT_DATA([sys-file.sps], [dnl
988 GET FILE='sys-file.sav'.
991 AT_CHECK([pspp -o pspp.csv sys-file.sps])
992 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
993 Variable,Description,,Position
994 LongVariableName1,Format: F8.0,,1
995 LongVariableName2,Format: F8.0,,2
996 LongVariableName3,Format: F8.0,,3
997 LongVariableName4,Format: F8.0,,4
998 Coördinate_X,Format: F8.0,,5
999 Coördinate_Y,Format: F8.0,,6
1000 Coördinate_Z,Format: F8.0,,7
1005 AT_SETUP([very long strings])
1006 AT_KEYWORDS([sack synthetic system file positive])
1007 AT_DATA([sys-file.sack], [dnl
1009 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1011 109; dnl Nominal case size
1012 0; dnl Not compressed
1016 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1019 dnl 256-byte string.
1020 2; 255; 0; 0; 0x01FF00 *2; "S"; i8 201; s6 "Q256";
1021 (2; -1; 0; 0; 0; 0; s8 "") * 31;
1022 2; 4; 0; 0; 0x010400 *2; "S"; i8 201; "Q256_1";
1024 dnl 600-byte string.
1025 2; 255; 0; 0; 0x01FF00 *2; s8 "STR600";
1026 (2; -1; 0; 0; 0; 0; s8 "") * 31;
1027 2; 255; 0; 0; 0x01FF00 *2; s8 "STR600_1";
1028 (2; -1; 0; 0; 0; 0; s8 "") * 31;
1029 2; 96; 0; 0; 0x016000 *2; s8 "STR600_2";
1030 (2; -1; 0; 0; 0; 0; s8 "") * 11;
1032 dnl Machine integer info record.
1033 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
1035 dnl Very long string record.
1037 "S"; i8 201; "Q256=00256"; i8 0; i8 9;
1038 "STR600=00600"; i8 0; i8 9;
1041 dnl Character encoding record.
1042 7; 20; 1; 12; "windows-1252";
1044 dnl Dictionary termination record.
1048 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#" * 4;
1050 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#" * 9;
1051 "abcdefghijklmnopqrstuvwxyzABCDEF";
1054 "be 844a4704f669dfe292482e587d690133" \
1055 "le b76025f602bdff6a42c1e0795a8b62ff"
1058 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1060 AT_DATA([sys-file.sps], [dnl
1061 GET FILE='sys-file.sav'.
1065 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1066 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1067 Variable,Description,,Position
1068 séq256,Format: A256,,1
1069 str600,Format: A600,,2
1073 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@a,abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyz
1078 AT_SETUP([data file and variable attributes])
1079 AT_KEYWORDS([sack synthetic system file positive])
1080 AT_DATA([sys-file.sack], [dnl
1082 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1084 2; dnl Nominal case size
1085 0; dnl Not compressed
1089 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1093 2; 0; 0; 0; 0x050800 *2; s8 "FIRSTVAR";
1094 2; 0; 0; 0; 0x050800 *2; s8 "SECONDVA";
1096 dnl Machine integer info record.
1097 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
1099 dnl Long variable names.
1101 "FIRSTVAR=FirstVariable"; i8 9;
1102 "SECONDVA=S"; i8 233; "condVariable"; i8 9;
1105 dnl Data file attributes record.
1107 "Attr1('Value1'"; i8 10; "''d"; i8 233; "claration''"; i8 10; ")";
1108 "S"; i8 233; "condAttr('123'"; i8 10; "'456'"; i8 10; ")";
1111 dnl Variable attributes record.
1114 "ad"; i8 232; "le('23'"; i8 10; "'34'"; i8 10; ")";
1115 "bert('123'"; i8 10; ")";
1116 "$@Role('1'"; i8 10; ")";
1117 "/S"; i8 233; "condVariable:";
1118 "xyzzy('quux'"; i8 10; ")";
1122 dnl Character encoding record.
1123 7; 20; 1; 12; "windows-1252";
1125 dnl Dictionary termination record.
1129 "be 7fff0c04f697adf45f55d8be4aaa8712" \
1130 "le 7331339199344aa58bc60d7d05d538a7"
1133 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1135 AT_DATA([sys-file.sps], [dnl
1136 GET FILE='sys-file.sav'.
1137 DISPLAY @ATTRIBUTES.
1139 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1140 AT_CHECK([cat pspp.csv], [0],
1141 [[Variable,Description,
1142 FirstVariable,Custom attributes:,
1147 SécondVariable,Custom attributes:,
1150 Table: Custom data file attributes.
1153 Attr1[2],'déclaration'
1157 AT_DATA([sys-file.sps], [dnl
1158 GET FILE='sys-file.sav'.
1161 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1162 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0],
1163 [[Variable,Description,,Position
1164 FirstVariable,Format: F8.0,,1
1166 ,Custom attributes:,,
1170 SécondVariable,Format: F8.0,,2
1171 ,Custom attributes:,,
1174 Table: Custom data file attributes.
1177 Attr1[2],'déclaration'
1184 AT_SETUP([variable roles])
1185 AT_KEYWORDS([sack synthetic system file positive])
1186 AT_DATA([sys-file.sack], [dnl
1188 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1190 7; dnl Nominal case size
1191 0; dnl Not compressed
1195 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1199 2; 0; 0; 0; 0x050800 *2; s8 "I";
1200 2; 0; 0; 0; 0x050800 *2; s8 "O";
1201 2; 0; 0; 0; 0x050800 *2; s8 "B";
1202 2; 0; 0; 0; 0x050800 *2; s8 "N";
1203 2; 0; 0; 0; 0x050800 *2; s8 "P";
1204 2; 0; 0; 0; 0x050800 *2; s8 "S";
1205 2; 0; 0; 0; 0x050800 *2; s8 "X";
1207 dnl Machine integer info record.
1208 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
1210 dnl Variable attributes record.
1212 "I:$@Role('0'"; i8 10; ")";
1213 "/O:$@Role('1'"; i8 10; ")";
1214 "/B:$@Role('2'"; i8 10; ")";
1215 "/N:$@Role('3'"; i8 10; ")";
1216 "/P:$@Role('4'"; i8 10; ")";
1217 "/S:$@Role('5'"; i8 10; ")";
1218 "/X:$@Role('6'"; i8 10; ")";
1221 dnl Character encoding record.
1222 7; 20; 1; 12; "windows-1252";
1224 dnl Dictionary termination record.
1228 "be b08b39cd005682f680d132d272f5158d" \
1229 "le 176e4ac91197f5cb8732258033cfabdc"
1232 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1234 AT_DATA([sys-file.sps], [dnl
1235 GET FILE='sys-file.sav'.
1238 AT_CHECK([pspp -o pspp.csv sys-file.sps], [0], [dnl
1239 warning: `sys-file.sav': Invalid role for variable x.
1241 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1242 warning: `sys-file.sav': Invalid role for variable x.
1244 Variable,Description,,Position
1261 AT_SETUP([compressed data])
1262 AT_KEYWORDS([sack synthetic system file positive])
1263 AT_DATA([sys-file.sack], [dnl
1265 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1267 6; dnl Nominal case size
1268 1; dnl Not compressed
1270 -1; dnl Unspecified number of cases.
1272 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1275 dnl Numeric variables.
1276 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1277 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
1279 dnl String variable.
1280 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
1281 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
1282 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
1283 2; -1; 0; 0; 0; 0; s8 "";
1285 dnl Dictionary termination record.
1288 dnl Compressed data.
1289 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
1290 i8 253 253 253 254; i8 101 102 253 253; s8 "jklm"; s8 "nopqrstu";
1291 s8 "vwxyzABC"; s8 "DEFG"; s8 "HIJKLMNO";
1292 i8 254 253 252 0 0 0 0 0; s8 "PQRSTUVW";
1296 "be c0670e436b068f45710b98f6f7d01dc5" \
1297 "le 2e43a7f8861df4e714a192dfb3c8b2f4"
1300 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1302 AT_DATA([sys-file.sps], [dnl
1303 GET FILE='sys-file.sav'.
1307 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1308 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1309 Variable,Description,,Position
1310 num1,Format: F8.0,,1
1311 num2,Format: F8.0,,2
1314 str15,Format: A15,,5
1317 num1,num2,str4,str8,str15
1318 -99,0,,abcdefgh,0123 @&t@
1319 .,151,jklm,nopqrstu,vwxyzABC @&t@
1320 1,2,DEFG,HIJKLMNO,PQRSTUV
1325 AT_SETUP([compressed data, zero bias])
1326 AT_KEYWORDS([sack synthetic system file positive])
1327 AT_DATA([sys-file.sack], [dnl
1329 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1331 6; dnl Nominal case size
1332 1; dnl Not compressed
1334 -1; dnl Unspecified number of cases.
1336 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1339 dnl Numeric variables.
1340 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1341 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
1343 dnl String variable.
1344 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
1345 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
1346 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
1347 2; -1; 0; 0; 0; 0; s8 "";
1349 dnl Dictionary termination record.
1352 dnl Compressed data.
1353 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
1354 i8 253 253 253 254; i8 101 102 253 253; s8 "jklm"; s8 "nopqrstu";
1355 s8 "vwxyzABC"; s8 "DEFG"; s8 "HIJKLMNO";
1356 i8 254 253 252 0 0 0 0 0; s8 "PQRSTUVW";
1360 "be 2f0d25704ee497ae833213a3e4ff5e8b" \
1361 "le 49f68a9e1ba02a2f7e9166686a0db9d9"
1364 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1366 AT_DATA([sys-file.sps], [dnl
1367 GET FILE='sys-file.sav'.
1371 AT_CHECK([pspp -o pspp.csv sys-file.sps], [0])
1372 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1373 Variable,Description,,Position
1374 num1,Format: F8.0,,1
1375 num2,Format: F8.0,,2
1378 str15,Format: A15,,5
1381 num1,num2,str4,str8,str15
1382 1,100,,abcdefgh,0123 @&t@
1383 .,251,jklm,nopqrstu,vwxyzABC @&t@
1384 101,102,DEFG,HIJKLMNO,PQRSTUV
1389 AT_SETUP([compressed data, other bias])
1390 AT_KEYWORDS([sack synthetic system file positive])
1391 AT_DATA([sys-file.sack], [dnl
1393 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1395 6; dnl Nominal case size
1396 1; dnl Not compressed
1398 -1; dnl Unspecified number of cases.
1400 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1403 dnl Numeric variables.
1404 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1405 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
1407 dnl String variable.
1408 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
1409 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
1410 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
1411 2; -1; 0; 0; 0; 0; s8 "";
1413 dnl Dictionary termination record.
1416 dnl Compressed data.
1417 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
1418 i8 253 253 253 254; i8 101 102 253 253; s8 "jklm"; s8 "nopqrstu";
1419 s8 "vwxyzABC"; s8 "DEFG"; s8 "HIJKLMNO";
1420 i8 254 253 252 0 0 0 0 0; s8 "PQRSTUVW";
1424 "be 668b85e3dee0797883e9933a096b8c18" \
1425 "le 5e7a9c4e88cd2dbc2322943da663868e"
1428 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1430 AT_DATA([sys-file.sps], [dnl
1431 GET FILE='sys-file.sav'.
1435 AT_CHECK([pspp -o pspp.csv sys-file.sps], [0],
1436 [warning: `sys-file.sav' near offset 0x54: Compression bias is not the usual value of 100, or system file uses unrecognized floating-point format.
1438 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1439 "warning: `sys-file.sav' near offset 0x54: Compression bias is not the usual value of 100, or system file uses unrecognized floating-point format."
1441 Variable,Description,,Position
1442 num1,Format: F8.0,,1
1443 num2,Format: F8.0,,2
1446 str15,Format: A15,,5
1449 num1,num2,str4,str8,str15
1450 -49,50,,abcdefgh,0123 @&t@
1451 .,201,jklm,nopqrstu,vwxyzABC @&t@
1452 51,52,DEFG,HIJKLMNO,PQRSTUV
1457 AT_BANNER([system file reader - negative])
1459 AT_SETUP([misplaced type 4 record])
1460 AT_KEYWORDS([sack synthetic system file negative])
1461 AT_DATA([sys-file.sack], [dnl
1463 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1464 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1466 dnl Numeric variable.
1467 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1473 "be 6e0bb549fff1fd1af333d51b8a6e0f43" \
1474 "le 7b62734edcee2a1689c463f2866d11b8"
1477 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1479 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1481 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1482 [error: `sys-file.sav' near offset 0xd4: Misplaced type 4 record.
1487 AT_SETUP([bad record type])
1488 AT_KEYWORDS([sack synthetic system file negative])
1489 AT_DATA([sys-file.sack], [dnl
1491 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1492 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1494 dnl Numeric variable.
1495 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1497 dnl Type 8 record (not a valid type).
1501 "be dc8f078c23046ee7db74ec1003178a11" \
1502 "le dc7f111642f0629f4370630fd092eee3"
1505 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1507 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1509 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1510 [error: `sys-file.sav' near offset 0xd4: Unrecognized record type 8.
1515 AT_SETUP([wrong number of variable positions])
1516 AT_KEYWORDS([sack synthetic system file negative])
1517 AT_DATA([sys-file.sack], [dnl
1519 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1520 2; >>2<<; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1522 dnl Numeric variable.
1523 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1525 dnl End of dictionary.
1529 "be c57e91aa426f61813c3ad91ea3a56dda" \
1530 "le 5d1a6c114b135b219473c8ad5bb44bda"
1533 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1535 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1537 AT_CHECK([pspp -O format=csv sys-file.sps], [0],
1538 [warning: `sys-file.sav': File header claims 2 variable positions but 1 were read from file.
1543 AT_SETUP([variable name may not begin with `#'])
1544 AT_KEYWORDS([sack synthetic system file negative])
1545 AT_DATA([sys-file.sack], [dnl
1547 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1548 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1550 dnl Numeric variable.
1551 2; 0; 0; 0; 0x050800 *2; s8 >>"$UM1"<<;
1553 dnl End of dictionary.
1557 "be decb7ac6defa1ab3cc7a386d1843c1ae" \
1558 "le 5279b6275633bac55d167faebccfdb14"
1561 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1563 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1565 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1566 [error: `sys-file.sav' near offset 0xb4: Invalid variable name `$UM1'.
1571 AT_SETUP([variable name may not be reserved word])
1572 AT_KEYWORDS([sack synthetic system file negative])
1573 AT_DATA([sys-file.sack], [dnl
1575 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1576 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1578 dnl Numeric variable.
1579 2; 0; 0; 0; 0x050800 *2; s8 >>"TO"<<;
1581 dnl End of dictionary.
1585 "be 57e6ad709668bbf538e2efee4af49916" \
1586 "le 523f14b611efa380bbadf7a16ea43fed"
1589 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1591 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1593 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1594 [error: `sys-file.sav' near offset 0xb4: Invalid variable name `TO'.
1599 AT_SETUP([variable width must be between 0 and 255])
1600 AT_KEYWORDS([sack synthetic system file negative])
1601 AT_DATA([sys-file.sack], [dnl
1603 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1604 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1606 dnl String variable with invalid width 256.
1607 2; 256; 0; 0; 0x050800 *2; s8 "VAR1";
1609 dnl End of dictionary.
1613 "be 170bb18589ba264a0ed2d57b41fe77e1" \
1614 "le 9528b4b5936ef5630bbd3bdd60a123c3"
1617 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1619 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1621 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1622 [error: `sys-file.sav' near offset 0xb4: Bad width 256 for variable VAR1.
1627 AT_SETUP([duplicate variable name])
1628 AT_KEYWORDS([sack synthetic system file negative])
1629 AT_DATA([sys-file.sack], [dnl
1631 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1632 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1634 dnl Numeric variables.
1635 2; 0; 0; 0; 0x050800 *2; s8 "VAR1";
1636 2; 0; 0; 0; 0x050800 *2; s8 "VAR1";
1638 dnl End of dictionary.
1642 "be d8f5fd768ab1d641f9330a4840c71343" \
1643 "le f01e123d384cdaa7c2f7fc4791325ebf"
1646 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1648 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1650 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1651 [error: `sys-file.sav' near offset 0xd4: Duplicate variable name `VAR1'.
1656 AT_SETUP([variable label indicator not 0 or 1])
1657 AT_KEYWORDS([sack synthetic system file negative])
1658 AT_DATA([sys-file.sack], [dnl
1660 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1661 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1663 dnl Numeric variable.
1664 2; 0; >>2<<; 0; 0x050800 *2; s8 "VAR1";
1666 dnl End of dictionary.
1670 "be 3c5ff8d8f146457a385ca92d3d23ca8a" \
1671 "le 37e9f956d321ae57b0bf7fe2384e892b"
1674 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1676 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1678 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1679 [error: `sys-file.sav' near offset 0xb4: Variable label indicator field is not 0 or 1.
1684 AT_SETUP([invalid numeric missing value indicator])
1685 AT_KEYWORDS([sack synthetic system file negative])
1686 AT_DATA([sys-file.sack], [dnl
1688 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1689 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1691 dnl Numeric variable.
1692 2; 0; 0; >>-1<<; 0x050800 *2; s8 "VAR1";
1694 dnl End of dictionary.
1698 "be d1d0d4aedf9f053452c4b1e658ade5e2" \
1699 "le df697575499fe12921185a3d23a5d61d"
1702 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1704 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1706 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1707 ["error: `sys-file.sav' near offset 0xb4: Numeric missing value indicator field is not -3, -2, 0, 1, 2, or 3."
1712 AT_SETUP([invalid string missing value indicator])
1713 AT_KEYWORDS([sack synthetic system file negative])
1714 AT_DATA([sys-file.sack], [dnl
1716 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1717 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1719 dnl String variable.
1720 2; 8; 0; >>4<<; 0x010800 *2; s8 "VAR1";
1722 dnl End of dictionary.
1726 "be f833033be7b102fae19159989f62faa6" \
1727 "le 9704ba828bb7a36ef0262838f6b7936b"
1730 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1732 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1734 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1735 ["error: `sys-file.sav' near offset 0xb4: String missing value indicator field is not 0, 1, 2, or 3."
1740 AT_SETUP([missing string continuation record])
1741 AT_KEYWORDS([sack synthetic system file negative])
1742 AT_DATA([sys-file.sack], [dnl
1744 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1745 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1747 dnl String variable.
1748 2; 10; 0; 0; 0x010a00 *2; s8 "VAR1";
1749 >>2; 0; 0; 0; 0x050800 *2; s8 "VAR2";<<
1751 dnl End of dictionary.
1755 "be c8f9ad2b2acd2918055e2b78c1e0b4b8" \
1756 "le 1afab4d6aee90a6fe8d2dbf229e06409"
1759 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1761 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1763 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1764 [error: `sys-file.sav' near offset 0xb4: Missing string continuation record.
1769 AT_SETUP([invalid variable format])
1770 AT_KEYWORDS([sack synthetic system file negative])
1771 AT_DATA([sys-file.sack], [dnl
1773 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1774 2; 4; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1776 dnl Numeric variable, invalid format types.
1777 dnl No warning is issued for type 0 because it has been observed in real
1779 2; 0; 0; 0; >>0xff0800; 0<<; s8 "NUM1";
1781 dnl Numeric variable, string formats.
1782 2; 0; 0; 0; >>0x010800<<; >>0x021000<<; s8 "VAR1";
1784 dnl String variable, numeric formats.
1785 2; 4; 0; 0; >>0x050800<<; >>0x110a01<<; s8 "STR1";
1787 dnl String variable, wrong width formats.
1788 2; 4; 0; 0; >>0x010800<<; >>0x020400<<; s8 "STR2";
1790 dnl End of dictionary.
1794 "be c6ef5d8fded46443aba89adfafe15cad" \
1795 "le fccaf1764c973892f2d5adbcc2c36fb7"
1798 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1800 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1802 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
1803 warning: `sys-file.sav' near offset 0xc0: Variable NUM1 with width 0 has invalid print format 0xff0800.
1805 warning: `sys-file.sav' near offset 0xe0: Variable VAR1 with width 0 has invalid print format 0x10800.
1807 warning: `sys-file.sav' near offset 0xe4: Variable VAR1 with width 0 has invalid write format 0x21000.
1809 warning: `sys-file.sav' near offset 0x100: Variable STR1 with width 4 has invalid print format 0x50800.
1811 warning: `sys-file.sav' near offset 0x104: Variable STR1 with width 4 has invalid write format 0x110a01.
1813 warning: `sys-file.sav' near offset 0x120: Variable STR2 with width 4 has invalid print format 0x10800.
1815 warning: `sys-file.sav' near offset 0x124: Variable STR2 with width 4 has invalid write format 0x20400.
1820 AT_SETUP([weighting variable must be numeric])
1821 AT_KEYWORDS([sack synthetic system file negative])
1822 AT_DATA([sys-file.sack], [dnl
1824 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1825 2; 2; 1; >>2<<; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1827 dnl Numeric variable.
1828 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1830 dnl String variable.
1831 2; 4; 0; 0; 0x010400 *2; s8 "STR1";
1833 dnl End of dictionary.
1837 "be 82d30105e46c4896c24f9dcec26c4749" \
1838 "le 32e235119be70050eb78bf4186a5a046"
1841 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1843 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1845 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1846 [error: `sys-file.sav': Weighting variable must be numeric (not string variable `STR1').
1851 AT_SETUP([bad weighting variable index])
1852 AT_KEYWORDS([sack synthetic system file negative])
1853 AT_DATA([sys-file.sack], [dnl
1855 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1856 2; 2; 1; >>3<<; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1858 dnl Numeric variable.
1859 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1861 dnl String variable.
1862 2; 4; 0; 0; 0x010400 *2; s8 "STR1";
1864 dnl End of dictionary.
1868 "be cd9af924ff20bc75834aa2c696254c97" \
1869 "le cbe0f2f514f5e95f27644d0b4314bc78"
1872 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1874 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1876 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1877 [error: `sys-file.sav' near offset 0x4c: Variable index 3 not in valid range 1...2.
1882 AT_SETUP([variable index is long string contination])
1883 AT_KEYWORDS([sack synthetic system file negative])
1884 AT_DATA([sys-file.sack], [dnl
1886 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1887 2; 2; 1; >>3<<; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1889 dnl Numeric variable.
1890 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1892 dnl Long string variable.
1893 2; 9; 0; 0; 0x010900 *2; s8 "STR1";
1894 (2; -1; 0; 0; 0; 0; s8 "");
1896 dnl End of dictionary.
1900 "be 0c395354df56ea5ff374aafcc535d633" \
1901 "le d977f684ea9d4648ed40f8c6dddde9f7"
1904 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1906 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1908 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1909 [error: `sys-file.sav' near offset 0x4c: Variable index 3 refers to long string continuation.
1914 AT_SETUP([multiple documents records])
1915 AT_KEYWORDS([sack synthetic system file negative])
1916 AT_DATA([sys-file.sack], [dnl
1918 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1919 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1921 dnl Numeric variable, no label or missing values.
1922 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1924 dnl Two document records.
1925 (6; 1; s80 "One line of documents") >>* 2<<;
1927 dnl Dictionary termination record.
1934 "be 18aa3348a216ed494efe28285b348fa8" \
1935 "le 19b21522bcef1dcc60af328f923f307e"
1938 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1940 AT_DATA([sys-file.sps], [dnl
1941 GET FILE='sys-file.sav'.
1943 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
1944 error: `sys-file.sav' near offset 0x12c: Duplicate type 6 (document) record.
1950 AT_SETUP([empty document record])
1951 AT_KEYWORDS([sack synthetic system file negative])
1952 AT_DATA([sys-file.sack], [dnl
1954 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1955 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1957 dnl Numeric variable, no label or missing values.
1958 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1960 dnl Empty document record.
1963 dnl Dictionary termination record.
1970 "be d8ef29c1b97f9ed226cbd938c9c49b6e" \
1971 "le f6a560c5b62e2c472429d85294f36e61"
1974 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1976 AT_DATA([sys-file.sps], [dnl
1977 GET FILE='sys-file.sav'.
1979 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
1980 error: `sys-file.sav' near offset 0xd4: Number of document lines (0) must be greater than 0 and less than 26843545.
1985 AT_SETUP([extension record too large])
1986 AT_KEYWORDS([sack synthetic system file negative])
1987 AT_DATA([sys-file.sack], [dnl
1989 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1990 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1992 dnl Numeric variable, no label or missing values.
1993 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1995 dnl Too-large extension record.
1996 7; 3; >>0xfffff000 * 2<<;
1999 "be 5a6679dc41ac349b0b73fc430937c05c" \
2000 "le d4769c7f650cfbf160e0386d0d33be04"
2003 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2005 AT_DATA([sys-file.sps], [dnl
2006 GET FILE='sys-file.sav'.
2008 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2009 error: `sys-file.sav' near offset 0xd8: Record type 7 subtype 3 too large.
2014 AT_SETUP([unknown extension record])
2015 AT_KEYWORDS([sack synthetic system file negative])
2016 AT_DATA([sys-file.sack], [dnl
2018 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2019 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2021 dnl Numeric variable, no label or missing values.
2022 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2024 dnl Unknown extension record type.
2027 dnl End of dictionary.
2031 "be ac8395e27677408189bcb8655e56cc0e" \
2032 "le e308bfcd51f1e3c28d7379c29271f9d6"
2035 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2037 AT_DATA([sys-file.sps], [dnl
2038 GET FILE='sys-file.sav'.
2040 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2041 "warning: `sys-file.sav' near offset 0xd8: Unrecognized record type 7, subtype 30. Please send a copy of this file, and the syntax which created it to bug-gnu-pspp@gnu.org."
2046 AT_SETUP([bad machine integer info size])
2047 AT_KEYWORDS([sack synthetic system file negative])
2048 AT_DATA([sys-file.sack], [dnl
2050 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2051 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2053 dnl Numeric variable, no label or missing values.
2054 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2056 dnl Machine integer info record.
2057 7; 3; 4; >>9<<; 1; 2; 3; -1; 1; 1; ENDIAN; 1252; >>1234<<;
2059 dnl End of dictionary.
2063 "be 21ec84826886b0a266d1360f8279d769" \
2064 "le 15dcba7b2b89b7d8a21ebcc872f515af"
2067 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
2068 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2070 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2071 "warning: `sys-file.sav' near offset 0xd8: Record type 7, subtype 3 has bad count 9 (expected 8)."
2076 AT_SETUP([bad machine integer info float format])
2077 AT_KEYWORDS([sack synthetic system file negative])
2078 AT_DATA([sys-file.sack], [dnl
2080 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2081 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2083 dnl Numeric variable, no label or missing values.
2084 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2086 dnl Machine integer info record.
2087 7; 3; 4; 8; 1; 2; 3; -1; >>2<<; 1; ENDIAN; 1252;
2089 dnl End of dictionary.
2093 "be d510ed28278649eee997fb6881a4c04f" \
2094 "le fbf1eca561a4e243b7ae844ed1677035"
2097 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
2098 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2100 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2101 error: `sys-file.sav' near offset 0xd8: Floating-point representation indicated by system file (2) differs from expected (1).
2106 AT_SETUP([bad machine integer info endianness])
2107 AT_KEYWORDS([sack synthetic system file negative])
2108 AT_DATA([sys-file.sack], [dnl
2110 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2111 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2113 dnl Numeric variable, no label or missing values.
2114 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2116 dnl Machine integer info record.
2117 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; >>3<<; 1252;
2119 dnl End of dictionary.
2123 "be 855123d16d5e1560b91d60753dad79ad 1" \
2124 "le d6626b4fa2e46a91f26c2fc609b2f1e0 2"
2127 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2129 AT_DATA([sys-file.sps], [dnl
2130 GET FILE='sys-file.sav'.
2133 AT_CHECK_UNQUOTED([pspp -O format=csv sys-file.sps], [0], [dnl
2134 warning: \`sys-file.sav' near offset 0xd8: Integer format indicated by system file (3) differs from expected ($[3]).
2136 Variable,Description,,Position
2137 num1,Format: F8.0,,1
2139 ,Display Alignment: Right,,
2146 AT_SETUP([bad machine floating-point info size])
2147 AT_KEYWORDS([sack synthetic system file negative])
2148 AT_DATA([sys-file.sack], [dnl
2150 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2151 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2153 dnl Numeric variable, no label or missing values.
2154 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2156 dnl Machine floating-point info record.
2157 7; 4; 8; >>4<<; SYSMIS; HIGHEST; LOWEST; 0.0;
2159 dnl End of dictionary.
2163 "be 29c9a173638fbb8bb1efe1176c4d670f" \
2164 "le 5cb49eb1084e5b9cd573a54705ff86a7"
2167 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
2168 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2170 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2171 "warning: `sys-file.sav' near offset 0xd8: Record type 7, subtype 4 has bad count 4 (expected 3)."
2176 AT_SETUP([wrong special floating point values])
2177 AT_KEYWORDS([sack synthetic system file negative])
2178 AT_DATA([sys-file.sack], [dnl
2180 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2181 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2183 dnl Numeric variable, no label or missing values.
2184 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2186 dnl Machine floating-point info record.
2187 7; 4; 8; 3; >>0.0<<; >>1.0<<; >>2.0<<;
2189 dnl End of dictionary.
2193 "be 1e7452d9bb0a2397bf6084a25437514e" \
2194 "le f59f9a83f723cde1611869ff6d91d325"
2197 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2199 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2201 AT_CHECK([pspp -O format=csv sys-file.sps | sed 's/ [(].*/.../'], [0], [dnl
2202 "warning: `sys-file.sav' near offset 0xd8: File specifies unexpected value 0...
2204 "warning: `sys-file.sav' near offset 0xd8: File specifies unexpected value 1...
2206 "warning: `sys-file.sav' near offset 0xd8: File specifies unexpected value 2...
2211 AT_SETUP([bad mrsets name])
2212 AT_KEYWORDS([sack synthetic system file negative multiple response])
2213 AT_DATA([sys-file.sack], [dnl
2215 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2216 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2218 dnl Numeric variable, no label or missing values.
2219 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2221 dnl Multiple response sets.
2222 7; 7; 1; COUNT("a=C");
2223 7; 19; 1; COUNT("xyz=D");
2228 "be 15a9bf44d0cd6186a60629b77079c5a5" \
2229 "le 161c99aca5e7a3684df096137e72ce5b"
2232 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2234 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2236 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2237 warning: `sys-file.sav' near offset 0xd8: `a' does not begin with `$' at offset 2 in MRSETS record.
2239 warning: `sys-file.sav' near offset 0xeb: `xyz' does not begin with `$' at offset 4 in MRSETS record.
2244 AT_SETUP([missing space after C in mrsets])
2245 AT_KEYWORDS([sack synthetic system file negative multiple response])
2246 AT_DATA([sys-file.sack], [dnl
2248 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2249 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2251 dnl Numeric variable, no label or missing values.
2252 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2254 dnl Multiple response sets.
2255 7; 7; 1; COUNT("$a=Cx");
2260 "be c5e5656ba3d74c3a967850f29ad89970" \
2261 "le 29f110509c3d6893a7d21ae2d66aad9d"
2264 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2266 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2268 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2269 warning: `sys-file.sav' near offset 0xd8: Missing space following `C' at offset 4 in MRSETS record.
2274 AT_SETUP([missing space after E in mrsets])
2275 AT_KEYWORDS([sack synthetic system file negative multiple response])
2276 AT_DATA([sys-file.sack], [dnl
2278 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2279 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2281 dnl Numeric variable, no label or missing values.
2282 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2284 dnl Multiple response sets.
2285 7; 7; 1; COUNT("$a=Ex");
2290 "be a9e1dc63e2524882a5e3d2949a2da9d4" \
2291 "le ac709ca1928f65f47a8c8efdd9454b50"
2294 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2296 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2298 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2299 warning: `sys-file.sav' near offset 0xd8: Missing space following `E' at offset 4 in MRSETS record.
2304 AT_SETUP([unexpected label source in mrsets])
2305 AT_KEYWORDS([sack synthetic system file negative multiple response])
2306 AT_DATA([sys-file.sack], [dnl
2308 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2309 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2311 dnl Numeric variable, no label or missing values.
2312 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2314 dnl Multiple response sets.
2315 7; 7; 1; COUNT("$a=E 2");
2320 "be 8c710e85a0a1609d0d03dec80aaf5f94" \
2321 "le 4682440b82f22d4bd2ac56afb7fa3152"
2324 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2326 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2328 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2329 warning: `sys-file.sav' near offset 0xd8: Unexpected label source value `2' following `E' at offset 7 in MRSETS record.
2331 warning: `sys-file.sav' near offset 0xd8: Expecting digit at offset 7 in MRSETS record.
2336 AT_SETUP([bad type character in mrsets])
2337 AT_KEYWORDS([sack synthetic system file negative multiple response])
2338 AT_DATA([sys-file.sack], [dnl
2340 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2341 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2343 dnl Numeric variable, no label or missing values.
2344 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2346 dnl Multiple response sets.
2347 7; 7; 1; COUNT("$a=");
2352 "be fc5e5200d8f56b9a5a713e4a95313a3b" \
2353 "le 578a61e8a06b20216612f566c2050879"
2356 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2358 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2360 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2361 "warning: `sys-file.sav' near offset 0xd8: Missing `C', `D', or `E' at offset 3 in MRSETS record."
2366 AT_SETUP([bad counted string length in mrsets])
2367 AT_KEYWORDS([sack synthetic system file negative multiple response])
2368 AT_DATA([sys-file.sack], [dnl
2370 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2371 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2373 dnl Numeric variable, no label or missing values.
2374 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2376 dnl Multiple response sets.
2377 7; 7; 1; COUNT("$a=Dx");
2382 "be 23d0e2f65c7c5f93bbedcc0f2b260c69" \
2383 "le c3860c1d80e08842264948056e72c0db"
2386 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2388 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2390 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2391 warning: `sys-file.sav' near offset 0xd8: Expecting digit at offset 4 in MRSETS record.
2396 AT_SETUP([missing space in counted string in mrsets])
2397 AT_KEYWORDS([sack synthetic system file negative multiple response])
2398 AT_DATA([sys-file.sack], [dnl
2400 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2401 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2403 dnl Numeric variable, no label or missing values.
2404 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2406 dnl Multiple response sets.
2407 7; 7; 1; COUNT("$a=D1x");
2412 "be c9ce001723763e0698878b7e43a887e8" \
2413 "le e258a1e4491d5a1d1e7d2272ef631a22"
2416 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2418 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2420 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2421 warning: `sys-file.sav' near offset 0xd8: Expecting space at offset 5 in MRSETS record.
2426 AT_SETUP([counted string too long in mrsets])
2427 AT_KEYWORDS([sack synthetic system file negative multiple response])
2428 AT_DATA([sys-file.sack], [dnl
2430 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2431 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2433 dnl Numeric variable, no label or missing values.
2434 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2436 dnl Multiple response sets.
2437 7; 7; 1; COUNT("$a=D4 abc");
2442 "be 196d1266fa0e8e315769dcbe3130e3df" \
2443 "le 23df1ba7b77a26da8ce1c2cfbcaadce0"
2446 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2448 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2450 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2451 warning: `sys-file.sav' near offset 0xd8: 4-byte string starting at offset 6 exceeds record length 9.
2456 AT_SETUP([missing space after counted string in mrsets])
2457 AT_KEYWORDS([sack synthetic system file negative multiple response])
2458 AT_DATA([sys-file.sack], [dnl
2460 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2461 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2463 dnl Numeric variable, no label or missing values.
2464 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2466 dnl Multiple response sets.
2467 7; 7; 1; COUNT("$a=D3 abcx");
2472 "be 86314bb0bbdfad48c10af8b8d8106d6e" \
2473 "le 2b8d05ff501ca78e51f7110ce88a2364"
2476 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2478 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2480 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2481 warning: `sys-file.sav' near offset 0xd8: Expecting space at offset 9 following 3-byte string.
2486 AT_SETUP([missing newline after variable name in mrsets])
2487 AT_KEYWORDS([sack synthetic system file negative multiple response])
2488 AT_DATA([sys-file.sack], [dnl
2490 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2491 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2493 dnl Numeric variable, no label or missing values.
2494 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2496 dnl Multiple response sets.
2497 7; 7; 1; COUNT("$a=C 0 NUM1");
2502 "be cea939cf3e6a5f88cb45e8fa871c5e13" \
2503 "le 52135afec082f50f37eafacadbb2cd65"
2506 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2508 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2510 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2511 warning: `sys-file.sav' near offset 0xd8: Missing new-line parsing variable names at offset 13 in MRSETS record.
2513 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2518 AT_SETUP([duplicate variable name in mrsets])
2519 AT_KEYWORDS([sack synthetic system file negative multiple response])
2520 AT_DATA([sys-file.sack], [dnl
2522 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2523 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2525 dnl Numeric variable, no label or missing values.
2526 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2528 dnl Multiple response sets.
2529 7; 7; 1; COUNT("$a=C 0 NUM1 NUM1"; i8 10);
2534 "be 4b1b5fa2dc22cf0afdd35422290b0a29" \
2535 "le e4304b57976440a036f25f8dd8ac1404"
2538 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2540 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2542 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2543 warning: `sys-file.sav' near offset 0xd8: Duplicate variable name NUM1 at offset 18 in MRSETS record.
2545 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2550 AT_SETUP([mixed variable types in mrsets])
2551 AT_KEYWORDS([sack synthetic system file negative multiple response])
2552 AT_DATA([sys-file.sack], [dnl
2554 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2555 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2558 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2559 2; 8; 0; 0; 0x010800 *2; s8 "STR1";
2561 dnl Multiple response sets.
2562 7; 7; 1; COUNT("$a=C 0 NUM1 STR1"; i8 10);
2567 "be 0f130e967e4097823f85b8711eb20727" \
2568 "le 4dc987b4303fd115f1cae9be3963acc9"
2571 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2573 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2575 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2576 warning: `sys-file.sav' near offset 0xf8: MRSET $a contains both string and numeric variables.
2578 warning: `sys-file.sav' near offset 0xf8: MRSET $a has only 1 variables.
2583 AT_SETUP([missing newline after variable name in mrsets])
2584 AT_KEYWORDS([sack synthetic system file negative multiple response])
2585 AT_DATA([sys-file.sack], [dnl
2587 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2588 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2590 dnl Numeric variable, no label or missing values.
2591 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2593 dnl Multiple response sets.
2594 7; 7; 1; COUNT("$a=C 0 NUM1"; i8 10);
2599 "be 3a891e0a467afb3d622629c70f329ada" \
2600 "le 432998ec08370510411af4f5207c015e"
2603 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2605 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2607 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2608 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2613 AT_SETUP([only one variable in mrset])
2614 AT_KEYWORDS([sack synthetic system file negative multiple response])
2615 AT_DATA([sys-file.sack], [dnl
2617 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2618 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2620 dnl Numeric variable, no label or missing values.
2621 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2623 dnl Multiple response sets.
2624 7; 7; 1; COUNT("$a=C 0 NUM1"; i8 10);
2629 "be 3a891e0a467afb3d622629c70f329ada" \
2630 "le 432998ec08370510411af4f5207c015e"
2633 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2635 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2637 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2638 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2643 AT_SETUP([wrong display parameter size])
2644 AT_KEYWORDS([sack synthetic system file negative])
2645 AT_DATA([sys-file.sack], [dnl
2647 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2648 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2650 dnl Numeric variable, no label or missing values.
2651 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2653 dnl Display parameters record.
2654 7; 11; >>8<<; 2; 1.0; 1.0;
2656 dnl End of dictionary.
2660 "be 7c0f1ae47ae11e37d435c4abaceca226" \
2661 "le c29d05a1f8f15ed2201f31f8b787aaa0"
2664 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2666 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2668 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2669 "warning: `sys-file.sav' near offset 0xd8: Record type 7, subtype 11 has bad size 8 (expected 4)."
2674 AT_SETUP([wrong display parameter count])
2675 AT_KEYWORDS([sack synthetic system file negative])
2676 AT_DATA([sys-file.sack], [dnl
2678 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2679 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2681 dnl Numeric variable, no label or missing values.
2682 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2684 dnl Display parameters record.
2685 7; 11; 4; >>4<<; 1; 1; 2; 2;
2687 dnl End of dictionary.
2691 "be 372b57e73c69b05047b60bf6c596e2a1" \
2692 "le 2a550d8c5ceae4de7ced77df66e49d0f"
2695 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2697 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2699 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2700 warning: `sys-file.sav' near offset 0xd8: Extension 11 has bad count 4 (for 1 variables).
2705 AT_SETUP([wrong display measurement level])
2706 AT_KEYWORDS([sack synthetic system file negative])
2707 AT_DATA([sys-file.sack], [dnl
2709 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2710 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2712 dnl Numeric variable, no label or missing values.
2713 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2715 dnl Display parameters record.
2716 7; 11; 4; 2; >>4<<; 0;
2718 dnl End of dictionary.
2722 "be d43e7616b03743339f37292dec6c2204" \
2723 "le 821533c29a070cefdd8f07f4e1741d2a"
2726 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2728 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2730 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2731 warning: `sys-file.sav' near offset 0xd8: Invalid variable display parameters for variable 0 (NUM1). Default parameters substituted.
2736 AT_SETUP([wrong display alignment])
2737 AT_KEYWORDS([sack synthetic system file negative])
2738 AT_DATA([sys-file.sack], [dnl
2740 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2741 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2743 dnl Numeric variable, no label or missing values.
2744 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2746 dnl Display parameters record.
2747 7; 11; 4; 2; 1; >>-1<<;
2749 dnl End of dictionary.
2753 "be c54bc48b5767e2ec3a9ef31df790cb7c" \
2754 "le a4d8b14af64221abe83adb417d110e10"
2757 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2759 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2761 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2762 warning: `sys-file.sav' near offset 0xd8: Invalid variable display parameters for variable 0 (NUM1). Default parameters substituted.
2767 AT_SETUP([bad variable name in variable/value pair])
2768 AT_KEYWORDS([sack synthetic system file negative])
2769 AT_DATA([sys-file.sack], [dnl
2771 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2772 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2774 dnl Numeric variables.
2775 2; 0; 0; 0; 0x050800 *2; s8 "LONGVARI";
2777 dnl Long variable names.
2778 7; 13; 1; COUNT (>>"xyzzy"<<);
2780 dnl Dictionary termination record.
2784 "be b67b6e3c1900e5a9cc691055008f0447" \
2785 "le 26cc52e601f830f9087a0ea2bd9527df"
2788 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2790 AT_DATA([sys-file.sps], [dnl
2791 GET FILE='sys-file.sav'.
2793 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2794 warning: `sys-file.sav' near offset 0xde: Dictionary record refers to unknown variable xyzzy.
2799 AT_SETUP([duplicate long variable name])
2800 AT_KEYWORDS([sack synthetic system file negative])
2801 AT_DATA([sys-file.sack], [dnl
2803 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2804 2; 4; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2806 dnl Numeric variables.
2807 2; 0; 0; 0; 0x050800 *2; s8 "LONGVARI";
2808 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_A";
2809 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_B";
2810 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_C";
2812 dnl Long variable names.
2814 "LONGVARI=_Invalid"; i8 9;
2815 "LONGVA_A=LongVariableName"; i8 9;
2816 "LONGVA_B=LONGVARIABLENAME"; i8 9;
2819 dnl Dictionary termination record.
2823 "be 9b4b4daa00084d984efb8f889bcb727c" \
2824 "le c1b1470d5cd615106e9ae507c9948d8e"
2827 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2829 AT_DATA([sys-file.sps], [dnl
2830 GET FILE='sys-file.sav'.
2832 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2833 warning: `sys-file.sav' near offset 0x138: Long variable mapping from LONGVARI to invalid variable name `_Invalid'.
2835 warning: `sys-file.sav' near offset 0x138: Duplicate long variable name `LONGVARIABLENAME'.
2840 AT_SETUP([bad very long string length])
2841 AT_KEYWORDS([sack synthetic system file negative])
2842 AT_DATA([sys-file.sack], [dnl
2844 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2845 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2847 dnl Numeric variable.
2848 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2850 dnl Very long string map.
2852 "NUM1=00000"; i8 0; i8 9;
2853 "NUM1=00255"; i8 0; i8 9;
2854 "NUM1=00256"; i8 0; i8 9;
2857 dnl Dictionary termination record.
2861 "be 1309d8d9fb24bcf08952dce9b0f39a94" \
2862 "le 94a39de88f8034001b3e467c4cc04d0f"
2865 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2867 AT_DATA([sys-file.sps], [dnl
2868 GET FILE='sys-file.sav'.
2870 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2871 warning: `sys-file.sav' near offset 0xd8: NUM1 listed as string of invalid length 00000 in very long string record.
2873 "warning: `sys-file.sav' near offset 0xd8: NUM1 listed in very long string record with width 00255, which requires only one segment."
2875 error: `sys-file.sav' near offset 0xd8: Very long string NUM1 overflows dictionary.
2880 AT_SETUP([bad very long string segment width])
2881 AT_KEYWORDS([sack synthetic system file negative])
2882 AT_DATA([sys-file.sack], [dnl
2884 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2885 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2888 2; 255; 0; 0; 0x01ff00 *2; s8 "STR1";
2889 (2; -1; 0; 0; 0; 0; s8 "") * 31;
2890 2; >>9<<; 0; 0; 0x010900 *2; s8 "STR1_A";
2891 >>2; -1; 0; 0; 0; 0; s8 "";<<
2893 dnl Very long string map.
2895 "STR1=00256"; i8 0; i8 9;
2898 dnl Dictionary termination record.
2902 "be 1d09a44a46859e6eda28e053dd4b7a8b" \
2903 "le 63b9ac0b3953f3e0d5ee248ebe257794"
2906 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2908 AT_DATA([sys-file.sps], [dnl
2909 GET FILE='sys-file.sav'.
2911 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2912 error: `sys-file.sav' near offset 0x4f8: Very long string with width 256 has segment 1 of width 9 (expected 4).
2917 AT_SETUP([too many value labels])
2918 dnl Skip the test if multiplying a small number by INT32_MAX would not
2919 dnl cause an overflow in size_t.
2920 AT_SKIP_IF([test $SIZEOF_SIZE_T -gt 4])
2921 AT_KEYWORDS([sack synthetic system file negative])
2922 AT_DATA([sys-file.sack], [dnl
2924 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2925 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2927 dnl Numeric variable.
2928 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2932 "be 975b2668dde395ddf619977958b37412" \
2933 "le 0c14aa278cfc2a4b801f91c14321f03b"
2936 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2938 AT_DATA([sys-file.sps], [dnl
2939 GET FILE='sys-file.sav'.
2941 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2942 error: `sys-file.sav' near offset 0xd4: Invalid number of labels 2147483647.
2947 AT_SETUP([missing type 4 record])
2948 AT_KEYWORDS([sack synthetic system file negative])
2949 AT_DATA([sys-file.sack], [dnl
2951 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2952 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2954 dnl Numeric variable.
2955 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2957 dnl Value label with missing type 4 record.
2958 3; 1; 1.0; i8 3; s7 "one";
2960 dnl End of dictionary.
2964 "be 5e1286ac92e3f25ff98492bc5019d608" \
2965 "le b33c12f776bbcaa43aa3bfdd4799e0c0"
2968 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2970 AT_DATA([sys-file.sps], [dnl
2971 GET FILE='sys-file.sav'.
2973 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2974 error: `sys-file.sav' near offset 0xe8: Variable index record (type 4) does not immediately follow value label record (type 3) as it should.
2979 AT_SETUP([value label with no associated variables])
2980 AT_KEYWORDS([sack synthetic system file negative])
2981 AT_DATA([sys-file.sack], [dnl
2983 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2984 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2986 dnl Numeric variable.
2987 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2989 dnl Value label with no variables.
2990 3; 1; 1.0; i8 3; s7 "one"; 4; >>0<<;
2993 "be b0dcec30a936cbcad21c4f3d6fe10fcf" \
2994 "le 3b9fdfce5c8c248048232fd6eac018e3"
2997 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2999 AT_DATA([sys-file.sps], [dnl
3000 GET FILE='sys-file.sav'.
3002 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
3003 error: `sys-file.sav' near offset 0xec: Number of variables associated with a value label (0) is not between 1 and the number of variables (1).
3008 AT_SETUP([type 4 record names long string variable])
3009 AT_KEYWORDS([sack synthetic system file negative])
3010 AT_DATA([sys-file.sack], [dnl
3012 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3013 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3015 dnl Long string variable.
3016 2; 9; 0; 0; 0x010900 *2; s8 "STR1";
3017 2; -1; 0; 0; 0; 0; s8 "";
3019 dnl Value label that names long string variable.
3020 3; 1; s8 "xyzzy"; i8 3; s7 "one"; 4; 1; >>1<<;
3022 dnl End of dictionary.
3026 "be 14053a4f09de4c7c4c55281534dd66f4" \
3027 "le 8a61cc994c659fd66307d2f0fd64ce20"
3030 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
3031 AT_DATA([sys-file.sps], [dnl
3032 GET FILE='sys-file.sav'.
3034 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
3035 error: `sys-file.sav' near offset 0xf4: Value labels may not be added to long string variables (e.g. STR1) using records types 3 and 4.
3040 AT_SETUP([variables for value label must all be same type])
3041 AT_KEYWORDS([sack synthetic system file negative])
3042 AT_DATA([sys-file.sack], [dnl
3044 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3045 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3048 2; 6; 0; 0; 0x010600 *2; s8 "STR1";
3049 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3051 dnl Value label that names numeric and string variables.
3052 3; 1; s8 "xyzzy"; i8 3; s7 "one"; 4; 2; >>1; 2<<;
3054 dnl End of dictionary.
3058 "be 7577c456726a88f52bbef63a8b47bf1a" \
3059 "le 3ba5c6af9ad0ae5cc88f9f63e726e414"
3062 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
3063 AT_DATA([sys-file.sps], [dnl
3064 GET FILE='sys-file.sav'.
3066 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
3067 "error: `sys-file.sav' near offset 0xf4: Variables associated with value label are not all of identical type. Variable STR1 is string, but variable NUM1 is numeric."
3072 AT_SETUP([duplicate value labels type])
3073 AT_KEYWORDS([sack synthetic system file negative])
3074 AT_DATA([sys-file.sack], [dnl
3076 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3077 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3080 2; 6; 0; 0; 0x010600 *2; s8 "STR1";
3081 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3083 dnl Duplicate value labels.
3084 3; 1; s8 "xyzzy"; i8 3; s7 "one"; 4; 2; >>1; 1<<;
3085 3; 1; 1.0; i8 3; s7 "one"; 4; 2; >>2; 2<<;
3087 dnl End of dictionary.
3091 "be ef0f5b2ebddb5a3bfcda16c93a2508f4" \
3092 "le c00e27abd9a6c06bf29a108d7220435a"
3095 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3097 AT_DATA([sys-file.sps], [dnl
3098 GET FILE='sys-file.sav'.
3100 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
3101 warning: `sys-file.sav' near offset 0xf4: Duplicate value label for `xyzzy ' on STR1.
3103 warning: `sys-file.sav' near offset 0x11c: Duplicate value label for 1 on NUM1.
3108 AT_SETUP([missing attribute value])
3109 AT_KEYWORDS([sack synthetic system file negative])
3110 AT_DATA([sys-file.sack], [dnl
3112 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3113 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3116 2; 0; 0; 0; 0x050800 *2; s8 "FIRSTVAR";
3118 dnl Data file attributes record.
3123 dnl Variable attributes record.
3129 dnl Dictionary termination record.
3133 "be 0fc71f5e3cdb6b7f2dd73d011d4885c2" \
3134 "le e519b44715400156a2bfe648eb5cff34"
3137 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3139 AT_DATA([sys-file.sps], [dnl
3140 GET FILE='sys-file.sav'.
3142 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
3143 warning: `sys-file.sav' near offset 0xde: Error parsing attribute value Attr1[[1]].
3145 warning: `sys-file.sav' near offset 0x101: Error parsing attribute value fred[[2]].
3150 AT_SETUP([unquoted attribute value])
3151 AT_KEYWORDS([sack synthetic system file negative])
3152 AT_DATA([sys-file.sack], [dnl
3154 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3155 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3158 2; 0; 0; 0; 0x050800 *2; s8 "FIRSTVAR";
3160 dnl Data file attributes record.
3162 "Attr1(value"; i8 10;
3166 dnl Variable attributes record.
3169 "fred(23"; i8 10; ")"
3172 dnl Dictionary termination record.
3176 "be 33dba37c2247e63c04bb74a7b472293d" \
3177 "le 041025a9d9d9e21a7fabd90ba7341934"
3180 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3182 AT_DATA([sys-file.sps], [dnl
3183 GET FILE='sys-file.sav'.
3185 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
3186 warning: `sys-file.sav' near offset 0xe4: Attribute value Attr1[[1]] is not quoted: value.
3188 warning: `sys-file.sav' near offset 0x106: Attribute value fred[[1]] is not quoted: 23.
3193 AT_SETUP([bad variable name in long string value label])
3194 AT_KEYWORDS([sack synthetic system file negative])
3195 AT_DATA([sys-file.sack], [dnl
3197 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3198 2; 3; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3201 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3202 2; 14; 0; 0; 0x010e00 *2; s8 "STR14";
3203 2; -1; 0; 0; 0; 0; s8 "";
3206 dnl No variable named STR9.
3207 COUNT(>>"STR9"<<); 9;
3208 1; COUNT("RSTUVWXYZ"); COUNT("value label for `RSTUVWXYZ'");
3210 dnl NUM1 is numeric.
3211 COUNT(>>"NUM1"<<); 0;
3212 1; COUNT("xyz"); COUNT("value label for 1.0");
3214 dnl Wrong width for STR14.
3215 COUNT("STR14"); >>9<<;
3216 1; COUNT("RSTUVWXYZ"); COUNT("value label for `RSTUVWXYZ'");
3218 dnl Wrong width for value.
3220 1; COUNT(>>"RSTUVWXYZ"<<); COUNT("value label for `RSTUVWXYZ'");
3222 dnl Duplicate value label.
3223 COUNT("STR14"); 14; 2;
3224 COUNT("abcdefghijklmn"); COUNT("value label for `abcdefghijklmn'");
3225 >>COUNT("abcdefghijklmn"); COUNT("another value label for `abcdefghijklmn'")<<;
3228 dnl Dictionary termination record.
3232 "be cf2e883dadb00e2c6404c09ea0a4e388" \
3233 "le 89c340faf0a7e4a8c834f9687684c091"
3236 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3238 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3240 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
3241 warning: `sys-file.sav' near offset 0x128: Ignoring long string value record for unknown variable STR9.
3243 warning: `sys-file.sav' near offset 0x164: Ignoring long string value record for numeric variable NUM1.
3245 warning: `sys-file.sav' near offset 0x193: Ignoring long string value record for variable STR14 because the record's width (9) does not match the variable's width (14).
3247 "warning: `sys-file.sav' near offset 0x1d4: Ignoring long string value 0 for variable str14, with width 14, that has bad value width 9."
3249 warning: `sys-file.sav' near offset 0x259: Duplicate value label for `abcdefghijklmn' on str14.
3254 AT_SETUP([fewer data records than indicated by file header])
3255 AT_KEYWORDS([sack synthetic system file negative])
3256 AT_DATA([sys-file.sack], [dnl
3258 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3259 2; 2; 0; 0; >>5<<; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3261 dnl Numeric variables.
3262 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3263 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
3271 dnl Missing record here.
3274 "be 6ee097c3934055d0c4564641636f4b5a" \
3275 "le ae03fe1b888091d6938b5a436d44ac60"
3278 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3280 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3283 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3284 [error: Error reading case from file `sys-file.sav'.
3296 AT_SETUP([partial data record between variables])
3297 AT_KEYWORDS([sack synthetic system file negative])
3298 AT_DATA([sys-file.sack], [dnl
3300 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3301 2; 2; 0; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3303 dnl Numeric variables.
3304 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3305 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
3313 "be 4bcc085d7d8f0f09c6a4ba8064ffe61c" \
3314 "le 7387fc5edd2740aff92c30ca688d6d9b"
3317 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3319 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3322 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3323 [error: `sys-file.sav' near offset 0x110: File ends in partial case.
3332 AT_SETUP([partial data record within long string])
3333 AT_KEYWORDS([sack synthetic system file negative])
3334 AT_DATA([sys-file.sack], [dnl
3336 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3337 2; 2; 0; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3339 dnl Numeric variables.
3340 2; 14; 0; 0; 0x010e00 *2; s8 "STR14";
3341 2; -1; 0; 0; 0; 0; s8 "";
3345 s14 "one data item";
3349 "be 4a9e84f9e679afb7bb71acd0bb7eab89" \
3350 "le 30752606f14ee2deec2854e8e6de4b3b"
3353 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3355 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3358 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3359 [error: `sys-file.sav' near offset 0x10e: Unexpected end of file.
3368 AT_SETUP([partial compressed data record])
3369 AT_KEYWORDS([sack synthetic system file positive])
3370 AT_DATA([sys-file.sack], [dnl
3372 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3374 6; dnl Nominal case size
3377 -1; dnl Unspecified number of cases.
3379 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
3382 dnl Numeric variables.
3383 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3384 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
3386 dnl String variable.
3387 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
3388 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
3389 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
3390 2; -1; 0; 0; 0; 0; s8 "";
3392 dnl Dictionary termination record.
3395 dnl Compressed data.
3396 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
3399 "be ef01b16e2e397d979a3a7d20725ebe6d" \
3400 "le 51f7a61e9bc68992469d16c55d6ecd88"
3403 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3405 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3408 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3409 [error: `sys-file.sav' near offset 0x190: File ends in partial case.
3412 num1,num2,str4,str8,str15
3413 -99,0,,abcdefgh,0123 @&t@