breyt,
you can define the individual fields, then sum them up to get a single row.
So instead of, say,
TABLE FILE CAR
SUM CNT.MODEL
ACROSS COUNTRY
END
you would have
DEFINE FILE CAR
JAPAN/P9 = IF COUNTRY EQ 'JAPAN' THEN 1 ELSE 0;
GERMANY/P9 = IF COUNTRY EQ 'GERMANY' THEN 1 ELSE 0;
END
TABLE FILE CAR
SUM JAPAN
GERMANY
END
Now this might sound bad for 95 columns, but you can automate it using dialogue manager.
Create a file containing all the valid values - in this case JAPAN and GERMANY ie
TABLE FILE CAR
BY COUNTRY
ON TABLE SAVE AS COUNTRY
END
DEFINE FILE CAR
-READ COUNTRY &ctry.A20.
-REPEAT CTRY_L1 WHILE &IORETURN EQ 0;
&CTRY.EVAL/P9 = IF COUNTRY EQ '&CTRY.EVAL' THEN 1 ELSE 0;
-READ COUNTRY &ctry.A20.
-CTRY_L1
END
TABLE FILE CAR
SUM
-READ COUNTRY &CTRY.A20.
-REPEAT CTRY_L2 WHILE &IORETURN EQ 0;
&CTRY.EVAL
-READ COUNTRY &CTRY.A20.
-CTRY_L2
END
Something like this should do what you need.
regards