Harvey,
You kind of lost me when you said your "Doctor is not able to help"! What the heck kind of doctor are you seeing? Every gastro on the planet has at least a rudimentary knowledge of nutrition and how food affects the bowels. By definition, a gastroenterologist is "a doctor who specializes in diagnosing and treating disorders of the digestive system".........which is what bloating and gas is! I can only assume your 'Doc' is a general practitioner........and not a very good one at that. You need to be talking to a gastro ASAP. And if your 'Doc' is a gastro...then RUN....don't walk.....away from that moron and find another that knows something.
I'm fine with docs not knowing everything, but it really grinds my gears when they just leave a patient hanging and don't offer you suggestions on who to see who specializes in your condition or ailment. There are a lot of things that can cause excessive gas, ranging from minor dietary things to major medical issues, so to say to a patient that they can't help you and then send you on your merry way is ridiculous. The inability to easily pass that gas is another possibly more serious matter. So again, no excuse for your doc's response. Even if he/she fell asleep that day in med school, then at the very least, they should have referred you to a dietician, as Laurie said above.
Get yourself to a good doc my friend, and don't guess at what's causing it.
Regards,
Bob