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.

1408 REPORT<br />

Example<br />

• The maximum width of a report is 255 characters.<br />

• The number of report variables that can be specified depends upon the width of the report,<br />

the width of the variable columns, and the number of BREAK subcommands.<br />

• Maximum 50 variables for the FREQUENCY or PERCENT functions.<br />

• Memory requirements significantly increase if FREQUENCY, PERCENT, MEDIAN, or<br />

MODE is requested for variables with a wide range of values. The amount of workspace<br />

required is 20 + 8*(max−min +1) bytes per variable per function per break. If the same<br />

range is used for different statistics for the same variable, only one set of cells is collected.<br />

For example, FREQUENCY(1,100)(VARA) PERCENT(1,100)(VARA) requires only 820<br />

bytes.<br />

• If TOTAL is in effect, workspace requirements are almost doubled.<br />

• Memory requirements also increase if value labels are displayed for variables with many<br />

value labels. The amount of workspace required is 4 + 24*n bytes per variable, where n<br />

is the number of value labels specified for the variable.<br />

SORT CASES BY DEPT.<br />

REPORT FORMAT=LIST<br />

/VARIABLES=PRODUCT (LABEL) ’ ’ ’Retail’ ’Products’<br />

SALES ’Annual’ ’Sales’ ’1981’<br />

/BREAK=DEPT ’Department’ (LABEL)<br />

/SUMMARY=VALIDN (PRODUCT) MEAN (SALES) ’No.Sold,Mean Sales’.<br />

• This report is a listing of products and sales by department. A summary of the total<br />

number of products sold and the average sales by department is also produced.<br />

• Cases are first sorted by DEPT so that cases are grouped by department for the case listing<br />

and for the calculation of statistics.<br />

• FORMAT requests a report that lists individual cases within each break group.<br />

• VARIABLES specifies PRODUCT and SALES as the report variables. Keyword LABEL<br />

requests that the case listings for PRODUCT display value labels instead of values. Threeline<br />

column headings are provided for each report column. The first line of the column<br />

heading is blank for the variable PRODUCT.<br />

• BREAK identifies DEPT as the break variable and provides a one-line column title for the<br />

break column. LABEL displays the value label instead of the value itself.<br />

• SUMMARY calculates the valid number of cases for PRODUCT and the mean of SALES for<br />

each value of DEPT. A title is provided for the summary line to override the default title,<br />

VALIDN.<br />

FORMAT Subcommand<br />

FORMAT controls the overall width and length of the report and vertical spacing. Keywords and<br />

their arguments can be specified in any order.<br />

• MANUAL and AUTOMATIC are alternatives. The default is MANUAL.<br />

• LIST and NOLIST are alternatives. The default is NOLIST.

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

Saved successfully!

Ooh no, something went wrong!