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.

946 MATRIX—END MATRIX<br />

HOLD Specification<br />

HOLD causes the last line written by the current WRITE statement to be held so that the next<br />

WRITE to that file will write on the same line. Use HOLD to write more than one matrix on a line.<br />

FORMAT Specification<br />

FORMAT indicates how the internal (binary) values of matrix elements should be converted<br />

to character format for output.<br />

• The format descriptor is any valid SPSS data format, such as F6, E12.2, or A6, or it can<br />

be a format type code, such as F, E, or A. It specifies how the written data are encoded and,<br />

if a width is specified, how wide the fields containing the data are. (See FORMATS for valid<br />

formats.)<br />

• If you omit the FORMAT specification, the default is F.<br />

• The data field widths may be specified either here or after BY on the FIELD specification.<br />

You may specify the width in both places only if you give the same value.<br />

• An additional way of specifying the width is to supply a repetition factor without a width<br />

(for example, 10F or 5COMMA). The field width is then calculated by dividing the width of<br />

the whole output area on the FIELD specification by the repetition factor. A format with a<br />

digit for the repetition factor must be enclosed in quotes.<br />

• If the field width is not specified in any of these ways, then the freefield format is used—<br />

matrix values are written separated by one blank, and each value occupies as many positions<br />

as necessary to avoid the loss of precision. Each row of the matrix is written starting with a<br />

new output record.<br />

• Only one format descriptor can be specified. Do not try to specify more than one format;<br />

for example, ’5F2.0 3F3.0 F2.0’ is invalid as a FORMAT specification on WRITE.<br />

GET Statement: Reading SPSS Data Files<br />

GET reads matrices from an external SPSS data file or from the working data file. The syntax<br />

of GET is as follows:<br />

GET variable reference<br />

[/FILE={file reference}]<br />

{* }<br />

[/VARIABLES = variable list]<br />

[/NAMES = names vector]<br />

[/MISSING = {ACCEPT}]<br />

{OMIT }<br />

{value }<br />

[/SYSMIS = {OMIT }]<br />

{value}<br />

Variable Specification<br />

The variable reference on the GET statement is a matrix variable name with or without indexes.

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

Saved successfully!

Ooh no, something went wrong!