Coding for control variables in Stata 14 in linear regression?

#1
Hi -

I need to control for two variables in my linear regression, the code thus far is;

sort dde2
by dde2: regress sustain

I have two mediator variables or control variables, gender and ses and I need to remove their effects.
Any help greatly appreciated!