Date: Thu, 29 Apr 2004 08:41:53 -0500
Reply-To: "Cardwell, Susan" <email@example.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Cardwell, Susan" <firstname.lastname@example.org>
Subject: Import and save
Good morning folks,
I'm attempting to import/convert about 50 txt files, by semester, into .sav
files. I then need to combine them followed by running command syntax. I've
got the command syntax all set. My question is how to write a macro that
will get each file, convert it, then merge them. The path will remain
constant but in this example transfer901 will change to transfer902,
transfer903 and on up to transfer035.
I'm looking at ray's book, pg 217, on combining many files but that example
would be if each file is saved separately. I've also looked on his website
but find the macros use variables within the file.
GET DATA /TYPE = TXT
/FILE = 'C:\Documents and Settings\susan.cardwell\My
/DELCASE = LINE
/DELIMITERS = ", "
/QUALIFIER = '"'
/ARRANGEMENT = DELIMITED
/FIRSTCASE = 2
/IMPORTCASE = ALL
var001 F8 .
Susan Cardwell, M.A.
Assistant Director, Institutional Research and Planning
Midwestern State University
3410 Taft Blvd.
Wichita Falls, TX 76308
"We who cut mere stones must always be envisioning cathedrals." - anonymous