Sawdust can cause lung infection so antibiotics are commonly prescribed but it is always best to do precautionary measures like wearing masks when working or in contact with dusts.
Really nothing can be done. You may cough for a while. This is your bodies reaction to irritants in the lungs. You will secret mucous in the lungs and your cilia will work the dust up and you will cough.