Initializing temp variables in a gosub

I don’t know how you set up the *gosub, but be noted that *temp is limited inside the scope of the subroutine.