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.

36 Universals<br />

Figure 14 Display of hexadecimal representation of the character set with AHEX format<br />

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<br />

41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A<br />

61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A<br />

FORTRAN-like Format Specifications<br />

You can use FORTRAN-like format specifications to define formats for a set of variables, as<br />

in the following example:<br />

DATA LIST FILE=HUBDATA RECORDS=3<br />

/MOHIRED, YRHIRED, DEPT1 TO DEPT4 (T12, 2F2.0, 4(1X,F1.0)).<br />

• The specification T12 in parentheses tabs to the 12th column. The first variable (MOHIRED)<br />

will be read beginning from column 12.<br />

• The specification 2F2.0 assigns the format F2.0 to two adjacent variables (MOHIRED and<br />

YRHIRED).<br />

• The next four variables (DEPT1 to DEPT4) are each assigned the format F1.0. The 4 in<br />

4(1X,F1.0) distributes the same format to four consecutive variables. 1X skips one column<br />

before each variable. (The column-skipping specification placed within the parentheses<br />

is distributed to each variable.)

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

Saved successfully!

Ooh no, something went wrong!