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.

432 DATE<br />

Options<br />

You can specify the starting value and periodicity. You can also specify an increment for the<br />

lowest-order keyword specified.<br />

Basic Specification<br />

The basic specification on DATE is a single keyword.<br />

• For each keyword specified, DATE creates a numeric variable whose name is the keyword<br />

with an underscore as a suffix. Values for this variable are assigned to observations<br />

sequentially, beginning with the specified starting value. DATE also creates a string variable<br />

named DATE_, which combines the information from the numeric date variables and<br />

is used for labeling.<br />

• If no starting value is specified, either the default is used or the value is inferred from the<br />

starting value of another DATE keyword.<br />

• All variables created by DATE are automatically assigned variable labels that describe<br />

periodicity and associated formats. DATE produces a list of the names of the variables it<br />

creates and their variable labels.<br />

Subcommand Order<br />

• Keywords can be specified in any order.<br />

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

• You can specify more than one keyword per command.<br />

• If a keyword is specified more than once, only the last one is executed.<br />

• Keywords that describe long time periods (YEAR, QUARTER, MONTH) cannot be used on<br />

the same command with keywords that describe short time periods (WEEK, DAY, HOUR,<br />

MINUTE, SECOND).<br />

• Keywords CYCLE and OBS can be used with any other keyword.<br />

• The lowest-order keyword specified should correspond to the level at which observations<br />

occur. For example, if observations are daily, the lowest-order keyword should be DAY.<br />

• Keywords (except MINUTE) can be abbreviated down to the first character. MINUTE must<br />

have at least two characters (MI) to distinguish it from keyword MONTH.<br />

• Keywords and additional specifications are separated by commas or spaces.<br />

Starting Value and Periodicity<br />

• A starting value and periodicity can be entered for any keyword except CYCLE. CYCLE<br />

can have only a starting value.<br />

• Starting value and periodicity must be specified for keyword OBS.

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

Saved successfully!

Ooh no, something went wrong!