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.

STRINGS Specification<br />

MATRIX—END MATRIX 951<br />

The STRINGS specification provides the names of variables that contain short string data<br />

rather than numeric data.<br />

• By default, all variables are assumed to be numeric.<br />

• The variable list specification following STRINGS consists of a list of SPSS variable names<br />

separated by commas. The names must be among those used by SAVE.<br />

MGET Statement: Reading SPSS Matrix Data Files<br />

MGET reads an SPSS matrix-format data file. MGET puts the data it reads into separate matrix<br />

variables. It also names these new variables automatically. The syntax of MGET is as follows:<br />

MGET [ [/] FILE = file reference]<br />

[/TYPE = {COV }]<br />

{CORR }<br />

{MEAN }<br />

{STDDEV}<br />

{N }<br />

{COUNT }<br />

• Since MGET assigns names to the matrices it reads, do not specify matrix names on the<br />

MGET statement.<br />

FILE Specification<br />

FILE designates an SPSS matrix-format data file. (See MATRIX DATA for a discussion of matrix-format<br />

data files.) To designate the working data file (if it is a matrix-format data file),<br />

use an asterisk, or simply omit the FILE specification.<br />

• The file reference can be either a filename enclosed in apostrophes or quotation marks, or a<br />

file handle defined on a FILE HANDLE command that precedes the matrix program.<br />

• The same matrix-format SPSS data file can be read more than once.<br />

• If you omit the FILE specification, the current working data file is used.<br />

• MGET ignores the SPLIT FILE command in SPSS when reading the working data file. It does<br />

honor the split-file groups that were in effect when the matrix-format data file was created.<br />

• The maximum number of split-file groups that can be read is 99.<br />

• The maximum number of cells that can be read is 99.<br />

TYPE Specification<br />

TYPE specifies the rowtype(s) to read from the matrix-format data file.<br />

• By default, records of all rowtypes are read.<br />

• If the matrix-format data file does not contain rows of the requested type, an error occurs.

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

Saved successfully!

Ooh no, something went wrong!