- proc sql noprint;
- create table B as
- select X.*,Y.*,Z.*
- from (select distinct a from a) as X
- cross join
- (select distinct s from a) as Y
- cross join
- (select distinct d from a) as Z
- order by a,s,d
- ;
- quit;