Long-term treatment for gastric and duodenal ulcer