PURPOSE: This randomized clinical trial studies whether an outpatient educational and behavioral skills training program will improve pain control in patients who have metastatic or recurrent breast or prostate cancer.