#delimit ; infile id s1 s2 s3 s4 s5 using exampleprog.dat; matrix subsmat = (0,1,2,3 \ 1,0,1,2 \ 2,1,0,1 \ 3,2,1,0 ); reshape long s, i(id) j(m); sqset s id m; sqdes; sqtab; sqom, subcost(rawdistance) indelcost(3) full standard(longer); matrix list SQdist;