DISEASE CHARACTERISTICS: Histologically proven unresectable (including incomplete resections) or locally recurrent pancreatic or gastric cancer No evidence of metastases outside of the planned radiation field No cystadenocarcinoma of the pancreas or pancreatic tumors of neuroendocrine origin