I still think PROC EXPAND should be investigated as a superior alternative to
either the data step or PROC SQL.
It is in the SAS/ETS module and enhancements in Release 6.12 probably provide
exactly what is needed here.
Andrew H. Karp
Sierra Information Services, Inc.
A SAS Institute Quality Partner in the USA
1489 Webster Street Suite 1308 San Francisco, CA 94115 USA