I have a stomach ulcer is it safe for me to fly on a transcontinental flight?

Yes. Why not? As long as your not active bleeding! careful with the booze - and stay away from airplane food - wont help the situation!