Consider this code:
Code: Select all
DATASET DECLARE Crosstabset.
/IF COMMANDS=['Crosstabs'] SUBTYPES=['Crosstabulation']
/DESTINATION FORMAT=SAV NUMBERED=TableNumber_
CROSSTABS womedu by womage /cells col.
It declares a new dataset, defines the output - it means basically that you want to save the crosstable (you will find the OMS control panel in the utilities menu)
then runs the crosstab you want (here just some data I happen to have open).
OMSEND is necessary to stop the output.
The result (apart from the usual one) is a dataset that is called Crosstabset (because I called it that).
It looks like this
womedu -99 % within womage . 0.03645643456069996 . . . 0.08849557522123894 . 0.015560569516844317
womedu 1 % within womage 11.928283937065496 19.57710535909588 20.796064400715565 19.366197183098592 22.14182344428365 26.371681415929203 26.486486486486488 19.50517388936435
womedu 2 % within womage 39.04134650567143 33.21181188479766 37.119856887298745 38.38028169014084 35.96237337192474 36.637168141592916 42.7027027027027 37.09639772815685
womedu 3 % within womage 49.03036955726308 47.17462632154575 42.08407871198569 42.25352112676056 41.89580318379161 36.902654867256636 30.810810810810814 43.382867812961955
Total % within womage 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
(each line starts with womedu(although there is a bit more). The point is that you get a file with the tabulation, and you can pick out what you want from that one.
Hope this get you started.