Date: Fri, 19 Dec 1997 09:42:01 -0500
Reply-To: chris chiu <chiuwing@PILOT.MSU.EDU>
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: chris chiu <chiuwing@PILOT.MSU.EDU>
Subject: Read in a large number of data files
Content-Type: text/plain; charset="us-ascii"
Hi,
Does anyone know of an efficient way to read in a large number of text
delimited data files to SPSS? I have many small data files, each of which
has 10 variables and 100 cases. These small data files have the same
variables but different cases. I have tried using a macro but it seemed
that macros do not work with the command "Data List", which is something I
used to read in the text delimited data. The following is a simplified
example of what I have for a small data set. (How would one read in 500 of
these data files?)
*Data set #1
id score1 score2
1 99 88
. . .
. . .
. . .
100 87 92
By the way, the files are named in a systematical way, like f_1_1.dat to
f_5_100.dat. The first number indicates a batch id and the second number
the file id.
Any suggestion is appreciated. Thanks. Please reply directly to my email
address chiuwing@pilot.msu.edu
Sincerely,
Chris Chiu
----------------------------------------------------------------------------
Internet: chiuwing@pilot.msu.edu Measurement & Quantitative Methods
Michigan State Universtiy
----------------------------------------------------------------------------