Hi. I don't think CASESTOVARS is what you want for this. Here is my attempt at giving you what I think you want:
FILE HANDLE newData /NAME="<some writeable path>/newData.sav".
** I used the data in your question as a template.
dataset close all.
data list free /File (F1) Classes Category Indicator (3A32) Sequence (F1).
begin data.
1 ComputerScience Knowledge CommonKnowledge 1
1 SocialScience Communities LocallyBasedCommunities 2
1 ComputerScience Knowledge FoundationKnowledge 3
2 Technology Engineering CivilEngineering 1
2 ComputerScience DataProcessing AutomaticDataProcessing 2
3 SocialScience PoliticalScience SystemOfGovernments 1
4 Language Linguistics Grammar 1
end data.
SPSSINC CREATE DUMMIES VARIABLE=Classes Category Indicator
ROOTNAME2=twoway ROOTNAME3=threeway
/OPTIONS ORDER=A USEVALUELABELS=NO USEML=NO OMITFIRST=NO.
OMS /SELECT TABLES /DESTINATION FORMAT=SAV OUTFILE=newData
/IF SUBTYPES='Crosstabulation' /TAG="_x_".
MULT RESPONSE GROUPS=$twoway (twoway_1_1 twoway_1_2 twoway_1_3 twoway_1_4 twoway_1_5
twoway_1_6 twoway_1_10 twoway_1_11 twoway_1_12 twoway_1_13 twoway_1_14 twoway_1_15
twoway_1_16 twoway_1_17 twoway_1_18 twoway_1_19 twoway_1_20 (1))
/VARIABLES=File(1 4)
/TABLES=File BY $twoway
/BASE=CASES.
OMSEND TAG="_x_".
GET FILE newData /DROP Command_ TO Label_ Var3.
SELECT IF Var1 NE "Total".
LIST.
** The newData file is what I'm guessing you wanted.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------