You said you got the cramp when running, but that does not mean it will go away when you stop. As with many muscle cramps, they can continue long after the overexertion that caused them has ceased.
One symptom of overexertion of the diaphragm muscle is pain right under the lower edge of your ribcage. It doesn't matter which side, the hard inhalation of running can send it into a cramp cycle that does not completely relax after exercise. In this case, it will be quite sensitive to the touch in that same spot, and prolonged exhalation relaxes and stretches it out some. Unfortunately, this muscle, like the heart, is one you can't afford to rest too long, so it gets little relief when strained.
Circulation helps muscle tissue heal. You can improve circulation in the diaphragm muscle by reaching under the edge of the rib cage with your fingers and massaging it during prolonged exhalation, with abdomen relaxed, while seated in a comfortable chair. Don't use too much pressure, and do this a few times a day, or whenever it seems to help. Eventually, your diaphragm will strengthen to match the demands of vigorous physical activity, but it may help to lower your exercise intensity (ie: no racing) while the muscle catches up with your ambitions over the next week or two.
Here's a tip from Dr. Gabe Mirkin on handling this cramp on the road... http://www.guidetohealth.com/library/the-doctors-book-of-home-remedies/side-stitches/
Meanwhile, mind your posture. Excess slumping can strain this muscle. Overexertion can come not only from running, but from coughing. If you are running and coughing due to the stimulus of overexertion, that's double-trouble. Again, cut back a bit on your intensity, and look for any causes of coughing that could contribute to diaphragm strain.