Extrinsic compression or invasion by carcinoma of pancreas or stomach