Did you not receive responses from me and Ray Levesque to this question posted on Sunday?
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of Arnaldo Ferrari Nasi
Sent: Tuesday, March 06, 2007 5:51 AM
To:
[hidden email]
Subject: Different subsets of the same datafile to analyze
Hi List,
This is the situation:
I have a long syntax that makes several analyses.
I have one dataset to analyse.
In this dataset there is a variable "target" that assumes 1 to 10 values.
I have to analyse 10 subsets of the data selected each time for a different
value of the target variable.
I do it "manually".
get file "c:\data.sav".
select if (target =1).
- run syntax -
get file "c:\data.sav".
select if (target =2).
- run syntax -
...
get file "c:\data.sav".
select if (target =10).
- run syntax -
How can I do this automatically?
Thanks a lot,
Arnaldo.