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".
-
GET
keeps only a subset of variables from the file gensoc.sav. All documentation from the file GENSOC is copied into the active dataset. -
FILE LABEL
creates a label for the new active dataset. -
DOCUMENT
specifies the new document text. Both existing documents from the file GENSOC and the new document text are saved in the file 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".
-
DROP DOCUMENTS
drops the documentation from the file gensoc.sav as data are copied into the active dataset. Only the new documentation specified onDOCUMENT
is saved in the file subsoc.sav.