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.

14 Universals<br />

locations, variable and value labels, print and write formats, and missing-value indicators. To<br />

use an SPSS-format data file, you must retrieve it with GET, which creates a working data<br />

file from the SPSS-format data file. Only a few commands can use an SPSS-format data file<br />

directly without first specifying GET; they include MATCH FILES, ADD FILES, and procedures<br />

that can read SPSS matrix data files.<br />

To view the contents of an SPSS-format data file, retrieve it with GET and then use LIST<br />

to display the variables in the working data file. Figure 3 shows a partial listing of a working<br />

file. The values are displayed using their print format, which is different from the way they<br />

are internally stored.<br />

Figure 3 Part of a listed working data file<br />

ID SALBEG SEX TIME AGE SALNOW EDLEVEL WORK JOBCAT MINORITY SEXRACE<br />

628 8400 0 81 28.50 16080 16 .25 4 0 1.00<br />

630 24000 0 73 40.33 41400 16 12.50 5 0 1.00<br />

632 10200 0 83 31.08 21960 15 4.08 5 0 1.00<br />

633 8700 0 93 31.17 19200 16 1.83 4 0 1.00<br />

635 17400 0 83 41.92 28350 19 13.00 5 0 1.00<br />

637 12996 0 80 29.50 27250 18 2.42 4 0 1.00<br />

641 6900 0 79 28.00 16080 15 3.17 1 0 1.00<br />

649 5400 0 67 28.75 14100 15 .50 1 0 1.00<br />

650 5040 0 96 27.42 12420 15 1.17 1 0 1.00<br />

652 6300 0 77 52.92 12300 12 26.42 3 0 1.00<br />

653 6300 0 84 33.50 15720 15 6.00 1 0 1.00<br />

656 6000 0 88 54.33 8880 12 27.00 1 0 1.00<br />

657 10500 0 93 32.33 22000 17 2.67 4 0 1.00<br />

658 10800 0 98 41.17 22800 15 <strong>12.0</strong>0 5 0 1.00<br />

The dictionary is created when an SPSS-format data file is built. You can display or modify<br />

the dictionary of a working file. Use DISPLAY DICTIONARY to view the dictionary, and use<br />

commands such as VARIABLE LABELS, VALUE LABELS, and MISSING VALUES to modify<br />

specific information contained in the dictionary. Figure 4 shows part of the displayed<br />

dictionary information of the working data file displayed in Figure 3.<br />

Figure 4 Displayed dictionary information<br />

List of variables on the active file<br />

Name Position<br />

ID Employee Code 1<br />

Print Format: F4<br />

Write Format: F4<br />

SALBEG Beginning Salary 2<br />

Print Format: F5<br />

Write Format: F5<br />

Missing Values: 0<br />

SEX Sex of Employee 3<br />

Print Format: F1<br />

Write Format: F1<br />

Missing Values: 9<br />

Value Label<br />

0 Males<br />

1 Females<br />

TIME Job Seniority 4<br />

Print Format: F2<br />

Write Format: F2<br />

Missing Values: 0

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

Saved successfully!

Ooh no, something went wrong!