Thanks, it works although you have to force all the statistical values to have the same format , but thanks for your reply. About by and class, thanks again, it works too ussing class withouth pre- proc sorting unlike I did choosing by....but There are two differences (I think you will know): Firstly - BY only works if your dataset is sorted on the specified BY variables; CLASS works whether or not your dataset is sorted (but if you want good performance, you should have enough memory to handle all the classification levels without incurring swapping.) Secondly - Unlike BY variables, CLASS variables give you automatic subtotals (unless you specify a keyword such as NWAY or LEVELS). In your example, CLASS a b will give you an overall total, a subtotal for each distinct value of a, a subtotal for each distinct value of b, and a subtotal for each combination of a and b. These different subtotals are flagged by different values of the _TYPE_ variable which is created automatically in your output dataset.
... View more