On Tue, Aug 06, 2013 at 05:49:47AM -0700, aitmeus2 wrote:
> 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
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.sa