Dear all,

I have this data

code:

clear
input str6(var1 var2 var3 var4 var5)
"A01B1" "A01C05" "A01C11" "A01M21" "E02F3"
"A01H11" "B25D1" "E23P15" "" ""
end

and i want to create all possible pairwises combinations in order to get this:

code:
clear
input str6 (var1 var2 var3 var4 var5) str200 combine
"A01B1" "A01C05" "A01C11" "A01M21" "E02F3" "A01B1.A01C5;A01B1.A01C11;A01B1.A01M21; A01B1.E02F3;A01C05.A01C11;A01C05.A01M21;A01C05.E02 F3;A01C11.A01M21;A01C05.E02F3;A01C11.A01M21;A01C11 .E02F3;A01M21.E02F3"
"A01H11" "B25D1" "E23P15" "" "" "A01H11.B25D1;A01H11.E23P15;B25D1.E23P15"
end


Thank you in advance for the suggestions.