27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DOCUMENT<br />

DOCUMENT text<br />

Example<br />

Overview<br />

DOCUMENT This file contains a subset of variables from the<br />

General Social Survey data. For each case it records<br />

only the age, sex, education level, marital status,<br />

number of children, and type of medical insurance<br />

coverage.<br />

DOCUMENT saves a block of text of any length in an SPSS-format data file. The documentation<br />

can be displayed with the DISPLAY command. (See also ADD DOCUMENT.)<br />

When GET retrieves a data file, or when ADD FILES, MATCH FILES, or UPDATE is used<br />

to combine data files, all documents from each specified file are copied into the working<br />

file. DROP DOCUMENTS can be used to drop those documents from the working file.<br />

Whether or not DROP DOCUMENTS is used, new documents can be added to the working<br />

file with the DOCUMENT command.<br />

Basic Specification<br />

The basic specification is DOCUMENT followed by any length of text. The text is stored in<br />

the file dictionary when the data are saved in an SPSS-format data file.<br />

<strong>Syntax</strong> Rules<br />

• The text can be entered on as many lines as needed.<br />

• Blank lines can be used to separate paragraphs.<br />

• A period at the end of a line terminates the command, so you should not place a period<br />

at the end of any line but the last.<br />

• Multiple DOCUMENT commands can be used within the command sequence. However,<br />

the DISPLAY command cannot be used to exhibit the text from a particular DOCUMENT<br />

command. DISPLAY shows all existing documentation.<br />

Operations<br />

• The documentation and the date it was entered are saved in the data file’s dictionary. New<br />

documentation is saved along with any documentation already in the working data file.<br />

490

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!