Hi! I am new to Stata

I need to divide my sample into deciles in each year and industry.
So I have 20 years and 48 industries. And I need to rank the firms cash variable into deciles in each year and industry.

Could anyone help me?

Thank you very much