A case–control study (NCT04131478) was conducted primarily to determine the incidence of TNF-α 308 G/A (rs1800629) and −1031T/C (rs1799964) gene polymorphisms in adult Egyptian patients with local/advanced or metastatic pancreatic or NSCL cancer and investigate both as cachexia risk factors. This evidence concerns the gene TNF and pancreatitis.