Surgery can remove the ulcers and reduce the amount of acid in your stomach.