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.

630 GET DATA<br />

Variable Format Specifications for TYPE = TXT<br />

For both fixed and delimited files, available formats include:<br />

Fn.d Numeric. Specification of the total number of characters (n) and decimals (d)<br />

are optional.<br />

An String (alphanumeric). Specification of the maximum string length (n) is<br />

optional.<br />

DATEn Dates of the general format dd-mmm-yyyy. Specification of the maximum<br />

length (n) is optional but must be eight or greater if specified.<br />

ADATEn Dates of the general format mm/dd/yyyy. Specification of the maximum<br />

length (n) is optional but must be eight or greater if specified.<br />

DOLLARn.d Currency with or without a leading dollar sign ($). Input values can include<br />

a leading dollar sign, but it is not required. Specification of the total number<br />

of characters (n) and decimals (d) are optional.<br />

For comprehensive lists of available formats, see “Variables” on p. 21 and “Date and Time”<br />

on p. 55.<br />

Example<br />

GET DATA /TYPE = TXT<br />

/FILE = ’D:\Program Files\SPSS\textdata.dat’<br />

/DELCASE = LINE<br />

/DELIMITERS = "\t ,"<br />

/ARRANGEMENT = DELIMITED<br />

/FIRSTCASE = 2<br />

/IMPORTCASE = FIRST 200<br />

/VARIABLES = id F3.2 gender A1 bdate DATE10 educ F2.2<br />

jobcat F1.2 salary DOLLAR8 salbegin DOLLAR8<br />

jobtime F2.2 prevexp F3.2 minority F1.2.

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

Saved successfully!

Ooh no, something went wrong!