Examples (DOCUMENT command)

Adding Descriptive Text to a Data File

GET FILE="/data/gensoc.sav" /KEEP=AGE SEX EDUC MARITAL CHILDRN MED_INS.
FILE LABEL  General Social Survey subset.
 
DOCUMENT    This file contains a subset of variables from the
            General Social Survey data.  For each case it records
            only the age, sex, education level, marital status,
            number of children, and type of medical insurance 
            coverage.
 
SAVE OUTFILE="/data/subsoc.sav".

Replacing Existing DOCUMENT Text

GET FILE="/data/gensoc.sav" /KEEP=AGE SEX EDUC MARITAL CHILDRN MED_INS.
 
DROP DOCUMENTS.
 
FILE LABEL  General Social Survey subset.
 
DOCUMENT    This file contains a subset of variables from the
            General Social Survey data.  For each case it records
            only the age, sex, education level, marital status,
            number of children, and type of medical insurance 
            coverage.
 
SAVE OUTFILE="/data/subsoc.sav".