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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

Overview<br />

Options<br />

Week and year wkWKyyyy WKYR WKYRw<br />

Date and time dd-mmm-yyyy hh:mm:ss.ss DATETIME DATETIMEw.d<br />

Time hh:mm:ss.ss TIME TIMEw.d<br />

Days and time ddd hh:mm:ss.ss DTIME DTIMEw.d<br />

Day of the week string WKDAY WKDAYw<br />

Month string MONTH MONTHw<br />

DATA LIST 413<br />

DATA LIST /ID 1-3 SEX 5 (A) AGE 7-8 OPINION1 TO OPINION5 10-14.<br />

DATA LIST defines a raw data file (a raw data file contains numbers and other alphanumeric<br />

characters) by assigning names and formats to each variable in the file. Raw data can be<br />

inline (entered with your commands between BEGIN DATA and END DATA) or stored in an<br />

external file. They can be in fixed format (values for the same variable are always entered in<br />

the same location on the same record for each case) or in freefield format (values for consecutive<br />

variables are not in particular columns but are entered one after the other, separated by<br />

blanks or commas).<br />

For information on defining matrix materials, see MATRIX DATA. For information on<br />

defining complex data files that cannot be defined with DATA LIST, see FILE TYPE and<br />

REPEATING DATA. For information on reading SPSS-format data files and SPSS-format<br />

portable files, see GET and IMPORT.<br />

The program can also read data files created by other software applications. <strong>Command</strong>s<br />

that read these files include GET CAPTURE and GET TRANSLATE.<br />

Data Source. You can use inline data or data from an external file.<br />

Data Formats. You can define numeric (with or without decimal places) and string variables<br />

using an array of input formats (percent, dollar, date and time, and so forth). You can also<br />

specify column binary and unaligned positive integer binary formats (available only if used<br />

with the MODE=MULTIPUNCH setting on the FILE HANDLE command). For a complete list of<br />

available formats, see “Variable Formats” on p. 25.<br />

Data Organization. You can define data that are in fixed format (values in the same location<br />

on the same record for each case), in freefield format with multiple cases per record, or in<br />

freefield format with one case on each record using the FIXED, FREE, and LIST keywords.<br />

Multiple Records. For fixed-format data, you can indicate the number of records per case on<br />

the RECORDS subcommand. You can specify which records to read in the variable definition<br />

portion of DATA LIST.<br />

Summary Table. For fixed-format data, you can display a table that summarizes the variable<br />

definitions using the TABLE subcommand. You can suppress this table using NOTABLE.

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

Saved successfully!

Ooh no, something went wrong!