Chronic cough with yellow sputum needs to be examined in detail by a pulmonologist. You may need to undergo tests such as sputum examination, chest x ray, CT scan of chest etc.
Next Steps
Consult nearby pulmonologist for confirmation of diagnosis and appropriate treatment if required