data ex;
input obs Origin $ type $;
cards;
1
asia
hybrid
2
aisa
suv
3
europe
suv
4
usa
wagon
5
usa
tuuck
;
run;
proc sql;
create table ex1 as
select t.origin,t.type,t1.origin as origin1,t1.type as type1
from ex t inner join ex t1 on t.obs<t1.obs;
quit;