1 title 'Test FILE LABEL, DOCUMENT, DROP DOCUMENTS'.
3 /* Set up a dummy active file in memory.
13 /* Add value labels for some further testing of value labels.
14 value labels x y 1 'first label' 2 'second label' 3 'third label'.
15 add value labels x 1 'first label mark two'.
17 /* Add a file label and a few documents.
18 file label This is a test file label.
19 document First line of a document
20 This is the second very long line of a document in an attempt to overflow the input buffer with a really long line
21 Note that the last line should end with a period: .
23 /* Display the documents.
25 display file label. /* undocumented feature of PSPP
27 /* Save the active file then get it and display the documents again.
31 display file label. /* undocumented feature of PSPP
33 /* There is an interesting interaction that occurs if the `execute'
34 /* command below. What happens is that an error message is output
35 /* at the next `save' command that `foo.save' is already open for
36 /* input. This is because the `get' hasn't been executed yet and
37 /* therefore PSPP would be reading from and writing to the same
38 /* file at once, which is obviously a Bad Thing. But `execute'
39 /* here clears up that potential problem.
42 /* Add another (shorter) document and try again.
43 document There should be another document now.
50 display file label. /* undocumented feature of PSPP