PURPOSE: Phase II trial to study the effectiveness of phenylbutyrate plus azacitidine in treating patients who have acute myeloid leukemia, myelodysplasia, non-Hodgkin's lymphoma, multiple myeloma, non-small cell lung cancer, or prostate cancer.