Since it is an older dog, it may never have been house trained. It may have been kept in a dirty place and unlearned how to be clean.
To train the older dog to go outside, here's what I'd do.
First of all, I would never chase a dog and catch it and punish it. I would also never call a dog to me, and punish it. If I do so I will destroy all possible success I might have in any future work with the dog. Instead, I set things up so the dog cannot make a mistake. I don't like punishing dogs, so I set things up so that they learn without being punished.
I do not believe in shoving the dog's face in to its pooh. I don't want to get pooh on my dog's face or mouth, which i feel negatively affects their desire to stay away from their own pooh and stay clean. I also think that delays training, makes dogs more tense, as well as damages their relationship with me. I also don't believe in using pee pads, which I think also delays training unnecessarily, leaving a urine smell in the house that confuses the dog and makes training unnecessarily complex and long and tension-producing. I don't think either method produces a dog that is 100% reliable in the house in the end.
I would keep the dog in a crate all the time she was in the house. This is without any exception. The dog is either in the crate, or outside. No exceptions.
I would feed the dog once a day(if one year old), and offer water three times a day, with no water given after five or six pm.
After the dog drinks or eats, I take the dog outside. I get to know the dog and how soon it needs to go out after drinking or eating. I do not let the dog out of the crate and let it wander the house. This is very important.
I take the dog to the same area of the yard each time to poop and pee. I put the dog on a leash before it leaves the house, and I walk it around in that area til it poops or pees.
I praise the dog and give a small treat after it relieves itself. Then I play with the dog. I do not play with the dog until after it poops or pees. I probably would not let the dog off the leash to play with it. I want to be able to get the dog back into the house, into the crate. I don't want the dog to play outside alone for long periods of time until it is house trained. Instead, it will play outside for short periods of time. I know if I do this right, this training will last a very short time, so it won't be aa hardship for the dog.
The treat needs to be something that doesn't stimulate the digestion like a meal would. Something non irritating to the stomach (many dog treats irritate the stomach). No treats until the animal relieves himself. Just quiet walking around the area where he relieves himself.
In a very short time, usually a day or two, the dog will go to the door when it needs to poop or pee. We usually hang a bell by the door, and have the dog bump it as I take him out the door. The second he bumps the bell, 'Oh what a good boy!' and much praise, and out we go.
When I can't be home, the dog is in the crate, just as the dog is in the crate the entire time that I am at home. The dog is not in the house loose, at any time.
When I get home, I don't let the dog out of the crate and give it a huge wild welcome, which causes tension and anticipation and nervousness, which would be especially bad at this time. I try to maintain a schedule when I am training the dog, so he does not have to wait an unreasonable amount of time.
I feed the dog only once a day. The food is taken up after 10 or 15 minutes. As is the water.
This has never, ever failed me. If I follow this program, it works, and I end up with a very, very reliable dog.