Before surgery your doctor needs to assess the condition of the gland and any irregular growth in its size etc. You will have a prostate examination where your doctor may take the help of imaging techniques to understand the condition of your prostate gland or might do the conventional prostate test. In the conventional test your doctor the will insert his finger in your anus to touch and feel any irregularity in the shape of the gland. This is required since the gland is present right opposite the anus. After the results have been obtained, your doctor will decide upon the required action. If you are detected with prostate cancer then depending upon the damage, partial or entire prostate gland might be removed. You doctor might give you certain medication before the surgery and you should arrive for the surgery with an empty stomach.