no reason why it can't. I just did it by dt and value with no joins at all...got 26 records. here's what I did (joining by state is all I tried): /* get distinct '1' values */ PROC SQL; CREATE TABLE WORK.q1 AS SELECT DISTINCT t1.State, t1.LOB1, t1.Value1, t1.Dt1 FROM WORK.BOOK1 t1; /* get distinct '2' values */ CREATE TABLE WORK.q2 AS SELECT DISTINCT t1.State, t1.LOB2, t1.Value2, t1.Dt2 FROM WORK.BOOK1 t1; /* join together by state only */ CREATE TABLE WORK.q3 AS SELECT t1.State, t1.LOB1, t1.Value1, t1.Dt1, t2.State AS State1, t2.LOB2, t2.Value2, t2.Dt2 FROM WORK.Q1 t1 INNER JOIN WORK.Q2 t2 ON (t1.State = t2.State); QUIT; results in 294 records.
... View more