This pulls those values apart:
data junk;
input x;
ones = mod(x,10);
tens = mod(int(x/10),10);
hunds = mod(int(x/100),10);
thous = mod(int(x/1000),10);
tenthous = mod(int(x/10000),10);
datalines;
1
10
11
1
100
1000
10100
1000
1000
;
run;
Since your example shows totals you would use any of the summary or report procedures such as Means or summary, report or tabulate to get sums.
Slot? Really? And the order you named them makes little sense at all in relation to the positions. Though displaying the numeric value with a Z5. format might help.