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.

944 MATRIX—END MATRIX<br />

FORMAT Specification<br />

FORMAT specifies how the matrix processor should interpret the input data. The format descriptor<br />

can be any valid SPSS data format, such as F6, E12.2, or A6, or it can be a type<br />

code; for example, F, E, or A.<br />

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

• You can specify the width of fixed-size data fields with either a FORMAT specification or a<br />

BY clause on a FIELD specification. You can include it in both places only if you specify the<br />

same value.<br />

• If you do not include either a FORMAT or a BY clause on FIELD, READ expects values separated<br />

by blanks or commas.<br />

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

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

width of the whole input area on the FIELD specification by the repetition factor. A format<br />

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

• Only one format can be specified. A specification such as FORMAT=’5F2.0 3F3.0<br />

F2.0’ is invalid.<br />

WRITE Statement: Writing Character Data<br />

WRITE writes the value of a matrix expression to an external file. The syntax of the WRITE<br />

statement is:<br />

WRITE matrix expression<br />

[/OUTFILE = file reference]<br />

/FIELD = startcol TO endcol [BY width]<br />

[/MODE = {RECTANGULAR}]<br />

{TRIANGULAR }<br />

[/HOLD]<br />

[/FORMAT = format descriptor]<br />

Matrix Expression Specification<br />

Specify any matrix expression that evaluates to the value(s) to be written.<br />

• The matrix specification must precede any other specifications on the WRITE statement.<br />

• You can specify a matrix name, a matrix raised to a power, or a matrix function (with its<br />

arguments in parentheses) by itself, but you must enclose other matrix expressions in<br />

parentheses. For example, WRITE A, WRITE INV(A), or WRITE B**DET(T(C)*D)<br />

is legal, but WRITE A+B is not. You must specify WRITE (A+B).<br />

• Constant expressions are allowed.<br />

OUTFILE Specification<br />

OUTFILE designates the character file to which the matrix expression is to be written. The<br />

file reference can be an actual filename in apostrophes or quotation marks, or a file handle

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

Saved successfully!

Ooh no, something went wrong!