how do you get the control number if it is missing
Leave box d blank it is not needed on a W-2.
That usually means your employer doesn't have enough employees to need control numbers; if its blank then leave your form blank too.