Thank you for the information,
Excessive gas can be due to following reasons.
You may have gastritis or acid peptic or gall bladder disease.
Pain may not always present.
Sometimes H. Pylori infection may precipitate it.
Lactose intolerance , Malabsorption , Irritable bowel syndrome etc. can cause excess gas production.
Food containing complex carbohydrate can cause intolerance and not be digested.
When it passes down the intestine, intestinal bacteria ferments them and produce gas.
Some dietary measures help to control gas.
Excess sugar or sweets can cause gas production.
Some foods like excessive fiber containing food, onions, Parley, Pumpkin, Spinach, Asparagus, Beets, Broccoli, Cabbage, Carrots, Cauliflower, Corn, Cucumber, Lettuce, Pepper, Peas, Beans, Soybeans etc. are often the offenders.
If you can identify some food which are giving troubles, better to avoid them.
You can withhold the selective food for time being and see whether it helps.
It is not definite that which one will produce more gas.
Some food can produce more gas, others may not.
Avoid coffee, tobacco, alcohol, fried fatty food, chewing gums etc.
Take plenty of water.
Take bland non spicy, low fat diet.
Try to reduce anxiety and tension.
Walk for 10-15 minutes after meals,
Daily exercise help to regulate bowel movement.
It prevents gas formation.
You may need to do some tests like stool analysis, H. pylori test, endoscopies, scans etc.
You can consult gastroenterologist to find out the cause.
Till you get to the doctor, may try nexium for a few days to reduce acid.
If it is due to gastritis, it may help.
I hope this information helps.
I will be happy to assist, if you need any clarification.
Please feel free for any follow up query.