[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with DO-REPEAT
From: |
John Darrington |
Subject: |
Re: Problem with DO-REPEAT |
Date: |
Tue, 6 Aug 2013 18:54:50 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
I don't know if it's possible to actually construct the filename the way you're
trying to do it.
But you can certainly concatenate all the files, like this.
GET FILE='at.sav'.
DO REPEAT country = be.sav bg.sav ch.sav.
ADD FILES /FILE=* /FILE=country .
END REPEAT.
save outfile='allcountries.sav'.
On Tue, Aug 06, 2013 at 05:49:47AM -0700, aitmeus2 wrote:
Hi,
i'm trying to append yearly datafiles for some countries using dhe DO
REPEAT-command.
Unfortunately i cant figure out how to do it.
DO REPEAT country = at be bg ch cy cz dk ee es fi fr gr hu ie is it lu lv
mt nl no pl pt ro se si sk uk.
GET
/FILE= country2008_y.sav.
ADD FILES
/FILE= country2009_y.sav
/FILE= country2010_y.sav.
SAVE
/OUTFILE= country.sav.
END REPEAT.
Please excuse me if i just didnt recognize some trivial error...
Thanks a lot!
ms
--
View this message in context:
http://old.nabble.com/Problem-with-DO-REPEAT-tp35810145p35810145.html
Sent from the Gnu - PSPP - Users mailing list archive at Nabble.com.
_______________________________________________
Pspp-users mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/pspp-users
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature