RATIONALE: Octreotide may be effective in preventing or controlling diarrhea in patients who are undergoing chemoradiotherapy for anal or rectal cancer. It is not yet known whether octreotide is effective in treating diarrhea.