If the purpose of
Code:
set %tmp.track $addtok($chan(%y),44,1) $chan(%y)
is to keep a list of channels in the variable, then your code, while it might work, is not the best.

I recommend you change it to
Code:
set %tmp.track $addtok(%tmp.track,$chan(%y),44)