Hello,
I would like to merge 3 sas tables in a "special" way.
The first table looks like this :
Class Color Size Coef1
C1 Blue Big 0.0476
C1 Red Big 0.123
C1 Blue Small 0.0121
...
C3 Red Big 0.0523
C3 Blue Small 0.154
C3 Red Small 0.00521
The second table looks like this :
Class Type Coef2
C1 A 0.421
C1 B 0.021
C1 C 0.198
...
C3 A 0.098
C3 B 0.211
C3 C 0.132
The third table looks like this :
Class Coef3
C1 -2.301
C2 -4.236
C3 -3.212
And I would like to have a table like this :
Class Colour Size Type Coef1 Coef2 Coef3
C1 Blue Big A 0.0476 0.421 -2.301
C1 Red Big A 0.123 0.421 -2.301
C1 Blue Small A 0.0121 0.421 -2.301
C1 Red Small A
C1 Blue Big B 0.0476 0.021 -2.301
C1 Red Big B 0.123 0.021 -2.301
...
C1 Red Small C
C2 Blue Big A
....
C2 Red Big C
C3
...
Does somebody know how to compute that as simply as possible ?
Thank you
I would like to merge 3 sas tables in a "special" way.
The first table looks like this :
Class Color Size Coef1
C1 Blue Big 0.0476
C1 Red Big 0.123
C1 Blue Small 0.0121
...
C3 Red Big 0.0523
C3 Blue Small 0.154
C3 Red Small 0.00521
The second table looks like this :
Class Type Coef2
C1 A 0.421
C1 B 0.021
C1 C 0.198
...
C3 A 0.098
C3 B 0.211
C3 C 0.132
The third table looks like this :
Class Coef3
C1 -2.301
C2 -4.236
C3 -3.212
And I would like to have a table like this :
Class Colour Size Type Coef1 Coef2 Coef3
C1 Blue Big A 0.0476 0.421 -2.301
C1 Red Big A 0.123 0.421 -2.301
C1 Blue Small A 0.0121 0.421 -2.301
C1 Red Small A
C1 Blue Big B 0.0476 0.021 -2.301
C1 Red Big B 0.123 0.021 -2.301
...
C1 Red Small C
C2 Blue Big A
....
C2 Red Big C
C3
...
Does somebody know how to compute that as simply as possible ?
Thank you