You haven't said if it's cast iron or plastic - i'm assuming with the problems it'll be cast iron.
Easiest way I can think of is to cut the stack and remove from the toilet connection up with plastic. Otherwiase it's gonna be a nightmare trying to get a new joint in and re-clipiing/supporting the cat iron soil pipe.
DIY how to tutorial projects and guides - Did you know we have a DIY Projects section? Well, if no, then we certainly do! Within this area of our site have literally hundreds of how-to guides and tutorials that cover a huge range of home improvement tasks. Each page also comes with pictures and a video to make completing those jobs even easier!