Syntax in spss for calculating the proportion

#1
0
down vote
favorite


I need syntax, with which i can make a cross-table in SPSS,where in cells , there would be a fraction of the sum by column.

for example

var 1-column var 2 string
1 0
0 0
1 1
0 1
1 1
0 0
i need that

var 1-column var 2 string
0,333333333 0
0 0
0,333333333 0,333333333
0 0,333333333
0,333333333 0,333333333
0 0
How do that?