GET DATA loop through folder

jfca283

Member
Hi
I need to run the same syntax over some files. They are in the folder named DBase.
I mean, there is a db01.sav and over it run the syntax, then do the same for db02.sav and so on. How do i make it? How run the process only listing one time the files i'm interested?
Thanks for your time and interest.

jfca283

Member
I'm very lost. I did this
Code:
GET
FILE='C:\Users\***\Bases\Base.sav'.
DATASET NAME Conjunto_de_datos9 WINDOW=FRONT.

/FILE='\\YYY\Bases_\Base_2001.sav'.
EXECUTE

/FILE='\\YYY\Bases_\Base_2002.sav'.
EXECUTE

/FILE='\\YYY\Bases_\Base_2003.sav'.
EXECUTE

EXECUTE
CROSSTABS
/COUNT ROUND CELL.