It is interesting that it ran fine before replacing the battery then after a new battery it would be a problem.
So I tried both ways described to reset it with no improvement,if anything it got worse.
Now I put some cleaner in the tank,cleaned throttle body then reset using the first method,now I am back in business.
Thanks all.