Hello,
What you have is a simple
gas problem - the cause may be hyper acidity,
indigestion, excessive intake of gas forming diet.
Endoscopy - stomach erosion - for which you are prescribed with
probiotic and prilosec for hyper acidity.
Your gas problem has to be treated with a combined effort.
The Doctors part - Antacids, Antispasmodics, Anti flautulents - "Mainly Charcoal Tabs"
On your part Frequent bland diet, avoiding gas forming diets, fast foods, oil fried items. Take plenty of hygienic water and regular exercise.
Tension and stress free life
With this you will be alright
Best wishes