Hi Samvardhini.
1. Set up a regular routine. Take your pet out to pass stools to a specific place/spot each time, every 2 hours until he is completely trained.
2. Use a specific word as a command always while taken out for potty.
3. Never punish or yell at your pet.
4. Reward with treats once done.
For better results, take help of kuddle professionals.