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.

1416 REPORT<br />

Column Format<br />

The following options can be used to specify column width and adjust the position of the<br />

column contents:<br />

(width) Width for the report column. If no width is specified for a variable, REPORT<br />

determines a default width using the criteria described under “Defaults” on<br />

p. 1403. If you specify a width that is not wide enough to display numeric<br />

values, REPORT first rounds decimal digits, then converts to scientific<br />

notation if possible, and then displays asterisks. Value labels or string<br />

values that exceed the width are wrapped.<br />

(OFFSET) Position of the report column contents. The specification is either n or<br />

CENTER specified in parentheses. OFFSET(n) indicates the number of<br />

spaces to offset the contents from the left for value labels or string values,<br />

and from the right for numeric values. OFFSET(CENTER) centers contents<br />

within the center of the column. If AUTOMATIC is in effect, the default is<br />

CENTER. If MANUAL is in effect, the default is 0. Value labels and string<br />

values are left-justified and numeric values are right-justified.<br />

Example<br />

/VARIABLES=V1 TO V3(LABEL) (15)<br />

V4 V5 (LABEL)(OFFSET (2))(10)<br />

SEP1 (DUMMY) (2) ’’<br />

V6 ’Results using’ "Lieben’s Method" ’of Calculation’<br />

• The width of the columns for variables V1 through V3 is 15 each. Value labels are<br />

displayed for these variables in the case listing.<br />

• The column for variable V4 uses the default width. Values are listed in the case listing.<br />

• Value labels are displayed for variable V5. The column width is 10. Column contents are<br />

offset two spaces from the left.<br />

• SEP1 is a dummy variable. The column width is 2, and there is at least one space on each<br />

side of SEP1. Thus, there are at least four blanks between the columns for V5 and V6.<br />

SEP1 is given a null title to override the default column title SEP1.<br />

• V6 has a three-line title. Its column uses the default width, and values are listed in the case<br />

listing.<br />

STRING Subcommand<br />

STRING creates a temporary string variable by concatenating variables and user-specified<br />

strings. These variables exist only within the REPORT procedure.<br />

• The minimum specification is a name for the string variable followed by a variable name<br />

or a user-specified string enclosed in parentheses.<br />

• The name assigned to the string variable must be unique.<br />

• Any combination of string variables, numeric variables, and user-specified strings can be<br />

used in the parentheses to define the string.<br />

• Keyword TO cannot be used within the parentheses to imply a variable list.

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

Saved successfully!

Ooh no, something went wrong!