Thank you for the information,
There are some common causes of such chronic diarrhea.The common ones are malabsorption, infectious disease, crohn's disease, colon cancer, bacterial overgrowth, lactose intolerance, etc.
As per the symptoms of abdomen gas and diarrhea, the chances of malabsorption should be ruled out first.The bacterial overgrowth may also cause such diarrhea and may need the antibiotic course.The commonly used antibiotic are ofloxacin, metronidazole, etc. for 5-7 days duration.
The lactose intolerance may also cause such symptoms and the milk products may be avoided to ease the symptoms.Yo should drink adequate fluid and fruit juices to prevent dehydration.
You may take the OTC drug like attapulgite and polycarbophil which act as absorbant and are helpful.The antimotility drugs like loperamide is also very helpful.
You should have the relevant investigations done like colonoscopy, ct scan abdomen, stool routine examination, etc. after consulting your doctor if your symptoms are not controlled.
The treatment depends on the underlying cause.
Please visit here for more information
causes of chronic diarrhea
treatment of diarrhea
Let me know if you have any doubt.