Have a look at the guidance when posting questions, its next to the Post button. Provide test data in the form of a datastep in a code window, and show required output. As I am not typing that out, here is a best guess:
proc transpose data=other_data out=t_other prefix=rest;
var var;
run;
data want;
merge have t_other;
array var{10};
array rest{10};
array res{10};
do i=1 to 10;
res{i}=var{i}-rest{i};
end;
run;