Hello,
We, the survey team, have to run >200 variables, for the same statistics, to produce >200 output files.
One tedious way is to replace one variable at a time for >200 times in the syntax to run statistics.
In the following example, we use
C8 as a variable. Can we write extra lines in the syntax (such as loop, repeat, etc.) and provide all variables (A1 to A20, B1A to B1Z, C1 to C8, etc), so that SPSS automatically replace other variables in places of C8, runs 200 times, and produce 200 reports on a run?
The sample syntax of C8 is given below:
OMS
/SELECT TABLES
/IF COMMANDS = ['CSTABULATE']
INSTANCES = [LAST]
/EXCEPTIF SUBTYPE = ['NOTES']
/DESTINATION FORMAT = XLSX
OUTFILE = "...\
C8_cstab_output.xlsx"
/NOWARN.
MISSING VALUES
C8 (66 thru 999).
CSTABULATE
/PLAN FILE='...\weighing2.csaplan'
/TABLES VARIABLES=
C8/CELLS TABLEPCT
/STATISTICS SE CV CIN(95) COUNT
/MISSING SCOPE=TABLE CLASSMISSING=EXCLUDE.
EXECUTE.
OMSEND.
Thank you in advance.
------------------------------
Myint Tun
------------------------------
#SPSSStatistics