I have often wondered this, I think it is a gradual thing, you can't just HAVE discipline. I suppose the quickest way is to just do it, over and over again until you practically crying, and then keep doing it some more until you can do whatever you want without a problem.
Although I am only guessing thats what would happen. I have never actually worked beyond the crying point